Chewbalka
New Member
- Reaction score
- 14
the trigger returns only the number 1 no matter how many times i play it, meaning its not doing any of the actions after "Unit Group - Pick every unit". i dont know why.
logicly it should do the actions even if it doesnt pick any unit at all right?
logicly it should do the actions even if it doesnt pick any unit at all right?
Code:
Move Object
Events
Unit - A unit owned by Player 1 (Red) Begins casting an ability
Conditions
(Ability being cast) Equal to Drag/Release Object
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DragorRelease Equal to False
Then - Actions
Game - Display to (All players) the text: 1
Unit Group - Pick every unit in (Random 1 units from (Units within 300.00 of (Position of Players_Hero) matching ((Owner of (Picked unit)) Equal to Neutral Passive))) and do (Actions)
Loop - Actions
Set DraggedObject = (Picked unit)
Unit - Order (Picked unit) to Follow Players_Hero
Set DragorRelease = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DragorRelease Equal to True
Then - Actions
Unit - Order DraggedObject to Stop
Set DragorRelease = False
Game - Display to (All players) the text: 2
Else - Actions
Game - Display to (All players) the text: 3