i have this issue where i made this fill all button on my game. Basically all i want it do is check the amount crates you have and then decides to only take out those amount you have and only the amount that is needed to fill in crates. For example if the player has 9k i want the game to take out 9k from the crates then add it to the loaded section. And if next time they click fill all the game only adds 1k yk?.then adds it to the other variable. However right now it doesn’t work like that. it works like this the player must have 10k or above crates to use the fill all button. So how do i overcome this issue? ill show a screenshot. Excuse me if its terrible im not on pc currently.
You are talking about shop system
So
Condition
Gold is equal or greater than 100
Button is clicked
Trigger once
Action
Change Gold subtract 100