Diceey New member Joined Sep 20, 2021 Messages 15 Reaction score 0 Dec 23, 2021 #1 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?
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 Jeremaster Dec 23, 2021 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:
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 Joined Aug 16, 2020 Messages 93 Reaction score 136 Dec 23, 2021 #2 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: Upvote 2 Downvote 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:
Diceey New member Joined Sep 20, 2021 Messages 15 Reaction score 0 Dec 24, 2021 #3 Oh it just ended up i was putting the items in the chest wrong. Upvote 0 Downvote