Warcraft III resources & community, 2003–2006 · archived

how to make spell cost blood in stead of mana?

5 posts
#1

how to make spell cost blood in stead of mana?

I am working on a mordheim map and one of the spells requires the caster to cut his wristh and squirt blood on enemies and i dont know how to make a spell cost blood plz help
#2
It's pretty simple all you need to do is create two trigger like this:

Trigger 1
Events
Unit- A unit begins casting an ability
Conditions
Ability being cast equal to <YOUR ABILITY>
Actions
if life of triggering unit greater than <The spells blood cost>
then
do nothing
else
Game text message display to owner of unit triggering unit the text: <An error message like Not enough blood>
Order triggering unit to stop

Trigger 2
Events
Unit- A unit starts the effects of an ability
Conditions
Ability being cast equal to <YOUR ABILITY>
Actions
set life of triggering unit = (life of triggering unit - <BLOOD COST>)
put your actions here.

I know that the functions aren't totally spelled right her but thats how to do it.

The first trigger stops the unit and displays an error if the unit hasn't blood enough, the 2nd 1 takes some life from the unit and does your actions.

Hopefully that helped you... :D

- Blade.dk
#3
Well... the whole cutting and blah blah I dunno, but its modelling. But making the unit lose blood is simple. Set the spells mana cost to 0 and have this trigger:

Event - An Unit Starts the Effect of an Ability
Conditions - Ability Being Cast equal to YourAbility
Actions - Set (Triggering Unit) Life to ((Triggering Unit)'s Current Life)-x

x is the amount of life he will use and you can set it to whatever you want.

~Daelin
#5
Actually you could do this and it would only be one trigger (copied your trigger speak if tahts ok Blade)

Events
Unit- A unit begins casting an ability
Conditions
Ability being cast equal to <YOUR ABILITY>
Actions
if
life of triggering unit greater than <The spells blood cost>
then
set life of triggering unit = (life of triggering unit - <BLOOD COST>)
put your actions here.
else
Game text message display to owner of unit triggering unit the text: <An error message like Not enough blood>
Order triggering unit to stop