So i am trying to make a trigger that prevents Players from Un-Allying the target player for 3 minutes, after Teleporting to Target's Main Hall. I tried making my system which should work but wont work for some reason, id like to know why... Take a look:
The Trigger: Trigger - Turn on Second teleport declare <gen> . is what activates the next triggerl.
Please help, My map really needs this system , as there are rules in this map which ppl often break, One of them is Teleporting to ally's base and Declaring war to them... need to prevent that . Map is called : World War ][][][ New Tun. #000 ( true name: World War 3 Tundra Revisited )
-
First teleport declare
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Item Town Portal
-
Actions
-
If (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 on Second teleport declare <gen>
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
First Teleport declare activat
- Events
- Conditions
-
Actions
- Trigger - Turn on First Teleport declae 2 <gen>
- Wait 180.00 seconds
- Trigger - Turn off First Teleport declae 2 <gen>
-
First Teleport declae 2
-
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
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering player) is an enemy of OwnerOfTownHall[1]) Equal to True
-
Then - Actions
- Player - Make OwnerOfTownHall[1] treat OwnerOfTeleUnit[1] as an Ally
- Player - Make OwnerOfTeleUnit[1] treat OwnerOfTownHall[1] as an Ally
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
The Trigger: Trigger - Turn on Second teleport declare <gen> . is what activates the next triggerl.
Please help, My map really needs this system , as there are rules in this map which ppl often break, One of them is Teleporting to ally's base and Declaring war to them... need to prevent that . Map is called : World War ][][][ New Tun. #000 ( true name: World War 3 Tundra Revisited )