Built in method to dynamically change the Text Panel image?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
BlooOwlBaba
Posts: 9
Joined: Fri May 20, 2022 10:15 pm

Built in method to dynamically change the Text Panel image?

Post by BlooOwlBaba »

Hi Tony, apologies if this has already been answered. Is there a way to dynamically set the text panel image and rotation depending on which actor is speaking and what their "emotion" is? I can change the [pic=#] of the subtitle panel image to match their emotion, but I'm unsure of how to handle this for text. I'm trying to emulate this style of dialogue (though not with multiple speech bubbles on screen at once):

Image
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Built in method to dynamically change the Text Panel image?

Post by Tony Li »

Hi,

There isn't something built-in to change the text panel image.

A common way to do it is to set up multiple subtitle panels, one for each text panel image. Then use [panel=#] markup tags or SetPanel() to show text in a specific panel.

Alternatively, you could write a custom sequencer command (see: tutorials) or an OnConversationLine() method that looks for a custom field in the dialogue entry. That custom field could specify what image to use for the text panel.
BlooOwlBaba
Posts: 9
Joined: Fri May 20, 2022 10:15 pm

Re: Built in method to dynamically change the Text Panel image?

Post by BlooOwlBaba »

Hey thank you for the response. When I add in the [panel=#] tag to the dialogue text field it just shifts the actor image to that panel instead of displaying the portrait image for that subtitle panel. Going to try the OnConversationLine sequence later!
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Built in method to dynamically change the Text Panel image?

Post by Tony Li »

The idea with [panel=#] is that you'd have a few panels that basically look the same (e.g., same portrait image position) with the only difference being the image used for each panel's text panel bubble.
BlooOwlBaba
Posts: 9
Joined: Fri May 20, 2022 10:15 pm

Re: Built in method to dynamically change the Text Panel image?

Post by BlooOwlBaba »

The custom sequence command worked like a charm and definitely makes things a lot easier. Thank you!
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Built in method to dynamically change the Text Panel image?

Post by Tony Li »

Glad to help!
Post Reply