- Joined
- Feb 27, 2008
- Messages
- 222
Well, i'm trying to make a spell which links the caster to another unit. Any damage the caster takes is transfered to the target unit.
Now, I think i know how to make part of the trigger. Conditions will determine what kind of unit has been damaged, in actions i create variables which depend on the player number, so they are MUI and probably MPI, and then heals the caster by the amount of damage taken, and damages the target of ability by the amount healed to the caster.
What i have problem is the event. I don't want the spell to damage only from normal attacks. And i can't find an event that suits the situation - there is "A unit is attacked", but what about spells?
There is also the "Life" Event, but i can't choose a unit, and it says i don't have any variables of that type.
So, how can i make such a spell? If it's JASS, then don't bother, i'd rather think of a new spell cause i don't know a thing about JASS.
Edit : I've been thinking of making it a spirit link spell, but i'm not sure how it works, so if anyone can explain it, then i might do something about it
Now, I think i know how to make part of the trigger. Conditions will determine what kind of unit has been damaged, in actions i create variables which depend on the player number, so they are MUI and probably MPI, and then heals the caster by the amount of damage taken, and damages the target of ability by the amount healed to the caster.
What i have problem is the event. I don't want the spell to damage only from normal attacks. And i can't find an event that suits the situation - there is "A unit is attacked", but what about spells?
There is also the "Life" Event, but i can't choose a unit, and it says i don't have any variables of that type.
So, how can i make such a spell? If it's JASS, then don't bother, i'd rather think of a new spell cause i don't know a thing about JASS.
Edit : I've been thinking of making it a spirit link spell, but i'm not sure how it works, so if anyone can explain it, then i might do something about it