Local variables for each dialog?
Posted: Thu Nov 23, 2017 10:31 am
Is there a way to have local variables for a dialogue instead of having all variables in the variables tab?
My scenario:
Node1 has links to Answer1 and Answer2. After Answer1 has been selected, it leads back to Node1 but now there is an additional Answer3 avaiable.
Current solution: I create a bool variable e.g. "Scene3/Dialogue3/Answer3Discovered" and set it to true after answer 1 has been clicked. The problem I have is that the variable tab doesn't group folders and it can become quite bloated overtime.
In the AllFields tab of each dialogue entry I can add my own fields. Can I use there as variables inside the dialogue? If so, how can I access a field from the same dialogue but from another node?
My scenario:
Node1 has links to Answer1 and Answer2. After Answer1 has been selected, it leads back to Node1 but now there is an additional Answer3 avaiable.
Current solution: I create a bool variable e.g. "Scene3/Dialogue3/Answer3Discovered" and set it to true after answer 1 has been clicked. The problem I have is that the variable tab doesn't group folders and it can become quite bloated overtime.
In the AllFields tab of each dialogue entry I can add my own fields. Can I use there as variables inside the dialogue? If so, how can I access a field from the same dialogue but from another node?