• Hey! Register here to create your account, engage with the community, and talk about what is new!

Money variable help.

Diceey

New member
Joined
Sep 20, 2021
Messages
15
So I'm trying to create a game with money and when ever the player purchases something that cost more than they have it declines them but right now it makes the variable go negative how can I fix that?
 
Solution
You'll want to check If Variable (player's money) >= (price) before going through with the purchase.

Here's an official DF tutorial on creating a shop system btw:

Jeremaster

Owner
Owner
Administrator
Joined
Aug 16, 2020
Messages
70
You'll want to check If Variable (player's money) >= (price) before going through with the purchase.

Here's an official DF tutorial on creating a shop system btw:
 
Solution
Top Bottom