Hey experts. In the game I'm building, you can build a mine or oil pump. Currently if the block already has a mine or oil pump built (instance variable = 1), then the player is prompted with a warning that a structure already exists, would they like to replace existing structure (yes and no buttons appear).
If they select no, menus/buttons become invisible and they play on. However I'm struggling on the "yes" portion. If they select oil pump, get the warning and select "yes", the instance variable = 0 but I can't get the oil pump to be built unless they select the oil pump again.
How do I program it so if they select the structure, select yes on replacing existing structure that they don't have to select the build option again?