Waiting for Several messages

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Antonio O
Posts: 10
Joined: Wed Apr 18, 2018 6:54 pm

Waiting for Several messages

Post by Antonio O »

Is there a way to have a Sequence that requires waiting for more than one Message? Something like;

Code: Select all

SetActive(Bomb, false)@Message(Message1 && Message2);
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Waiting for Several messages

Post by Tony Li »

Hi,

If you know that one message comes before the other, you can check them in order:

Code: Select all

WaitForMessage(Message2)@Message(Message1)->Message(GotBothMessages);
SetActive(Bomb, false)@Message(GotBothMessages)
Otherwise you probably need to handle it outside of the sequence, and call Sequencer.Message() when both conditions are met.
Post Reply