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!
了解更多
此主题已被锁定
RainbowThumb 5 2023 年 7 月 24 日 下午 6:59
Disabling Options in the Custom Button
Ok, I have made a custom button, with a repeatable option to upgrade my buildings/units.
Is there a way for me to disable an option/button AFTER selecting it for the first time?
I can elaborate on my set up if needed- Ty :)
< >
正在显示第 1 - 2 条,共 2 条留言
Mortal 9 2023 年 7 月 24 日 下午 10:03 
Make Variable: "Block".
Of course, you can call it whatever you like..

The condition on your button should be "Block=0"
and the Execute Code should be "Block+=1". (it will make the Veraible go up by 1)
This way, your button will never show up again - unless you make "Block-=1" somewhere.

You can make another button appear > after you click the first button - by simply using the condition: "Block=2", and if you want this button to disappear as well after clicking, simply use "Block+=1" in its Execute Code as well.
here is an example: Open [i.ibb.co]
最后由 Mortal 编辑于; 2023 年 7 月 24 日 下午 10:14
RainbowThumb 5 2023 年 7 月 25 日 下午 4:38 
Thank you!!!! This helped a lot!
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50