Need some help with codes!

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Need some help with codes!

Post by tru_power22 »

I get what I'm supposed to do here, but the commands confuse me, as there are multiple quotes! Plus when I use the commands they don't work. Can someone tell me what the commands are?
Spoiler:
call TriggerRegisterPlayerChatEvent(gg_trg_Sauron,Player(0),"\"Sauron\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Sauron2,Player(0),"\"Lord of the Rings\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_King_of_the_Dead,Player(0),"\"King of the Dead\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Moneylover,Player(0),"\"money money money\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Zwick,Player(0),"\"brian or bryan\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Plumrugofdoom,Player(0),"-/Plumrugofdoom\\-",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TheMoneyLover,Player(0),"\"$TheMoneyLover$\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Saruman,Player(0),"\"Saruman\"",true)
These commands I get:
Spoiler:
call TriggerRegisterPlayerChatEvent(gg_trg_DwarvenGeneral,Player(0),"(-Dwarven_General-)",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Cloudsora,Player(0),"-(cloud_sora)-",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Monkey168,Player(0),"-[(Monkey168)]-",true)
This is unrelated but, look at this retarded trigger!
This is bad even for something made in GUI
Spoiler:
call TriggerAddAction(gg_trg_Setup_Game,function Trig_Setup_Game_Actions)
call TriggerAddAction(gg_trg_Setup_Players,function Trig_Setup_Players_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs,Condition(function Trig_Bs_Conditions))
call TriggerAddAction(gg_trg_Bs,function Trig_Bs_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy,Condition(function Trig_Bs_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy,function Trig_Bs_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3,Condition(function Trig_Bs_Copy_3_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3,function Trig_Bs_Copy_3_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy,Condition(function Trig_Bs_Copy_3_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy,function Trig_Bs_Copy_3_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_2,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_2,Condition(function Trig_Bs_Copy_3_Copy_2_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_2,function Trig_Bs_Copy_3_Copy_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_3,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_3,Condition(function Trig_Bs_Copy_3_Copy_3_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_3,function Trig_Bs_Copy_3_Copy_3_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4,Condition(function Trig_Bs_Copy_3_Copy_4_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4,function Trig_Bs_Copy_3_Copy_4_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2,function Trig_Bs_Copy_3_Copy_4_Copy_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy,Player(6),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_2,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_2,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_2_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_2,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_2_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_3,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_3,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_3_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_3,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_3_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_4,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_4,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_4_Conditions))
call TriggerAddAction(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_4,function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_4_Actions)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_5,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_5,Condition(function Trig_Bs_Copy_3_Copy_4_Copy_2_Copy_Copy_Copy_Copy_Copy_Copy_2_Copy_Copy_2_Copy_5_Conditions))
All of these are from LOTR footmen wars.
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
Bushido

Re: Need some help with codes!

Post by Bushido »

call TriggerRegisterPlayerChatEvent(gg_trg_DwarvenGeneral,Player(0),"(-Dwarven_General-)",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Cloudsora,Player(0),"-(cloud_sora)-",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Monkey168,Player(0),"-[(Monkey168)]-",true)
spoof the name for some extra commands...
call TriggerRegisterPlayerChatEvent(gg_trg_Sauron,Player(0),"\"Sauron\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Sauron2,Player(0),"\"Lord of the Rings\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_King_of_the_Dead,Player(0),"\"King of the Dead\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Moneylover,Player(0),"\"money money money\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Zwick,Player(0),"\"brian or bryan\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Plumrugofdoom,Player(0),"-/Plumrugofdoom\\-",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TheMoneyLover,Player(0),"\"$TheMoneyLover$\"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Saruman,Player(0),"\"Saruman\"",true)
the same here...seems so that u have to be red to act them ;)
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: Need some help with codes!

Post by tru_power22 »

call TriggerRegisterPlayerChatEvent(gg_trg_DwarvenGeneral,Player(0),"(-Dwarven_General-)",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Cloudsora,Player(0),"-(cloud_sora)-",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Monkey168,Player(0),"-[(Monkey168)]-",true)

For these all you need to do is type the commands, trust me, the others, I don't get.

BTW, I was playing red.

Code: Select all

call TriggerRegisterPlayerChatEvent
is when the game looks for something the player typed.
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.