You mean when it gains one level or a level, it will gain 1 Lumber? Well, that is quite basic.
You can just make a trigger that when a unit gains a level, for the conditions possible if you set if its a hero that is triggering and what specific hero and for the actions, Add 1 lumber to the Owner of Triggering unit.
Want a trigger?
Not this i already know this um its like okay i have a save and load system right so i load my level 5 character if i load my character the trigger must give me the lumber according to my level isTry this:
It should work though only bad point is that, this trigger will bug when the hero leveled up TWICE and this activated. It will still gain 1 skill point or Lumber.
- Untitled Trigger 001
- Events
- Unit - A unit Gains a level
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- Player - Add 1 to (Owner of (Triggering unit)) Current lumber
Well not if you just create a unit from a load code... Right after creating the unit from the load code, insert
Or even better
- Player - Set (Owner of (Last Created Unit)) Current lumber to (Level of (Last Created Unit))
- Player - Set (Triggering Player) Current lumber to (Variable That Stores The Hero's Level)