Method of setting/resetting character portrait after conversation ends

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
xemanon
Posts: 6
Joined: Sat Feb 19, 2022 4:11 pm

Method of setting/resetting character portrait after conversation ends

Post 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.
User avatar
Tony Li
Posts: 21980
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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)
xemanon
Posts: 6
Joined: Sat Feb 19, 2022 4:11 pm

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

Post by xemanon »

Thank you very much! I neglected to remember you could add such a trigger to the Player as well.
User avatar
Tony Li
Posts: 21980
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Happy to help!
Post Reply