Question on Sequences

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
JeffG
Posts: 3
Joined: Mon Mar 30, 2020 5:00 pm

Question on Sequences

Post by JeffG »

How do I get a sequence to run after a response has been chosen?

What I am trying to do is:

For player when doing response..

Set camera to closeup
player enters response
Sequence to play Salsa audio

Switchs to conversant

Camera to close up. Plays Audio...waits for it to end

goes to next node

I have the following

Default Sequence
Camera(Closeup,listener);

Default player sequence
Camera(Closeup,listener);SALSA(Player_1_5,listener)->Message(ALLDONE)


Just missing how to get my player to "talk" after a choice is made.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Sequences

Post by Tony Li »

Hi,

On player nodes (blue), the speaker is the player. Change this sequence:

Code: Select all

Camera(Closeup,listener);SALSA(Player_1_5,listener)->Message(ALLDONE)
to this:

Code: Select all

Camera(Closeup,speaker);SALSA(Player_1_5,speaker)->Message(ALLDONE)
However, the Default Player Sequence probably isn't the best place for that sequence.

Leave the Default Player Sequence blank. Instead, inspect the player response node. Set its Sequence field to something like:

Code: Select all

Camera(Closeup,speaker);
SALSA(Player_1_5, speaker)->Message(PLAYER_SPOKE);

Camera(Closeup,listener)@Message(PLAYER_SPOKE)
SALSA(NPC_1_6, listener)@Message(PLAYER_SPOKE)
If you don't want to have to type that for every player response node, consider using entrytags. (The Cutscene Sequences tutorials go into more detail about entrytags.) Then you can use the Default Player Sequence, setting it to something like:

Code: Select all

Camera(Closeup,speaker);
SALSA(entrytag, speaker)->Message(PLAYER_SPOKE);
Camera(Closeup,listener)@Message(PLAYER_SPOKE)
BTW, if every line (NPC and player) is voice acted, you can typically leave the Default Player Sequence blank, and set the Default Sequence to:

Code: Select all

Camera(Closeup);
SALSA(entrytag)
(I omitted the 'speaker' keyword because it's implied if it's not provided.)
JeffG
Posts: 3
Joined: Mon Mar 30, 2020 5:00 pm

Re: Question on Sequences

Post by JeffG »

Thank you

I actually understand it now.

Yes...I do intend to use entrytags. I just hardcode 2 audioclips till I could debug it.

I ended up with

Default

Camera(Closeup,speaker);
SALSA(entrytag speaker)->Message(PLAYER_SPOKE);
Camera(Closeup,listener)@Message(PLAYER_SPOKE);

Default Player
SALSA(entrytag)->Message(ALLDONE);


One minor issue. I tried to add a delay, it doesn't seem to have an impact. Tried it before and after the @Message
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Sequences

Post by Tony Li »

Where do you want the delay to occur? If you want to delay for 2 seconds after the player speaks, you could change the Default Player Sequence to:

Code: Select all

SALSA(entrytag)->Message(SPOKE);
Delay(2)@Message(SPOKE)
If you want to delay for 2 seconds in the player's sequence but before the player speaks:

Code: Select all

SALSA(entrytag)@2
JeffG
Posts: 3
Joined: Mon Mar 30, 2020 5:00 pm

Re: Question on Sequences

Post by JeffG »

Perfect

Thanks
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Sequences

Post by Tony Li »

Happy to help!
Post Reply