Can I check the sim status of a node in another conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Can I check the sim status of a node in another conversation?

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can I check the sim status of a node in another conversation?

Post 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.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: Can I check the sim status of a node in another conversation?

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can I check the sim status of a node in another conversation?

Post 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.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: Can I check the sim status of a node in another conversation?

Post by AoF »

Ah, nice. I hadn't noticed the filter.
Post Reply