• 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.

Slow decrease of health and mana?

Status
Not open for further replies.
Level 2
Joined
Nov 4, 2007
Messages
6
how would i slowly decrease the health of players over the course of the game as is done in the wilderness survival style maps??

Thank you for your help.
 
Level 2
Joined
Oct 29, 2007
Messages
17
  • Events - Time - Every x seconds of game time //How often you want this to happen
  • Conditions
  • Actions - Unit group - Pick every unit in group1 and do (Actions)
    • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - x) //How mch you want to remove
    • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - x) //How mch you want to remove
You will ofc need to add units to the unit group, that you wish for this trigger to effect.

You will want to do multiple if/then/else, if you are going to have different conditions for life/mana removal (eg: have campfire that prevents hp loss etc.)...
 
Status
Not open for further replies.
Top