- Joined
- Mar 12, 2005
- Messages
- 117
Hi my next question is i have set a dialog to create units n stuff
however after the last unit is created i wanted the map to remove all the unused slots that did play in the begging this is my trigger
event - dialog: button click for last dialog
conditions: ((Random player from (all players matching((((Matching player)controller)equal to User)and(((matching player)slot status)Equal to is unused))))slot status)Equal to is unused.
Action: unit group: pick everyunits (units own by (triggering player)) and do actions
loop- unit remove picked unit.
now that trigger will only get rid of player 1 and that is because player 1 is the triggering player cos i click the dilog button.
so i changed the action trigger to
unit group: pick everyunits (units own by (Matching Player)matching(((Matching player)slot status) Equal to unused)) and do actions
loop- unit remove picked unit.
i have the trigger also pop up a message so i know the trigger has been activated but none of the units are removed in the 'unused' slots.
does anyone know where im going wrong in my code?
however after the last unit is created i wanted the map to remove all the unused slots that did play in the begging this is my trigger
event - dialog: button click for last dialog
conditions: ((Random player from (all players matching((((Matching player)controller)equal to User)and(((matching player)slot status)Equal to is unused))))slot status)Equal to is unused.
Action: unit group: pick everyunits (units own by (triggering player)) and do actions
loop- unit remove picked unit.
now that trigger will only get rid of player 1 and that is because player 1 is the triggering player cos i click the dilog button.
so i changed the action trigger to
unit group: pick everyunits (units own by (Matching Player)matching(((Matching player)slot status) Equal to unused)) and do actions
loop- unit remove picked unit.
i have the trigger also pop up a message so i know the trigger has been activated but none of the units are removed in the 'unused' slots.
does anyone know where im going wrong in my code?