Deducting a percentage of lumber from a Player.

Failenx

TH.net Regular
Reaction score
7
Anyone have any idea how to do this? I've tried using a real instead of an integer(because apparently the integers in the editor can't have decimals) and it doesn't work or give the percentage deduction I need.

Current Lumber x 0.20 is what I'm looking for, but it doesn't work, any ideas?

Thanks and +rep to help!
 

sarkurayboy

New Member
Reaction score
7
Anyone have any idea how to do this? I've tried using a real instead of an integer(because apparently the integers in the editor can't have decimals) and it doesn't work or give the percentage deduction I need.

Current Lumber x 0.20 is what I'm looking for, but it doesn't work, any ideas?

Thanks and +rep to help!

Trigger:
  • Player - Add (-10 / (-50 x ((Triggering player) Total lumber gathered))) to (Triggering player) Current lumber


Try this , and mingle with the values. I dont know if it works or not , but you can try =)
 

Failenx

TH.net Regular
Reaction score
7
Trigger:
  • Player - Add (-10 / (-50 x ((Triggering player) Total lumber gathered))) to (Triggering player) Current lumber


Try this , and mingle with the values. I dont know if it works or not , but you can try =)

I've tried this, it didn't deduct any lumber for some reason.. it works correctly in a calculator, but I guess WE just hates me, lol. :banghead:
 

Ayanami

칼리
Reaction score
288
Try this.

Trigger:
  • Actions
    • Player - Set (Triggering player) Current lumber to ((((Triggering player) Current lumber) x 4) / 5)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top