Mapster
New Member
- Reaction score
- 4
Ok i've tried making an ability where when a unit attacks it has a chance on casting an ability, a bit like Critical strike but without the damage.
I don't know how to get the wave effect from 1 unit to another unit but i used the Healing Effect instead, but i still want that effect if someone could help out.
Thanks a lot if someone can help
I don't know how to get the wave effect from 1 unit to another unit but i used the Healing Effect instead, but i still want that effect if someone could help out.
Code:
Enters
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Critical Strike <gen> the event (Unit - (Entering unit) Takes damage)
Trigger - Add to Healing Light <gen> the event (Unit - (Entering unit) Takes damage)
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Damage source)) Not equal to Neutral Hostile
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Healing Light for (Damage source)) Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 60
Then - Actions
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Damage source))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of (Owner of (Damage source))) Equal to True
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
Else - Actions
Else - Actions
Else - Actions
Else - Actions
Thanks a lot if someone can help