Hey guys i am here again anyway... here a small example of what i have made
-
Lightning Shield
-
Events
- Unit - A unit Is attacked
-
Conditions
- (((Attacking unit) has buff Lucky Lightning ) Equal to True) and ((Unit-type of (Attacking unit)) Equal to Gnoll Warden)
-
Actions
- Set Lucky = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Lucky Lightning for (Attacking unit)) Equal to 1
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Lucky Less than or equal to 15
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
- Wait 1.00 seconds
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
- Wait 1.00 seconds
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
- Wait 1.00 seconds
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
- Wait 1.00 seconds
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
Events