Hello, I'd like to set a specific response option's button to be disabled, ie interactable = false, if a certain condition is met.
Wondering how to write the LUA to do this.
I want the player to be able to see that they can't choose the option, so I'd be setting a specific "disabled" color in the button component.
Thanks!
Disable a specific response button
Re: Disable a specific response button
Hi,
Set that dialogue entry's Conditions. For example:
You can also set the [em#] Tag for Invalid Entries dropdown to show the response button's text in a specific emphasis setting value by automatically adding [em#] markup tags.
If you only want to have "Include Invalid Entries" behavior for certain invalid entries but not others, see this post.
Set that dialogue entry's Conditions. For example:
- Menu Text: "Buy a laser pistol [50 credits]"
- Conditions: Variable["Credits"] >= 50
You can also set the [em#] Tag for Invalid Entries dropdown to show the response button's text in a specific emphasis setting value by automatically adding [em#] markup tags.
If you only want to have "Include Invalid Entries" behavior for certain invalid entries but not others, see this post.
-
- Posts: 5
- Joined: Tue Jan 23, 2024 6:26 am
Re: Disable a specific response button
Thank you so much!
Re: Disable a specific response button
Happy to help!