Search found 45 matches

by xyztankman
Wed May 22, 2024 9:15 pm
Forum: Dialogue System for Unity
Topic: Triggering Animation Changes for characters using Dialog Entry Variables
Replies: 8
Views: 928

Re: Triggering Animation Changes for characters using Dialog Entry Variables

Hey Tony! Came across this while researching. Do you have the method for finding the character display name in script? I'm trying to search the display name I just set but can't find it. I have this in the script below: CharacterNameText.text = DialogueLua.GetActorField("BigBoss", Dialogue...
by xyztankman
Fri Jan 19, 2024 9:37 am
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Yes I was thinking that too, I did switch to the ResetGameState() and that seems to be working so far along with having the script directly on the dialogue manager.
by xyztankman
Wed Jan 10, 2024 5:31 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Hi, Your script is on the Dialogue Manager GameObject, correct? (I believe I mentioned that, but just checking in case you missed it.) It will only run OnConversationStart if it's on the Dialogue Manager or one of the participants. If you don't want the script to be on the Dialogue Manager, you can...
by xyztankman
Wed Jan 10, 2024 2:24 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Add [SerializeField] to the front of typewriterSpeed: [SerializeField] private float typewriterSpeed = 90; This way you can see its value in the inspector. Then play the scene and keep the GameObject with this script selected so you can watch the value. When you click the button, does typewriterSpe...
by xyztankman
Wed Jan 10, 2024 1:35 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Are you calling DialogueSetSlowSpeed() while a conversation is active? If it's possible that you might be calling DialogueSetSlowSpeed() when no conversation is active, change the method to: private void SetTypewriterSpeed(float speed) { typewriterSpeed = speed; if (currentUI != null) { foreach (va...
by xyztankman
Wed Jan 10, 2024 1:04 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

The Dialogue System uses Unity to call OnConversationStart(Transform) through reflection, so to the code editor it may appear as if it won't be used. If you click on the error in the Console window, the bottom of the Console will show the stack trace, which is the order of method calls. In the erro...
by xyztankman
Wed Jan 10, 2024 12:04 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Hi, Is it getting the NullReferenceException in the OnConversationStart() method? For brevity and readability, my example code omits error checking. In your own code, you'll probably want to check that currentUI isn't null. It seems to be in the SetTypewriterSpeed, but I noticed in the code that On...
by xyztankman
Wed Jan 10, 2024 9:39 am
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

Hi, You could try adding an OnConversationStart(Transform) method to your script. In this method, get a reference to the current dialogue UI (which may be a dialogue UI override) and set the speeds on its subtitle panels' typewriter effects. Something like: private float typewriterSpeed = 90; priva...
by xyztankman
Sat Jan 06, 2024 2:46 pm
Forum: Dialogue System for Unity
Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Replies: 19
Views: 246376

Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues

I was thinking that the ResetDatabase() was also clearing the typewriter settings because there wasn't a change on my end but it may be something in one of my other scenes that is causing the issue. I'll check to make sure since I'm doing a bit of refactoring over old mess that I've been putting tog...