- Joined
- Mar 17, 2012
- Messages
- 582
Hi there! Okay, I have 2 teams, but 4 bases (2 for each) in my map.
Every hero has an ability Recall to channel it and teleport to base within 10 seconds. If someone hits him during channel - it will break his cast. If hero moves - he breaks his cast.
I have 4 points to teleport, but only 2 teams. So, look what I have (I was trying to do it MUI, but it's not what I expected ):
And yes, I was trying to use timers instead of Waits, but I can't set Integer array in Events field....(((
Every hero has an ability Recall to channel it and teleport to base within 10 seconds. If someone hits him during channel - it will break his cast. If hero moves - he breaks his cast.
I have 4 points to teleport, but only 2 teams. So, look what I have (I was trying to do it MUI, but it's not what I expected ):
-
Recall start
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Recall
-
Actions
- Set Player_Number_Int = (Player number of (Owner of (Triggering unit)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Blue Orange <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 6 (Orange)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Blue Orange <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 4 (Purple)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Purple Yellow <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Purple Yellow <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 8 (Pink)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Pink Gray <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 9 (Gray)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of Pink Gray <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of DG Brown <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
Then - Actions
- Set Recall_Caster[Player_Number_Int] = (Triggering unit)
- Set Recall_ON[Player_Number_Int] = True
- Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of Recall_Caster[Player_Number_Int] using MassTeleportCaster.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Move Recall_Caster[Player_Number_Int] instantly to (Center of DG Brown <gen>)
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Events
-
Recall damage
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- DamageEventTarget Equal to Recall_Caster[Player_Number_Int]
- Recall_ON[Player_Number_Int] Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Unit - Order DamageEventTarget to Stop
- Set Recall_ON[Player_Number_Int] = False
-
Events
-
Recall stop
-
Events
- Unit - A unit Stops casting an ability
-
Conditions
- (Ability being cast) Equal to Recall
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Recall_ON[Player_Number_Int] Equal to True
-
Then - Actions
- Set Recall_ON[Player_Number_Int] = False
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
And yes, I was trying to use timers instead of Waits, but I can't set Integer array in Events field....(((