Changing a response into a subtitle on the go

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
patxiku
Posts: 14
Joined: Tue Nov 07, 2017 6:46 am

Changing a response into a subtitle on the go

Post by patxiku »

Hello,

Is there any way to change a response into a subtitle depending on a field that the DialogueEntry contains?

I wan't my player to change between responses and subtitles, I'm importing the database from Articy, I've tried to change the DialogueSystemController InputSettings "Always force response" field but it doesn't seem to work on the go.

Thanks in advance.
User avatar
Tony Li
Posts: 22061
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing a response into a subtitle on the go

Post by Tony Li »

Hi,

If you only need to do it occasionally, you could make two nodes: one a player response node, and the other a subtitle node assigned to an extra "player" actor whose IsPlayer field is false. When you want to show the subtitle version, set a condition on the node:

Image

If you need to do it for everything, you can temporarily set the Player actor's IsPlayer field to false. To do this:

1. On the Dialogue Manager, tick Instantiate Database (so you don't change the actual database asset when playing in the editor).

2. Use this code:

Code: Select all

// Replace "Player" with your player actor name:
var playerActor = DialogueManager.MasterDatabase.GetActor("Player");
playerActor.IsPlayer = false;
patxiku
Posts: 14
Joined: Tue Nov 07, 2017 6:46 am

Re: Changing a response into a subtitle on the go

Post by patxiku »

Thank you so much :)
User avatar
Tony Li
Posts: 22061
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing a response into a subtitle on the go

Post by Tony Li »

Happy to help! If those ideas don't work, let me know. We can come up with a solution with fits your needs.
Post Reply