I'm trying to figure out a way to allow the player to skip through dialog lines, but not bypass/skip/cancel other sequence commands. Specifically, I have a point in the dialog where the player is supposed to do something, so I use WaitForMessage(). With the default option I see, I can allow the player to skip and cancel, but not only skip.
Am I missing something?
skip through dialog lines, but not cancel sequence commands?
-
- Posts: 150
- Joined: Mon Nov 23, 2020 6:35 am
Re: skip through dialog lines, but not cancel sequence commands?
Hi,
Try these settings:
- On the Dialogue Manager, set Display Settings > Input Settings > Cancel Subtitle Input > Key and Cancel Conversation Input > Key to None. If the Button fields are set, clear them too.
- Set Subtitle Settings > Continue Button to a mode that uses the continue button, such as Always. Make sure your dialogue UI has a continue button. It can be invisible if you want. (See here.)
- When you have a sequencer command with timing, put the 'required' keyword in front if it's important to run the command even if the player skips early. For example, this sequence ensures the speaker goes back to Idle:
- On dialogue entry nodes where you don't want the player to skip, use SetContinueMode():
Try these settings:
- On the Dialogue Manager, set Display Settings > Input Settings > Cancel Subtitle Input > Key and Cancel Conversation Input > Key to None. If the Button fields are set, clear them too.
- Set Subtitle Settings > Continue Button to a mode that uses the continue button, such as Always. Make sure your dialogue UI has a continue button. It can be invisible if you want. (See here.)
- When you have a sequencer command with timing, put the 'required' keyword in front if it's important to run the command even if the player skips early. For example, this sequence ensures the speaker goes back to Idle:
Code: Select all
AnimatorPlay(FlapMouth);
required AnimatorPlay(Idle)@Message(Typed)
Code: Select all
SetContinueMode(false); // Don't allow player to skip.
WaitForMessage(DidTheThing)->Message(DidIt);
SetContinueMode(true)@Message(DidIt)
-
- Posts: 150
- Joined: Mon Nov 23, 2020 6:35 am
Re: skip through dialog lines, but not cancel sequence commands?
thanks. for my use case, "required" might already do what I need. I somehow missed that in the documentation.