PooBucket
New Member
- Reaction score
- 12
1. I have an ability which is exactly like Blizzard but no channeling, it use to work I don't know what I did but now it sends only one wave of it and then stops, I've set it to 6 shards 6 waves and then level 2 7 waves 7 shards in the object editor blah blah blah.
2. I've made an ability that absorbs certain amount of damage, but I want a special effect on the unit so when the shield runs out, or the duration of time is gone, the special effect is gone. But when I tried it stays there forever, can someone help this simple question out?
Code:
Hail
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Hail
Actions
Set Hail_Point = (Target point of ability being cast)
Set Hail_Caster_Position = (Position of (Casting unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Hail for (Casting unit)) Equal to 1
Then - Actions
Unit - Create 1 Hail for (Owner of (Casting unit)) at Hail_Caster_Position facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Hail (Hail Effect) to (Last created unit)
Unit - Order (Last created unit) to Human Archmage - Blizzard Hail_Point
Unit - Add a 7.00 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Hail for (Casting unit)) Equal to 2
Then - Actions
Unit - Create 1 Hail for (Owner of (Casting unit)) at Hail_Caster_Position facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Hail (Hail Effect) to (Last created unit)
Unit - Increase level of Hail (Hail Effect) for (Last created unit)
Unit - Order (Last created unit) to Human Archmage - Blizzard Hail_Point
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Hail for (Casting unit)) Equal to 3
Then - Actions
Unit - Create 1 Hail for (Owner of (Casting unit)) at Hail_Caster_Position facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Hail (Hail Effect) to (Last created unit)
Unit - Set level of Hail (Hail Effect) for (Last created unit) to 3
Unit - Order (Last created unit) to Human Archmage - Blizzard Hail_Point
Unit - Add a 13.00 second Generic expiration timer to (Last created unit)
Else - Actions
Custom script: call RemoveLocation (udg_Hail_Point)
Custom script: call RemoveLocation (udg_Hail_Caster_Position)
2. I've made an ability that absorbs certain amount of damage, but I want a special effect on the unit so when the shield runs out, or the duration of time is gone, the special effect is gone. But when I tried it stays there forever, can someone help this simple question out?
Code:
Holy Shield
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Holy Shield
Actions
Set DamageAbsorbed = ((Real((Level of (Ability being cast) for (Triggering unit)))) x (300.00 - ((Real((Level of (Ability being cast) for (Triggering unit)))) x (100.00 + 100.00))))
Trigger - Add to Holy Shield Eventless <gen> the event (Unit - (Target unit of ability being cast) Takes damage)
If (DamageAbsorbed Greater than 0.00) then do (Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl) else do (Special Effect - Destroy (Last created special effect))
Wait 20.00 seconds
Set DamageAbsorbed = 0.00
Code:
Holy Shield Eventless
Events
Conditions
DamageAbsorbed Greater than 0.00
Actions
Set DamageAbsorbed = (DamageAbsorbed + (Damage taken))
If (DamageAbsorbed Greater than or equal to 0.00) then do (Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))) else do (Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) + DamageAbsorbed)))