Page 1 of 1

Built in method to dynamically change the Text Panel image?

Posted: Sun May 22, 2022 10:43 pm
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

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

Posted: Mon May 23, 2022 8:28 am
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.

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

Posted: Mon May 23, 2022 3:45 pm
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!

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

Posted: Mon May 23, 2022 4:38 pm
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.

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

Posted: Mon May 23, 2022 9:10 pm
by BlooOwlBaba
The custom sequence command worked like a charm and definitely makes things a lot easier. Thank you!

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

Posted: Mon May 23, 2022 9:45 pm
by Tony Li
Glad to help!