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

Add 1 wood per hero lvl?

Status
Not open for further replies.
Level 3
Joined
Apr 4, 2012
Messages
64
hey i was wondering how to add 1 wood per each lvl of the hero till lvl 30.

so everytime hero lvl's player gets 1 wood

game is 1 hero only ty
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
  • Untitled Trigger 002
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Less than or equal to 30
        • Then - Actions
          • Player - Set (Owner of (Triggering unit)) Current lumber to (((Owner of (Triggering unit)) Current lumber) + 1)
        • Else - Actions
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Hero level is a whole number. Whole numbers are integers. Hero level is an integer comparison.

Also, there's a function to "add" property, instead of "set" property. You could just "add 1 lumber" instead of "Set lumber = current lumber + 1"
 
Level 3
Joined
Apr 4, 2012
Messages
64
Hero level is a whole number. Whole numbers are integers. Hero level is an integer comparison.

Also, there's a function to "add" property, instead of "set" property. You could just "add 1 lumber" instead of "Set lumber = current lumber + 1"

ty done
 
Status
Not open for further replies.
Top