Is there any way to if/than pay gold based on a variable? I'm working on making it so you can buy an item for x amount of money based on a variable, every time you buy said item it increases the variable, thus making it more expensive.
In this image, you can see when you buy it, it charges you the gold based off of the Variable, then it increases the variable by +1 and then by x2. However, I want an if statement for Gold. I need to make sure they can buy the item and can afford it based off of the variable. However, I do not know how to go about making it check to see if you have enough gold based off of the variable.
In this image, you can see when you buy it, it charges you the gold based off of the Variable, then it increases the variable by +1 and then by x2. However, I want an if statement for Gold. I need to make sure they can buy the item and can afford it based off of the variable. However, I do not know how to go about making it check to see if you have enough gold based off of the variable.