|Topic was automatically imported from the old Question2Answer platform.
Var servant amount = 1
Func on checkbutton toggle ( button_pressed):
If servant amount = 0:
Checkbutton.disabled = true
Servant amount -= 1
Servant amount += 1
Ok so i have something like this for my code. What i want it that of the player doesn’t have servant available he can’t toggle the button.
If he has servant available he can toggle the button to turn it on when this happens it take away 1 servant.
If the player toggle off the checkbutton then he will receive the servant back.