Ok I am making a cookie clicker clone where you have to click a computer and buy upgrades and I want to be that everytime you buy a upgrade its price increases by *3 and the price is a global value. So here is what I have on my system>add to value: | gpuupcost *3 | so I put that and at first it times it by 4 then its just random?? gpuupcost is the global value im trying to times. So if someone could help me that would be great.
Develop games in your browser. Powerful, performant & highly capable.
You are adding 3 times the value to the value itself, so you get 4 times. Then 16, then 64... What you have to do is use "Set value".
This is because you are using "add-to-value" which means
PRICE = PRICE + 3*PRICE
instead use "set value" and set it to 3*PRICE, that equates to
PRICE = 3*PRICE
Thanks rho your solution worked!