• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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