|
|
#1 |
|
User
Join Date: Mar 2009
Posts: 11
|
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. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
Lackadaisically Absent.
Respected User
|
Trigger: Player - Change name of (Player 1 (Red)) to (|c00ff00 + ((Name of (Player 1 (Red)))) + |r) |
|
|
|
|
|
#3 |
|
User
Join Date: Mar 2009
Posts: 11
|
Thanks, i understand all that now, but i cant find the trigger. I have wc3 ROC. I dont know if that makes a difference.
__________________ |
|
|
|
|
|
#4 |
|
User
Join Date: Oct 2006
Posts: 138
|
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.
__________________ |
|
|
|
|
|
#5 |
|
User
Join Date: Mar 2009
Posts: 11
|
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:
__________________ |
|
|
|
|
|
#6 |
|
User
Join Date: Oct 2006
Posts: 138
|
So why not just get TFT?
__________________ |
|
|
|
|
|
#7 |
|
User
Join Date: Mar 2009
Posts: 11
|
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)
__________________ |
|
|
|
|
|
#8 |
|
In Flames
Join Date: Jan 2006
Posts: 1,153
|
it could be the jass native already exists for RoC aswell..
__________________ |
|
|
|
|
|
#9 |
|
Mr. Awesome!
|
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. |
|
|
|
|
|
#10 |
|
User
|
Theres a native for changing a players name (SetPlayerName(whichplayer, newname))...And afaik RoC and TFT both support all natives. Just not via GUI.
__________________ |
|
|
|
|
|
#11 |
|
User
Join Date: Mar 2009
Posts: 11
|
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)
__________________ |
|
|
|
|
|
#12 |
|
User
Join Date: Mar 2009
Posts: 11
|
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?
__________________ |
|
|
|
|
|
#13 |
|
User
Join Date: Jun 2006
Posts: 169
|
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) 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) JASS:call SetPlayerName( GetTriggerPlayer(), "Enter Name") Setting the Triggering Player name with color 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) JASS:call SetPlayerName( GetTriggerPlayer(), ( "|cffFF0000" + SubString(GetEventPlayerChatString(), 0, StringLength(GetEventPlayerChatString())) ) ) I will just set a player name so my code would look like this. 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. |
|
|
|
|
|
#14 |
|
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]()
|
Tatingo. The substring one would need a chat event to fire it.
__________________ |
|
|
|
|
|
#15 |
|
User
Join Date: Jun 2006
Posts: 169
|
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. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |