apocalypse_dudecondition: Triggering unit equals to selected unit
I'm not sure that will work. I think that Selected Unit will only refer to an Event or an Action [i.e., you select a unit with a trigger action]
I'm not sure how you would do it, I'm pretty sure there's a JASS code...function...thingy for it, [like smart is for right clicking], then you could use that for an Event in a trigger that would have an Action that would set the unit to a variable with an array according to the owning player of the selected unit. Anyways...I hope you get what you need!
Well I trying this but I don't really understand so I'll write you what I have in my trigger ( it's a removing trigger ) and u'll simpely tell me what wrong (or not).
Trigger: Player - Player 1 (red) types a chat message containing remove as an exact match
Condition: ((Number of units in(Unit selected by player 1 (red))) greater than 0) and ( its a condition with and) (player 1 (red) equal to owner of (triggering unit)))
action: - Player X types '-remove' as exact match - <you might do this for all players - doesn't matter for the rest of the code> condition: - Integer - Number of Units in Group (Units selected by TriggeringPlayer matching (Owner of matching Unit = TriggeringPlayer)) > 0 actions: - Unitgroup - Pick every unit in group(Units selected by TriggeringPlayer matching (Owner of Matching Unit = Triggering Player)) and do actions - - remove picked unit from game
Well it's not working, I didn't put matching owner of matching unit cause I want that when red select a unit and type remove it remove it no need to be his units.
Master_AngelWell it's not working, I didn't put matching owner of matching unit cause I want that when red select a unit and type remove it remove it no need to be his units.
Did you try my triggers? If you want to remove also other player's units, just remove the condition from the first trigger.