I'm putting together some spells that I've dubbed Leech Spirit and Leech Health.
You can probably guess what I want them to do just from their name. So anyway, the caster of these spells could be the player character or an actor that is the party or even an enemy.
The way I want them to work is as follows:
Leech Spirit does x dmg between 1 and 20, to the target's mana and gives the same amount of mana to the caster. Basically siphoning mana from target to caster.
Leech Health works the same way.
However, I want to know how I can set the target dynamically to a variable that I can then use to deduct MP and HP from.
Thanks.
You can probably guess what I want them to do just from their name. So anyway, the caster of these spells could be the player character or an actor that is the party or even an enemy.
The way I want them to work is as follows:
Leech Spirit does x dmg between 1 and 20, to the target's mana and gives the same amount of mana to the caster. Basically siphoning mana from target to caster.
Leech Health works the same way.
However, I want to know how I can set the target dynamically to a variable that I can then use to deduct MP and HP from.
Thanks.