wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 03-15-2009, 02:16 PM   #1
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default Name Spoof and Color Spoof Triggers

First off, i am not asking for a hack. I simply wish to know how to make a trigger to change your name and color in game. or if any of you have an unprotected map with these features i would greatly apreciate it if you could send it my way. I do not wish to rip off anyones maps, simply to learn how to make these triggers.
Ex. nomorholywar's Polar Escape maps
they have both of these features, actualy the exact ones i want. he says he will send anyone an unprotected version if they ask, but i emailed him 3 times already in the last 2 and a half months and still no reply.
Thanks for any and all help.
Deadly_Shadow is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-16-2009, 06:54 AM   #2
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,514

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Trigger:
Player - Change name of (Player 1 (Red)) to (|c00ff00 + ((Name of (Player 1 (Red)))) + |r)
That's just an example. "|c00ff00...|r" is a color code; |c is required to start the code; the next 6 are hexidecimal values for the RGB values, and then the |r ends the color code.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 03-16-2009, 08:56 PM   #3
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default

Thanks, i understand all that now, but i cant find the trigger. I have wc3 ROC. I dont know if that makes a difference.
__________________
Deadly_Shadow is offline   Reply With Quote
Old 03-16-2009, 09:46 PM   #4
Blacktastic
User
 
Blacktastic's Avatar
 
Join Date: Oct 2006
Posts: 138

Blacktastic is on a distinguished road (12)

Default

RoC is alot more limited as to what it can do than TFT. TFT is cheap as hell so really it shouldn't be much trouble to pick it up. I never mapped in RoC though so I can't say for certain it isnt there.
__________________
lolwut
Blacktastic is offline   Reply With Quote
Old 03-17-2009, 01:29 AM   #5
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default

well i know it is because nomorholywar has it in his polar escape maps. I just cant seem to find it. The triggers are a bit harder to work with in this version as I hear. lucky me D:
__________________
Deadly_Shadow is offline   Reply With Quote
Old 03-17-2009, 03:24 AM   #6
Blacktastic
User
 
Blacktastic's Avatar
 
Join Date: Oct 2006
Posts: 138

Blacktastic is on a distinguished road (12)

Default

So why not just get TFT?
__________________
lolwut
Blacktastic is offline   Reply With Quote
Old 03-17-2009, 01:34 PM   #7
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default

im already getting guild wars and im useing a few hundred for a robotics competition this week and next. so i dont realy have the money resources currently. is there anyone here that can help me with ROC. (btw im only 16)
__________________
Deadly_Shadow is offline   Reply With Quote
Old 03-17-2009, 01:50 PM   #8
akolyt0r
In Flames
 
akolyt0r's Avatar
 
Join Date: Jan 2006
Posts: 1,153

Submissions (3)

akolyt0r has a spectacular aura about (120)

Default

it could be the jass native already exists for RoC aswell..
__________________
akolyt0r is offline   Reply With Quote
Old 03-17-2009, 06:04 PM   #9
ShadowWolf
Mr. Awesome!
 
ShadowWolf's Avatar
 
Join Date: Feb 2004
Posts: 357

Submissions (1)

ShadowWolf will become famous soon enough (39)ShadowWolf will become famous soon enough (39)

Approved Map: SheepGuard TD

Default

Go mow a couple lawns and buy TFT. It's ~$20?

If you REALLY are interested in mapmaking for wc3, it's very much worth it to just bite the bullet and buy TFT.
__________________

Last edited by ShadowWolf : 03-17-2009 at 06:05 PM.
ShadowWolf is offline   Reply With Quote
Old 03-17-2009, 06:37 PM   #10
Deaod
User
 
Join Date: Jan 2007
Posts: 541

Submissions (11)

Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)

Send a message via ICQ to Deaod Send a message via MSN to Deaod
Default

Theres a native for changing a players name (SetPlayerName(whichplayer, newname))...And afaik RoC and TFT both support all natives. Just not via GUI.
__________________
Deaod is offline   Reply With Quote
Old 03-18-2009, 02:03 PM   #11
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default

so just use jasscraft and input the data that way? im sure as long as its in jass format you can get the game to work it. (i hope)
__________________
Deadly_Shadow is offline   Reply With Quote
Old 04-25-2009, 12:38 PM   #12
Deadly_Shadow
User
 
Join Date: Mar 2009
Posts: 11

Deadly_Shadow has little to show at this moment (0)

Default

alright i got the program a long time ago to work out some trigger bugs but its not easy to use without a tutorial. anyone got a good one?
__________________
Deadly_Shadow is offline   Reply With Quote
Old 04-25-2009, 03:04 PM   #13
Tastingo
User
 
Join Date: Jun 2006
Posts: 169

Tastingo is on a distinguished road (11)

Default

I'm not sure if you figured it out yet. So I'll post some basic options. I also don't know how well you know JASS so I will just post a guide as if you don't know. Basicly just make your conditions and events how you want. Don't add the actions. Now convert to custom script. These were all made in thinking a chat event will fire them.

Say this is your trigger. (This is my trigger called Trig Unitled Trigger 001, it has no events no conditions no actions)
Collapse JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

function Trig_Unitlted_Trigger_001_Actions is where all your actions will be, and must be before the endfunction. Here are some choices for code to fill in between.

Setting the Triggering Player name. (No Color)
Collapse JASS:
call SetPlayerName( GetTriggerPlayer(), "Enter Name")

Setting the Triggering Player name with color
Collapse JASS:
call SetPlayerName( GetTriggerPlayer(), "|cffFF0000Enter Name" )


Setting the Triggering Player name with color and substring. (Change |cffFF0000 for your color, and the number "0" to wherever you want it to start)
Collapse JASS:
call SetPlayerName( GetTriggerPlayer(), ( "|cffFF0000" + SubString(GetEventPlayerChatString(), 0, StringLength(GetEventPlayerChatString())) ) )

I will just set a player name so my code would look like this.
Collapse JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call SetPlayerName( GetTriggerPlayer(), "Enter Name" )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

Hope that helps :).

Last edited by Tastingo : 04-25-2009 at 08:42 PM.
Tastingo is offline   Reply With Quote
Old 04-25-2009, 03:42 PM   #14
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

Tatingo. The substring one would need a chat event to fire it.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-25-2009, 08:40 PM   #15
Tastingo
User
 
Join Date: Jun 2006
Posts: 169

Tastingo is on a distinguished road (11)

Default

Ya I know the purpose was for if he didn't know where to put one of those functions/calls/actions. I said it was a blank trigger purposely :). It wasn't a copy and paste, but to help teach him. But thank you I will say it needs one.

Last edited by Tastingo : 04-25-2009 at 08:41 PM.
Tastingo is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 06:22 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services