Hi! I've got a problem that has pretty much stumped me and I feel like I'm missing something obvious. In my game, the player clicks buttons to purchase permanent upgrades (governed by a global variable that says 'yes, they have this upgrade'). That sounds pretty simple, but what I can't figure out is how to make it so that the specific button gives the specific upgrade.
I've done this...
...with the buttons, where 'UpgradeToAdd' governs which upgrade to give the player. Where I am stumped is, I don't know a quick and easy way to translate this to the corresponding global variable ('Upgrade_x') being set from 0 to 1. Basically, what I want to have happen is this:
When the player clicks the button (and can afford the price) -> The upgrade that is called the same as 'var_UpgradeToAdd' is set to '1'.
But I can't do that using 'Set value' from what I can figure out because 'Set value' requires you to pick one variable specifically. What am I missing?