Unlock Dialogue Options in Runtime
Posted: Sun Mar 24, 2024 1:42 pm
Hi Tony,
I want to have a system where some dialogue options remain hidden(or locked) unless the player has done something in the game.
e.g. Only when player clicks on a book in a scene, then a dialogue option unlocks and reads "read the book's content".
the response panel would remain open the whole time, with reponse options changing from [1]...
[2]...
to
[1]...
[2]...
[3]...
What is the most effecient way to go about that?
Right now I have set up the book as a button to change the Lua boolean "canReadBook" to true.
However, the dialogue response panel would not respond to the Lua boolean change.
It seems that I would need to "refresh" the dialogue system somehow for it to check the conditions again.
Thanks!
I want to have a system where some dialogue options remain hidden(or locked) unless the player has done something in the game.
e.g. Only when player clicks on a book in a scene, then a dialogue option unlocks and reads "read the book's content".
the response panel would remain open the whole time, with reponse options changing from [1]...
[2]...
to
[1]...
[2]...
[3]...
What is the most effecient way to go about that?
Right now I have set up the book as a button to change the Lua boolean "canReadBook" to true.
However, the dialogue response panel would not respond to the Lua boolean change.
It seems that I would need to "refresh" the dialogue system somehow for it to check the conditions again.
Thanks!