Hi,
lemonjolly_anna wrote: ↑Sun May 28, 2023 5:15 amIs it possible to
- 1) link from conversationA to conversationB,
- 2) wait for a custom method/event/method or whatever,
- 3) return to where you left off in conversationA
Yes.
(1) To link from conversationA to conversationB, inspect a node in conversationA. From the "Links To:" dropdown, select "(Another Conversation)". It's generally best to select a node in conversationB that's not the <START> node.
(2) To wait for a custom method/event/whatever, use a sequencer command. For example, you can set a node's Sequence to:
and then in a C# script call:
Code: Select all
PixelCrushers.DialogueSystem.Sequencer.Message("someMessage");
If you require the player to click a continue button to advance the conversation, instead of WaitForMessage() use:
Or use a custom sequencer command that waits for something.
(3) To return where you left off, the easiest way is to link from a node in conversationB back to a node in conversationA. However, if you can link to conversationB from more than one node in conversationA, then you won't know ahead of time which node to return to. In this case, you'll need to use the
conversation position stack. Before going to conversationB, your node in conversationA will call PushConversationPosition(). This will save the place in conversationA. The final node in conversationB can call PopConversationPosition() to return to that saved place.