Why doesn't this simple trigger work?

Status
Not open for further replies.
Level 10
Joined
Feb 19, 2006
Messages
237
  • stats constant deplete
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • -------- deplete energy --------
      • Unit Group - Pick every unit in energy_group and do (Actions)
        • Loop - Actions
          • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 1.00)
      • -------- deplete nutrition --------
      • Unit Group - Pick every unit in nutrition_group and do (Actions)
        • Loop - Actions
          • Player - Set (Owner of (Picked unit)) Current gold to (((Owner of (Picked unit)) Current gold) - 1)
      • -------- deplete water --------
      • Unit Group - Pick every unit in water_group and do (Actions)
        • Loop - Actions
          • Player - Set (Owner of (Picked unit)) Current lumber to (((Owner of (Picked unit)) Current lumber) - 1)
Nothing happens when i launch my map with...what is wrong with this trigger?
The gold (nutrition) and lumber (water)
 
Here is the trigger that sets the unit groups.
  • stats initiate
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Picked unit)) Equal to Cast Away)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to energy_group
          • Unit Group - Add (Picked unit) to nutrition_group
          • Unit Group - Add (Picked unit) to water_group
 
God dangit Pharoah, you're a frikin kneen eyed genius. I looked over this like 100 times and didn't notice that. Thank you very much. It works perfectly.

Also I have another question for you.

I have set my heroes max mana and initial mana to 100 however in game he starts at 45/100 mana? What is wrong here?

EDIT: NVM you already helped me in the other thread. Thank you. +rep :)
 
Status
Not open for further replies.
Back
Top