Page 1 of 1

Method of setting/resetting character portrait after conversation ends

Posted: Sun Feb 20, 2022 4:47 pm
by xemanon
Hi, I'm wondering if there's a way via Dialogue Manager that will allow setting/resetting a character's (specifically, the player) portrait after the end of a conversation (ie. after the panel disappears)? I would like to do this so any other future conversations involving that character can start with some default sprite expression, to begin with. I'm currently using SetPortrait(name, pic=#) to set the sprite in Sequence/Response Menu Sequence.

I've tried using SetPortrait(name, pic=#) in the last node's Sequence but this changes the portrait as the panel is fading. I've also tried that in the Response Menu Sequence but I don't think it works as it's the last node either way.

Re: Method of setting/resetting character portrait after conversation ends

Posted: Sun Feb 20, 2022 8:37 pm
by Tony Li
Hi,

Add a Dialogue System Trigger to the player, and set its trigger to OnConversationEnd. Then select Add Action > Play Sequence, and set the sequence to:

Code: Select all

SetPortrait(Player, default)

Re: Method of setting/resetting character portrait after conversation ends

Posted: Mon Feb 21, 2022 6:59 pm
by xemanon
Thank you very much! I neglected to remember you could add such a trigger to the Player as well.

Re: Method of setting/resetting character portrait after conversation ends

Posted: Mon Feb 21, 2022 7:15 pm
by Tony Li
Happy to help!