- Joined
- Mar 23, 2008
- Messages
- 1,813
I am trying to make a aura, that works that if the unit has the buff from the aura on it, it has a 40 % chance of being struck by a 100 damage lightning, 30 % chance by a 150 damage lightning, 20 % chance by a 200 damage lightning.
But they are getting random lightnings all the time, by just being near them. Can anyone tell me where it has been wrong?
But they are getting random lightnings all the time, by just being near them. Can anyone tell me where it has been wrong?
-
Sparky aura
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
((Target unit of ability being cast) has buff Sparky Aura ) Equal to True
-
-
Actions
-
Set SparkyUnit = (Target unit of ability being cast)
-
Set SparkyAura = (Random integer number between 1 and 10)
-
Set SparkyAura2 = (Random integer number between 1 and 10)
-
Set SparkyAura3 = (Random integer number between 1 and 10)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SparkyAura Less than or equal to 4
-
-
Then - Actions
-
Unit - Cause (Casting unit) to damage SparkyUnit, dealing 100.00 damage of attack type Spells and damage type Lightning
-
Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set SparkyUnit = No unit
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SparkyAura2 Less than or equal to 3
-
-
Then - Actions
-
Unit - Cause (Casting unit) to damage SparkyUnit, dealing 150.00 damage of attack type Spells and damage type Lightning
-
Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set SparkyUnit = No unit
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SparkyAura3 Less than or equal to 2
-
-
Then - Actions
-
Unit - Cause (Casting unit) to damage SparkyUnit, dealing 200.00 damage of attack type Spells and damage type Lightning
-
Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set SparkyUnit = No unit
-
-
Else - Actions
-
-
-