So im trying to make a system that would prevent people from un-allying in 3 minutes after teleporting to allies base using scroll town portal. ( using allies [f11] and unticking name )
Heres what i have so far..
First trigger:
Heres what i have so far..
First trigger:
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) Item Town Portal
-
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Not equal to (!=) (Owner of (Target unit of ability being cast))
-
-
Then - Actions
-
Set OwnerOfTeleUnit[1] = (Owner of (Triggering unit))
-
Set OwnerOfTownHall[1] = (Owner of (Target unit of ability being cast))
-
Trigger - Run First Teleport declare activat <gen> (ignoring conditions)
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Actions
-
Trigger - Turn on First Teleport declae 2 <gen>
-
Wait 180.00 seconds
-
Trigger - Turn off First Teleport declae 2 <gen>
-
-
Events
-
Player - Player 1 (Red) changes Alliance (non-aggression) settings
-
Player - Player 2 (Blue) changes Alliance (non-aggression) settings
-
Player - Player 3 (Teal) changes Alliance (non-aggression) settings
-
Player - Player 4 (Purple) changes Alliance (non-aggression) settings
-
Player - Player 5 (Yellow) changes Alliance (non-aggression) settings
-
Player - Player 6 (Orange) changes Alliance (non-aggression) settings
-
Player - Player 7 (Green) changes Alliance (non-aggression) settings
-
Player - Player 8 (Pink) changes Alliance (non-aggression) settings
-
Player - Player 9 (Gray) changes Alliance (non-aggression) settings
-
Player - Player 10 (Light Blue) changes Alliance (non-aggression) settings
-
Player - Player 11 (Dark Green) changes Alliance (non-aggression) settings
-
Player - Player 12 (Brown) changes Alliance (non-aggression) settings
-
-
Conditions
-
(Triggering player) Equal to (==) OwnerOfTeleUnit[1]
-
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering player) is giving OwnerOfTownHall[1] Alliance (non-aggression)) Equal to (==) False
-
-
Then - Actions
-
Player - Make OwnerOfTeleUnit[1] treat OwnerOfTownHall[1] as an Ally
-
Player - Make OwnerOfTownHall[1] treat OwnerOfTeleUnit[1] as an Ally
-
-
Else - Actions
-
-