Trigger For Currently Selected Units
Hi i'm a newbie in this website, and i've been learning how to to program a map using triggers.... i wanted to create a cheat trigger, which is like this:
Events:
A player types a chat message containing (Empty String) as a substring
Conditions:
(Substring((Entered Chat String), 1, 6)) Equal to (Substring(-invul, 1, 6))
Actions:
Set Temp_Group[(Player Number Of (Triggering Player))] = (Units currently selected by (Triggering Player))
Unit Group - Pick every unit in Temp_Group[(Player Number Of (Triggering Player))] and do (Unit - Make (Picked Unit) Invulnerable)
Unit Group - Destroy unit group Temp_Group[(Player Number Of (Triggering Player))]
This works very well in single player mode, but when i go online, the trigger gets messed up.... the units that i did not selected currently also became invulnerable when i type -invul.... how? i'm very troubled now, help is greatly appreciated....
Hi i'm a newbie in this website, and i've been learning how to to program a map using triggers.... i wanted to create a cheat trigger, which is like this:
Events:
A player types a chat message containing (Empty String) as a substring
Conditions:
(Substring((Entered Chat String), 1, 6)) Equal to (Substring(-invul, 1, 6))
Actions:
Set Temp_Group[(Player Number Of (Triggering Player))] = (Units currently selected by (Triggering Player))
Unit Group - Pick every unit in Temp_Group[(Player Number Of (Triggering Player))] and do (Unit - Make (Picked Unit) Invulnerable)
Unit Group - Destroy unit group Temp_Group[(Player Number Of (Triggering Player))]
This works very well in single player mode, but when i go online, the trigger gets messed up.... the units that i did not selected currently also became invulnerable when i type -invul.... how? i'm very troubled now, help is greatly appreciated....
Last edited: