Total lumber harvested for scoreboard

huanAk

New Member
Reaction score
4
Hi,

are there any game constant/function to tracking total lumber harvested ? or I have to make a variable to track it myself ?

because my lumber can change from many source :
- wisp gathering (how do I track how many lumber from wisp ?)
- from allies (easy to track)
- lumber spent (easy to track)

anyway, it is possible to track how many lumber from wisp (many wisp, difference upgrade)?
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
every 0.2 seconds add to a variable the lumber you have. The variable has 2 arrays 1 for storing 1 for checking.
you set the [1] the current lumber and the [2] is at first 0. You take the [1] - [2] difference and add it to another variables that is for scoreboard. If it is positive is the harvested, if is negative value you add to the spent variable. Then you set the [1] to [2]. So now the current gold will be the checked one at the second run.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top