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
 
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.
Back
Top