HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Small Question

07-01-2005, 06:46 AM#1
EnZ
How do i make a Healing Spell that only Heals a Specific unit and doesnt require u to select that unit in order to heal it


Lets say i have a Beastmaster . and its summoned a Bear

i want to create a spell that will heal his bear nomatter where abouts on the map it is , Just by using a skill - and will only heal that bear
07-01-2005, 06:50 AM#2
Azhag
You will have to trigger it... I'm not on the WE right now, so I can't help you. If no one replies tomarrow, I will help you.
07-01-2005, 06:55 AM#3
EnZ
kk kewlies
07-01-2005, 06:57 AM#4
Scyze
When the spell is cast, set the summoned unit to a variable array for that player. For instance:

Melee Initialization
Events
Unit - A unit Spawns a summoned unit
Conditions
(Use conditions as necessary.)
Actions
Set SummonedUnit[(Player number of (Triggering player))] = (Summoned unit)

And when you need to do the healing, use a dummy instant spell (probably Locust Swarm), and make it restore HP to that variabled unit, and play some sort of special effect.

- Scyze
07-01-2005, 02:28 PM#5
EnZ
Quote:
Originally Posted by Scyze
When the spell is cast, set the summoned unit to a variable array for that player. For instance:

Melee Initialization
Events
Unit - A unit Spawns a summoned unit
Conditions
(Use conditions as necessary.)
Actions
Set SummonedUnit[(Player number of (Triggering player))] = (Summoned unit)

And when you need to do the healing, use a dummy instant spell (probably Locust Swarm), and make it restore HP to that variabled unit, and play some sort of special effect.

- Scyze

By Dummy Instant Spell - Are u referring to a Modified Version of Said Spell?
07-01-2005, 05:21 PM#6
Scyze
Yes. A spell like, Locust Swarm (because it has no target), with the values set to all null (nothing). So, basically, Locust Swarm would do nothing, but you can make a trigger that reacts to that spell, and heals your SummonedUnit.
07-01-2005, 06:56 PM#7
Guest
You can use any non targettable ability for the dummy ability. I, personally, like to use battle roar but I'm sure locust swarm works fine too.

Here's a trigger for what happens when the ability is cast.

Events:
Unit Starts the Effect of an Ability
Conditions:
Ability being cast equal to <locust swarm based healing ability>
Actions:
Unit - Order Casting Unit to damage SummonedUnit[(Player number of (Triggering player))] for -<healing amount> using damage type magic and whatever...