I'm looking to add the option of conversing with certain characters in my story, and I didn't know if it was possible to later have those discussions be counted, and have those characters give different lines based on them.
Basically, if the player talks to character X in an entirely optional side-activity of sorts, can I then later have character X give a different line in a mandatory interaction with them?
I'm not looking to really have dialogue options, so I don't need to track what the players says, just if they initiated the conversation or not.
Comments
notes:
a. I am going to name character X as John and character Y as Jane
b. You should initialize your variables inside a passage tagged with startup.
You can use a $variable to track if something happened or not. So in your startup tagged passage you would initialize a variable indicating that the conversation has not happened: ... then in the passage where John talks to Jane you would change the value of $talkedToJane to true: ... later when you need to check if John talked to Jane you could do the following:
Thanks though, this is what I was looking for!
Initialize the variable within your StoryInit passage, this is one of SC's special passage: ... then in the passage where John talks to Jane you would change the value of $talkedToJane to true: ... later when you need to check if John talked to Jane you could do the following: