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.
Changing a response into a subtitle on the go
Re: Changing a response into a subtitle on the go
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:
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:
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:
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
Thank you so much
Re: Changing a response into a subtitle on the go
Happy to help! If those ideas don't work, let me know. We can come up with a solution with fits your needs.