I've recently just begun making custom spells in GUI. I'm fairly nooby at this so i'll try to explain it as best I can.
I'm made this ability and I'm trying to get it to work, but it wont :/
The Ability: Holy Shield - The Priest casts Holy shield, making him and his allies invulnerable for 7 seconds. At the end of the 7 seconds the priests allies will be healed for 200.
Right now I can get the spell to make all the allies invulnerable and thats about it. They go invulnerable and then they are stuck that way. The heal doesn't go off, and the shield effect that I use doesnt go away either.
Here is the trigger, i'm sorry if it's terrible lol :O
Thank you
I'm made this ability and I'm trying to get it to work, but it wont :/
The Ability: Holy Shield - The Priest casts Holy shield, making him and his allies invulnerable for 7 seconds. At the end of the 7 seconds the priests allies will be healed for 200.
Right now I can get the spell to make all the allies invulnerable and thats about it. They go invulnerable and then they are stuck that way. The heal doesn't go off, and the shield effect that I use doesnt go away either.
Here is the trigger, i'm sorry if it's terrible lol :O
Code:
Holy Shield
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Shield
Actions
Set HolyShieldCaster[12] = (Triggering unit)
Set HolyShieldCasterLoc = (Position of HolyShieldCaster[12])
Set HolyShieldGroup = (Units within 1000.00 of HolyShieldCasterLoc matching (((Matching unit) belongs to an ally of (Triggering player)) Equal to True))
Special Effect - Create a special effect attached to the origin of HolyShieldCaster[12] using Abilities\Spells\Human\ManaShield\ManaShieldCaster.mdl
Set Sfx3 = (Last created special effect)
Unit Group - Pick every unit in HolyShieldGroup and do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\ManaShield\ManaShieldCaster.mdl
Set Sfx4 = (Last created special effect)
Unit - Make (Picked unit) Invulnerable
Wait 7.00 game-time seconds
Unit - Make (Picked unit) Vulnerable
Special Effect - Destroy Sfx3
Special Effect - Destroy Sfx4
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 200.00)
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_HolyShieldCasterLoc)
Custom script: call DestroyGroup (udg_HolyShieldGroup)
Thank you