- Joined
- Oct 25, 2006
- Messages
- 1,173
Hi everyone. I'm currently working on a trigger which automatically orders to every units selected by a player to cast a "Target Unit" spell (useful for maps with lots of units and where you can't select all units one by one).
I had to rework on some parts because I'm working on a french editor and its half english half french (who said translators were stupid ?).
So here's my problem: the unit group include every units I wanted it to include (so every units of the selection excepted the first who cast the spell). I know that because of the text action. BUT only one unit of the selection casts the spell.
Why ? Can you help me solve this ?
Thanks by advance.
Goff'
-
General Capture
-

Event
-


Unit - A unit received an order with an object (a unit ?) as target
-
-

Conditions
-


(Issued order) Equal to (Order(drain))
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Unit Group - Pick every unit in (Units currently selected by (Owner of (Triggering unit))) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Picked unit) different from (Triggering unit)
-
-





Then - Actions
-






Unit - Order (Picked unit) to Blood Mage - Mana Drain (Target unit of issued order)
-






Game - Display to (All players) the text: (Name of (Picked unit))
-
-





Else - Actions
-
-
-
-


Trigger - Turn on (This trigger)
-
-
I had to rework on some parts because I'm working on a french editor and its half english half french (who said translators were stupid ?).
So here's my problem: the unit group include every units I wanted it to include (so every units of the selection excepted the first who cast the spell). I know that because of the text action. BUT only one unit of the selection casts the spell.
Why ? Can you help me solve this ?
Thanks by advance.
Goff'






