Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make it so you can upgrade multiple times in a shop?

Asked by 5 years ago
Edited 5 years ago

I am making a kind of tycoon simulator game, where you have a model that drops cash. You upgrade this cash in the shop, and i want it so you can upgrade it multiple times at once. I have everything down except the cost. Does anyone know the equation to find the cost of any upgrade for x amount of upgrades? I want it to go up by 5 every upgrade, so upgrade one would be 5 then 10 then 15 and so on. Please don't mark this as a request!

Edit: I have tried this

math.floor(plr.Stats.Worth.Value * 5 + ((plr.Stats.Worth.Value + Amount.Value) * 5))
0
You should at least post an attempt you've made User#24403 69 — 5y
0
^ The_Pr0fessor 595 — 5y
0
well even if u don't have the code what you could do is put Number Values in the gui parts that get upgraded and check the values and multiply it by 5 that's what I would do The_Pr0fessor 595 — 5y
0
I hate when people say its not a request but it is. DinozCreates 1070 — 5y
0
If you want it to go up by five every upgrade, just do cost = (upgradeLevel + 1)*5. I'm assuming upgradeLevel is 0 by default. User#25115 0 — 5y

Answer this question