- Joined
- Sep 27, 2018
- Messages
- 67
Hello, I have a question for random movement, I have a unit group for example 5 Spellbreak in the group and I want them to move 4 points each one, also order 2 of them move one point for dialog. So I have the trigger:
-
OrdAttaDestructible
-

Events
-


Unit - A unit comes within 256.00 of Paladín 0008 <gen>
-
-

Conditions
-


(Owner of (Entering unit)) Equal to Player 1 (Red)
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Set VariableSet Victoriosos = (Units owned by Player 2 (Blue) of type Rompehechizos)
-


Unit Group - Pick every unit in Victoriosos and do (Actions)
-



Loop - Actions
-




AI - Ignore (Picked unit)'s guard position
-
-
-


Game - Display to (All players) the text: (String((Number of units in Victoriosos)))
-


For each (Integer A) from 1 to (Number of units in Victoriosos), do (Actions)
-



Loop - Actions
-




For each (Integer B) from 1 to 4, do (Actions)
-





Loop - Actions
-






Unit - Order (Random unit from (Random (Integer A) units from Victoriosos)) to Move To Guardias[(Integer B)]
-
-
-
-
-
-
-
Inicio
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set VariableSet Guardias[1] = (Center of Region 018 <gen>)
-


Set VariableSet Guardias[2] = (Center of Región 001 <gen>)
-


Set VariableSet Guardias[3] = (Center of Región 000 <gen>)
-


Set VariableSet Guardias[4] = (Random point in Rescatables <gen>)
-
-

