Manix
Well-Known Member
- Reaction score
- 29
Well, here's my trigger, when I do >3 ( ex. ) that should select player 3 and teleport him to the next circle of power, but when I type it in the game crashes, here's my trigger and there's a part which I suspect, It's bounded and red.
Code:
Team Selecting Sacheche
Events
Player - Player 1 (Red) types a chat message containing > as A substring
Conditions
Sacheche_Voted Equal to False
Actions
Set Sacheche_Circles = (Sacheche_Circles + 1)
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sacheche_Circles Equal to (Integer A)
Then - Actions
[B][COLOR="Red"]Set Unit_Owned_by_Selected_Player = (Units owned by (Player((Integer((Entered chat string))))))[/COLOR][/B]
Unit Group - Pick every unit in Unit_Owned_by_Selected_Player and do (Actions)
Loop - Actions
Unit - Change color of Sacheche_Circles_of_Power[(Integer A)] to (Color of (Owner of (Picked unit)))
Unit - Move (Picked unit) instantly to Points_Sacheche[(Integer A)], facing 270.00 degrees
Custom script: call DestroyGroup(udg_Unit_Owned_by_Selected_Player)
Set Sacheche_Voted = True
Set Japeto_Voted = False
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Sacheche_Circles Equal to 5
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Else - Actions