I'm trying to set up a system where the player can buy something through dialogue. So, they're given choices, buy 1, but five, buy ten, etc. But I only want that to be a choice if they have the right amount of money. The problem being that the cost of this item changes depending on a few things, so it's a global variable. Thus, I need to check if the player has enough gold to buy that amount. If they want to buy 5, I need to only show that dialogue option if they have the current global variable times 5 amount of gold. Is there a way to do this? All I can do is check if they have the global value of gold, times 1. Meaning they could buy any amount of the item no matter what.
Thanks for any input.