- Joined
- Feb 22, 2009
- Messages
- 260
To make it simple, these 2 spells can summon multiple types of wards. Since multiple players can select this hero, they can all use these spells at the same time.
What I afraid is the Integer A would conflict with each other when the triggers were running.
What I afraid is the Integer A would conflict with each other when the triggers were running.
-
Bless
-
Events
-
Unit - A unit Spawns a summoned unit
-
-
Conditions
-
(Unit-type of (Summoning unit)) Equal to Shadow Hunter (Sogat)
-
(Unit-type of (Summoned unit)) Equal to Ward - War Drum
-
-
Actions
-
Set SummonedUnit[175] = (Summoned unit)
-
Set SummoningUnit[175] = (Summoning unit)
-
Set AbilityPointArray[175] = (Position of SummonedUnit[175])
-
Set AbilityArray[175] = Blessing Totem (Elite)
-
Unit - Set Armor of SummonedUnit[175] to ShadowHunterVar[(Level of AbilityArray[175] for SummoningUnit[175])]
-
Unit - Set Base Damage of SummonedUnit[175] to (Integer(ShadowHunterVar[((Level of AbilityArray[175] for SummoningUnit[175]) + 6)])) for weapon index: 1
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Blessing Totem (Elite) for SummoningUnit[175]) Equal to 2
-
-
Then - Actions
-
Set AbilityPointArray[176] = (AbilityPointArray[175] offset by 75.00 towards 90.00 degrees)
-
Unit - Create 1 Ward - Bloodlust for (Owner of SummoningUnit[175]) at AbilityPointArray[176] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[176])
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Blessing Totem (Elite) for SummoningUnit[175]) Equal to 3
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set MathOp[175] = (180.00 x (Real((Integer A))))
-
Set MathOp[176] = (MathOp[175] - 90.00)
-
Set AbilityPointArray[176] = (AbilityPointArray[175] offset by 75.00 towards MathOp[176] degrees)
-
Unit - Create 1 Ward - Bloodlust for (Owner of SummoningUnit[175]) at AbilityPointArray[176] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[176])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Blessing Totem (Elite) for SummoningUnit[175]) Equal to 4
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set MathOp[175] = (180.00 x (Real((Integer A))))
-
Set MathOp[176] = (MathOp[175] - 90.00)
-
Set AbilityPointArray[176] = (AbilityPointArray[175] offset by 75.00 towards MathOp[176] degrees)
-
Unit - Create 1 Ward - Bloodlust for (Owner of SummoningUnit[175]) at AbilityPointArray[176] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[176])
-
-
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set MathOp[177] = (180.00 x (Real((Integer A))))
-
Set AbilityPointArray[177] = (AbilityPointArray[175] offset by 75.00 towards MathOp[177] degrees)
-
Unit - Create 1 Ward - Bless for (Owner of SummoningUnit[175]) at AbilityPointArray[177] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[177])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Blessing Totem (Elite) for SummoningUnit[175]) Equal to 5
-
-
Then - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[175] = (144.00 x (Real((Integer A))))
-
Set MathOp[176] = (MathOp[175] - 72.00)
-
Set AbilityPointArray[176] = (AbilityPointArray[175] offset by 75.00 towards MathOp[176] degrees)
-
Unit - Create 1 Ward - Bloodlust for (Owner of SummoningUnit[175]) at AbilityPointArray[176] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[176])
-
-
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set MathOp[177] = (144.00 x (Real((Integer A))))
-
Set AbilityPointArray[177] = (AbilityPointArray[175] offset by 75.00 towards MathOp[177] degrees)
-
Unit - Create 1 Ward - Bless for (Owner of SummoningUnit[175]) at AbilityPointArray[177] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[177])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Blessing Totem (Elite) for SummoningUnit[175]) Equal to 6
-
-
Then - Actions
-
Unit - Set level of Ward - War Drums for SummonedUnit[175] to 2
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[175] = (144.00 x (Real((Integer A))))
-
Set MathOp[176] = (MathOp[175] - 72.00)
-
Set AbilityPointArray[176] = (AbilityPointArray[175] offset by 75.00 towards MathOp[176] degrees)
-
Unit - Create 1 Ward - Bloodlust for (Owner of SummoningUnit[175]) at AbilityPointArray[176] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[176])
-
-
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set MathOp[177] = (144.00 x (Real((Integer A))))
-
Set AbilityPointArray[177] = (AbilityPointArray[175] offset by 75.00 towards MathOp[177] degrees)
-
Unit - Create 1 Ward - Bless for (Owner of SummoningUnit[175]) at AbilityPointArray[177] facing AbilityPointArray[175]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[177])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
Custom script: call RemoveLocation (udg_AbilityPointArray[175])
-
-
-
Curse
-
Events
-
Unit - A unit Spawns a summoned unit
-
-
Conditions
-
(Unit-type of (Summoning unit)) Equal to Shadow Hunter (Sogat)
-
(Unit-type of (Summoned unit)) Equal to Ward - Abolish Magic
-
-
Actions
-
Set SummonedUnit[180] = (Summoned unit)
-
Set SummoningUnit[180] = (Summoning unit)
-
Set AbilityPointArray[180] = (Position of SummonedUnit[180])
-
Set AbilityArray[180] = Cursing Ward (Elite)
-
Unit - Set Armor of SummonedUnit[180] to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to SummonedUnit[180]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 1
-
-
Then - Actions
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 50.00 towards 180.00 degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 2
-
-
Then - Actions
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 80.00 towards 180.00 degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[180] = (Real((Integer A)))
-
Set MathOp[181] = (MathOp[180] x 120.00)
-
Set AbilityPointArray[182] = (AbilityPointArray[180] offset by 50.00 towards MathOp[181] degrees)
-
Unit - Create 1 Ward - Curse for (Owner of SummonedUnit[180]) at AbilityPointArray[182] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[182])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 3
-
-
Then - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[180] = (Real((Integer A)))
-
Set MathOp[181] = (MathOp[180] x 120.00)
-
Set MathOp[182] = (MathOp[181] - 60.00)
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 80.00 towards MathOp[182] degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
-
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[183] = (Real((Integer A)))
-
Set MathOp[184] = (MathOp[183] x 120.00)
-
Set AbilityPointArray[182] = (AbilityPointArray[180] offset by 50.00 towards MathOp[184] degrees)
-
Unit - Create 1 Ward - Curse for (Owner of SummonedUnit[180]) at AbilityPointArray[182] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[182])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 4
-
-
Then - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[180] = (Real((Integer A)))
-
Set MathOp[181] = (MathOp[180] x 120.00)
-
Set MathOp[182] = (MathOp[181] - 60.00)
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 80.00 towards MathOp[182] degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
-
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[183] = (Real((Integer A)))
-
Set MathOp[184] = (MathOp[183] x 120.00)
-
Set AbilityPointArray[182] = (AbilityPointArray[180] offset by 50.00 towards MathOp[184] degrees)
-
Unit - Create 1 Ward - Curse for (Owner of SummonedUnit[180]) at AbilityPointArray[182] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[182])
-
-
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[185] = (Real((Integer A)))
-
Set MathOp[186] = (MathOp[185] x 120.00)
-
Set MathOp[187] = (MathOp[186] + 30.00)
-
Set AbilityPointArray[183] = (AbilityPointArray[180] offset by 40.00 towards MathOp[187] degrees)
-
Unit - Create 1 Ward - Slow for (Owner of SummonedUnit[180]) at AbilityPointArray[183] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[183])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 5
-
-
Then - Actions
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
-
Set MathOp[180] = (Real((Integer A)))
-
Set MathOp[181] = (MathOp[180] x 72.00)
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 80.00 towards MathOp[181] degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
-
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[182] = (Real((Integer A)))
-
Set MathOp[183] = (MathOp[182] x 120.00)
-
Set AbilityPointArray[182] = (AbilityPointArray[180] offset by 50.00 towards MathOp[183] degrees)
-
Unit - Create 1 Ward - Curse for (Owner of SummonedUnit[180]) at AbilityPointArray[182] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[182])
-
-
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set MathOp[184] = (Real((Integer A)))
-
Set MathOp[185] = (MathOp[184] x 120.00)
-
Set MathOp[186] = (MathOp[185] + 30.00)
-
Set AbilityPointArray[183] = (AbilityPointArray[180] offset by 40.00 towards MathOp[186] degrees)
-
Unit - Create 1 Ward - Slow for (Owner of SummonedUnit[180]) at AbilityPointArray[183] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[183])
-
-
-
-
Else - Actions
-
-
-------- ---------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Cursing Ward (Elite) for (Summoning unit)) Equal to 6
-
-
Then - Actions
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
-
Set MathOp[180] = (Real((Integer A)))
-
Set MathOp[181] = (MathOp[180] x 72.00)
-
Set AbilityPointArray[181] = (AbilityPointArray[180] offset by 80.00 towards MathOp[181] degrees)
-
Unit - Create 1 Ward - Abolish Magic for (Owner of SummoningUnit[180]) at AbilityPointArray[181] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Unit - Set Armor of (Last created unit) to ShadowHunterVar[(Level of AbilityArray[180] for SummoningUnit[180])]
-
-------- Corruption passive --------
-
Unit - Add AbilityArray[((Level of AbilityArray[180] for SummoningUnit[180]) + 180)] to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[181])
-
-
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Set MathOp[182] = (Real((Integer A)))
-
Set MathOp[183] = (MathOp[182] x 90.00)
-
Set AbilityPointArray[182] = (AbilityPointArray[180] offset by 40.00 towards MathOp[183] degrees)
-
Unit - Create 1 Ward - Curse for (Owner of SummonedUnit[180]) at AbilityPointArray[182] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[182])
-
-
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Set MathOp[185] = (Real((Integer A)))
-
Set MathOp[186] = (MathOp[185] x 120.00)
-
Set MathOp[187] = (MathOp[186] + 45.00)
-
Set AbilityPointArray[183] = (AbilityPointArray[180] offset by 40.00 towards MathOp[187] degrees)
-
Unit - Create 1 Ward - Slow for (Owner of SummonedUnit[180]) at AbilityPointArray[183] facing AbilityPointArray[180]
-
Unit - Add a 60.00 second Healing Ward expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_AbilityPointArray[183])
-
-
-
-
Else - Actions
-
-
Custom script: call RemoveLocation (udg_AbilityPointArray[180])
-
-