Page 1 of 1
Can I check the sim status of a node in another conversation?
Posted: Fri Jun 07, 2019 2:47 pm
by AoF
I've got a situation where in one conversation, something happens, and if that happens, I want to unlock dialogue choices in a different conversation. Can I use sim status to check if something WasDisplayed in another conversation?
I know I could use a variable for this, but I'd like to reduce the number of variables I use, since there doesn't seem to be a way to group them and the list would get very long.
Re: Can I check the sim status of a node in another conversation?
Posted: Fri Jun 07, 2019 4:05 pm
by Tony Li
Yes, but you need to know the conversation ID.
For example:
Code: Select all
Conversation[#].Dialog[#].SimStatus == "WasDisplayed"
where the first # is the conversation ID and the second # is the dialogue node ID.
By itself, Dialog[#] is just a shortcut for the current conversation.
Regarding variables: Technically all dialogue database variables are global. But some devs define "scope" by putting strings at the front of their variable names, such as:
- Bedroom.Visited
- Bedroom.Searched
- Bedroom.Cleaned
- Field.Visited
- Field.Planted, etc.
Re: Can I check the sim status of a node in another conversation?
Posted: Fri Jun 07, 2019 4:14 pm
by AoF
Tony Li wrote: ↑Fri Jun 07, 2019 4:05 pm
Regarding variables: Technically all dialogue database variables are global. But some devs define "scope" by putting strings at the front of their variable names, such as:
- Bedroom.Visited
- Bedroom.Searched
- Bedroom.Cleaned
- Field.Visited
- Field.Planted, etc.
Ah, that could help. Thanks.
Re: Can I check the sim status of a node in another conversation?
Posted: Fri Jun 07, 2019 4:22 pm
by Tony Li
You can also sort the variables by name to group them properly, and filter for the first part such as "Bedroom." to see only those variables. Makes it much easier to manage them.
Re: Can I check the sim status of a node in another conversation?
Posted: Fri Jun 07, 2019 4:39 pm
by AoF
Ah, nice. I hadn't noticed the filter.