• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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