Page 1 of 1

Changing a response into a subtitle on the go

Posted: Mon Jan 08, 2018 8:16 am
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.

Re: Changing a response into a subtitle on the go

Posted: Mon Jan 08, 2018 10:10 am
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;

Re: Changing a response into a subtitle on the go

Posted: Tue Jan 09, 2018 1:00 am
by patxiku
Thank you so much :)

Re: Changing a response into a subtitle on the go

Posted: Tue Jan 09, 2018 7:59 am
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.