• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mana + Health Decrease

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
Hey i know its a noob question lol

but i cant find the trigger

anyone know how to decrease mana or health or anything like that every so often

i tried to set mana regen -1 didnt work lol

like i said noob question
 
Level 7
Joined
Jun 15, 2010
Messages
218
  • Events
    • Time - Every 2.00 seconds of game time
    • Conditions
      • -
    • Actions
      • Unit - Cause (YOUR_UNIT) to damage (YOUR_UNIT), dealing 1.00 damage of attack type Spells and damage type Normal
 
Level 7
Joined
Jun 15, 2010
Messages
218
  • Events
    • Time - Every 2 seconds of game time
  • Conditions
  • Actions
    • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) -[COLOR="Red"] 1[/COLOR])
 
Level 6
Joined
Feb 18, 2010
Messages
153
thanx i got the health one set up but i cant find the mana ones command

nv, foudnit

but while im here how do i set a trigger to kill someone that has 0 mana

nvm i think io dont that aort lol
 
Last edited:
Level 7
Joined
Jun 15, 2010
Messages
218
use the interger or real condition, its all about numbers. Sometimes its usefull to combine interger and real. to do so u can find the line "convert interger into real"

  • manacheck
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Picked unit)) Less than or equal to 1.00
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
              • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 1.00)

to find the actions for mana value go to actions > Unit - Set Mana (to value)
 
Status
Not open for further replies.
Top