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

[Solved] Lumber

Status
Not open for further replies.
Level 7
Joined
May 23, 2011
Messages
179
Guys i need help... My Lumber per second did not work in my map....:goblin_cry:
Please help.....
  • Free Lumber Per Second
    • Events
      • Time - Every 1.00 seconds of game time
      • Unit - A unit enters Initialization Starting Hero Sprawn <gen>
    • Conditions
    • Actions
      • Player - Add 1 to (Owner of (Entering unit)) Current gold
Thanks....
 
Because you used (Owner of (Entering unit)) Current gold.

This will only trigger properly when a unit enters Initialization Starting Hero Sprawn <gen>.

The Every 1.00 seconds of game time event can't work properly, since there isn't an 'Owner of (Entering unit)' when the second passes. You will need a different action if you want the lumber per second to be added.

What exactly do you want? If a unit is inside the region, then the lumber is given? Or even if the unit is outside the region?
 
  • Lumber
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Add 1 to (Player((Integer A))) Current lumber
Here you go :)

I was about to say that. :xxd:
But I'm still wondering whether he wants the lumber to be given if the unit is inside the region, or not.
 
Status
Not open for further replies.
Top