Income Per Second System

azaew

Member
Reaction score
0
On My Td I Currently just have every 10 seconds gives 10 gold
How would i make it so it gives u 5% of your current gold?
 

Molehole

New Member
Reaction score
2
Event: Every 10 seconds
Actions: Set player property gold to ((property (gold) of x)+((property (gold) of x)/5))

arithmetics is the +-/*
Idk if this helped :D
 

jnZ

I
Reaction score
64
the maths behinde it is:

(Gold of Player / 100) * 105

= 105% (+5%)

Code:
Player - Set Player 1 (Red) Current Gold to (((Player 1 (Red) Current Gold) / 100) x 105)

Event: Every 10 seconds
Actions: Set player property gold to ((property (gold) of x)+((property (gold) of x)/5))

thats wrong. it would add 20% to the palyers current gold. dividing by 20 instead of 5 would work:

Code:
Player - Add ((Player 1 (Red) Current Gold) / 20) to Player 1 (Red) Current Gold
 

Molehole

New Member
Reaction score
2
Brainfarted that sorry :p ofcourse I meant 20. I just mixed the 5 and 20 in my head somehow -.- Thanks for correction :D
 

Mabaet.Baet

Member
Reaction score
2
Trigger:
  • Player - Add (Integer(((Real((Player 1 (Red) Current gold))) x 0.05))) to Player 1 (Red) Current gold


Edit: ninja'd. sorry. Well, I guess jnZ's way is better. No conversions.
 
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