Page 1 of 1

SetPortrait skipping entry

Posted: Thu May 28, 2020 6:26 pm
by gmaheux
Hey there :)

I am trying to change a portrait during a conversation so that my actor can have different emotions according to the text.
While searching for a solution, I found this :
Use the SetPortrait() sequencer command.
Let's say pic 1 is Ned's inside clothes, and pic 2 is Ned's outside clothes.
If you're playing an outside conversation, put this sequencer command in the first node:

SetPortrait(Ned, pic=2)
-----------------------------

My problem is that when i add the setportrait sequencer command on the entry, it is automatically skipped when playing the conversation. A friend tested on her computer and instead of skipping, it just appears very quickly and immediately goes to the next entry without waiting for normal input. My syntax seems fine and the actor has a portrait for the specified index. Is there any pointer anyone can give me on how to solve this ? I'm getting a little desperate here :(

Thanks a lot !! :)

Re: SetPortrait skipping entry

Posted: Thu May 28, 2020 8:17 pm
by Tony Li
Hi,

Also include {{default}} or Delay({{end}}) in the Sequence. For example:

Code: Select all

SetPortrait(Ned, pic=2);
{{default}}
A subtitle stays onscreen for the duration of its Sequence. The SetPortrait() sequencer command finishes immediately. If you also include {{default}}, it will include the Default Sequence defined in the Dialogue Manager GameObject's Display Settings > Camera & Cutscene Settings section. By default, it is set to: Delay({{end}}), which delays for a duration based on the text length.

More info: Cutscene Sequences, Cutscene Sequences Tutorials

Re: SetPortrait skipping entry

Posted: Fri Jun 05, 2020 5:57 pm
by gmaheux
Thanks a lot! it is working like a charm.