Im trying to make this action. There are X players from 1 to 8. with 1 hero as unit
I made a zeppelin pick every hero and transport them, by changing the owner, now i cant get the heroes to have their owners restored.. how do i do it???
First to change owner i did
I made a zeppelin pick every hero and transport them, by changing the owner, now i cant get the heroes to have their owners restored.. how do i do it???
First to change owner i did
-
Unit Group - Pick every unit in (Units in Region 034 <gen>) and do (Actions)
-

Loop - Actions
-


Unit - Change ownership of (Picked unit) to Player 1 (Red) and Retain color
-



Set unitscustomvalue[(Player number of (Owner of (Picked unit)))] = (Player number of (Owner of (Picked unit)))
-
-
-
-
Unit - Order Goblin Zeppelin 1184 <gen> to Unload All At (Center of Region 035 <gen>)
-
Unit Group - Pick every unit in (Units in Region 035 <gen>) and do (Actions)
-

Loop - Actions
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Custom value of (Picked unit)) Equal to (Player number of (Player((Integer A))))
-
-





Then - Actions
-






Unit - Change ownership of (Picked unit) to (Player((Integer A))) and Change color
-
-





Else - Actions
-
-
-
-


Game - Display to (All players) the text: changed owner
-
-

