They Are Billions

They Are Billions

Custom Levels for They Are Billions
Add custom levels to They Are Billions by subscribing to these workshop items!
Learn More
How to use the store button by limiting the number of uses?
It's better to have examples
< >
Showing 1-3 of 3 comments
Issie721 21 Aug, 2021 @ 10:38pm 
looks like no one has an example. Rude much lol
Hemindal 25 Aug, 2021 @ 3:08pm 
If by "store button" you mean the custom command center button...
The Custom Command Button is configured in the editor under the "Custom Commands" tab.
When the user clicks on it in-game it activates a script that you define in the "Script" section of the "Custom Commands" tab.
Define a custom variable like: ButtonClickCounter = 0, then increment it as part of the "Custom Comand" script (ButtonClickCounter = ButtonClickCounter +1).
Then fill in the "Enable Condition" in the "Custom Commands" tab with: ButtonClikcCounter < x (where x is the number of times you want them to be able to use the button.)
You can have the number of uses show up by putting an argument into the "Counter" box of the "Custom Commands" tab. For example "x - ButtonClickCounter" will display the number of clicks left on the button.
-cheers
Thanks.
It'helpful to me.I'll have a try.
< >
Showing 1-3 of 3 comments
Per page: 1530 50