Hi Everyone! So I was following a tutorial on how to make things cost money and that’s great it was very informative. However, the guy never told me how to do a check to see if you even have enough money. I know I need a variable and a branch but I’m just not sure how to set it up. Any help would be greatly appreciated!
Hello DojaRico,
You’d want to compare the Price to the amount of Current Funds
If Price <= Current funds - - - > True - Subtract the price + Set The funds + Grant the house
False- Do nothing / inform player they don’t have enough funds.
The tricky party would be knowing where you’re storing the Funds (The number that’s changing to -1000) and accessing/setting that where you’re doing the calculation. (Knowledge of Casting like you’ve shown may help you here)
1 Like
Thank you for your help! I was able to get it working
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.