• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

how to make spell cost blood in stead of mana?

Status
Not open for further replies.
Level 2
Joined
Apr 5, 2005
Messages
5
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
 
Level 3
Joined
Mar 28, 2005
Messages
33
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
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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
 
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
 
Status
Not open for further replies.
Top