#how to make this number go up exponentialy

1 messages · Page 1 of 1 (latest)

white tartan
gentle meteor
#
upgradeCost *= 1.1 --makes it go up 10% every time
#

or if you want it to scale higher very upgrade then

local baseValue = 100
local upgrades = 5 --track ur upgrades somehow

upgradeCost = baseValue * (1.15 ^ upgrades)
--The higher upgrades, the higher is upgradeCost
steady ivy
# white tartan
upgradeCost = upgradeCostOriginal + (amountUpgraded * 1.2 * upgradeCostOriginal) --not recommending 50% for this calculation
oak quartzBOT
#

studio** You are now Level 5! **studio

white tartan
steady ivy
gentle meteor
steady ivy
steady ivy
gentle meteor
#
local upgrade_1st_state = 0
local upgrade_2nd_state = 1
local upgrade_3rd_state = 2

local baseValue = 100

print(baseValue * (2 ^ upgrade_1st_state))
print(baseValue * (2 ^ upgrade_2nd_state))
print(baseValue * (2 ^ upgrade_3rd_state))

this looks exponential to me

steady ivy
#

And he didnt show any concern yet

gentle meteor
#

thats not

#
local baseValue = 100 --this is my baseValue
local upgrades = 5 --these are my upgrade states

upgradeCost = baseValue * (1.15 ^ upgrades) -- im printing this
steady ivy
#

What the fuck is wrong with you

gentle meteor
#

whatevilcat

#

you have never once sent math that is exponiental in here

steady ivy
#

Not a FUCKING multiply

gentle meteor
#

????

#

you are the one who multiplied

steady ivy
gentle meteor
#

yes

steady ivy
#

then shut

gentle meteor
#

but before im multiplying im using ^ in brackets`?

#

do you know how exponential functions work?

steady ivy
steady ivy
#

and you should talk to him not me

gentle meteor
#

chatgpt is giving me the same code I sent

#

like

#

????

#

Mb if I missunderstood it but I think you misunderstood something here

#

Cause the thing I sent is exponentially

steady ivy
#

Ask him not me

gentle meteor
#

???

steady ivy
#

💀

gentle meteor
#

He asked it to us

steady ivy
gentle meteor
#

Did you read the title

#

exponentially

#

he just forgot an l

steady ivy
#

Try

#

Read harder

#

My mathing is not wrong about being "exponentially"

#

I never thought he meant

#

Calculate it with exponentials number

steady ivy
gentle meteor
#

I mean how do you want to create a exponentially rising function without exponentials?

#

your function is just linear