Changing menu text on specific node during conversation
Posted: Fri Jun 26, 2020 6:04 am
Hello Tony,
I'm pretty of sure I'm not the first one to ask this question, but I couldn't find the answer for this specific predicament on the forum - sorry for the redundancy.
I'm trying to change the menu text of a response menu linked to a custom panel(which stays active but disabled if conditions if false), depending on a given Variable.
For example, lua:
condition:
I realize the simple fix would be to create another "clone" node with a condition, but since both nodes would use the same custom panel, and both nodes would be set to appear on screen whether the condition is met or not, I'm assuming it'll be an issue.
Another fix I had in mind was to use a text Variable in the menu text, and use something like
but I wasn't able to make the "if then" syntax works in lua...
Anyway, that's my little issue right now ^^
Thank you
I'm pretty of sure I'm not the first one to ask this question, but I couldn't find the answer for this specific predicament on the forum - sorry for the redundancy.
I'm trying to change the menu text of a response menu linked to a custom panel(which stays active but disabled if conditions if false), depending on a given Variable.
For example, lua:
Code: Select all
if (Variable["varSmart"] < 2) then (insertAWayToAccessMenuTextHere) = "you're not smart enough"
Code: Select all
Variable["varSmart"] >= 2
Another fix I had in mind was to use a text Variable in the menu text, and use something like
Code: Select all
if (Variable["varSmart"] < 2) then Variable["text Variable"] = "You're not smart enough"
Anyway, that's my little issue right now ^^
Thank you