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

Gaining Lumber per Level

Status
Not open for further replies.
Level 2
Joined
Jun 25, 2008
Messages
14
I'm trying to make it so that each time a Hero level up, the owner gains lumber. However, the lumber gained is not proportionate to the Hero's Level gain when the Hero gains multiple levels at the same time. For example, lets say the hero gains 100 Lumber per 1 level. If the Hero gains 5 levels at once, the Hero will still only gain 100 Lumber for that 5 levels when it should be 500 Lumber. Is there a function to make sure that the Hero gains 100 Lumber for each level it gains?

  • Lumber Gain
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Unit-type of (Triggering unit)) is A Hero) Equal to True
    • Actions
      • Player - Add 100 to (Owner of (Triggering unit)) Current lumber
 
Level 2
Joined
Jun 25, 2008
Messages
14
I've tried using that formula. The problem with that is the amount of lumber becomes more than 100 Lumber per level. What I want is exactly 100 Lumber per level.
 
Status
Not open for further replies.
Top