Search found 111 matches

by joeylu
Mon Apr 04, 2022 11:41 am
Forum: Dialogue System for Unity
Topic: GotoState() question
Replies: 5
Views: 817

Re: GotoState() question

DialogueManager.currentConversationState.pcResponses[0].formattedText.forceAuto = true;

this seems the one that can force a pc response to play regardless if there are any other pc responses, I will give it a try, tks Tony, great support ever!
by joeylu
Mon Apr 04, 2022 3:00 am
Forum: Dialogue System for Unity
Topic: GotoState() question
Replies: 5
Views: 817

Re: GotoState() question

tks for the explaining, My understanding is that OnFinishedSubtitle() only works on npcResponses? let's say I want to pick the next response randomly disregard it's from NPC or PC, and if it's from PC, assume there are no other conditions are set here is my script: private void OnConversationLine(Su...
by joeylu
Sun Apr 03, 2022 6:23 am
Forum: Dialogue System for Unity
Topic: GotoState() question
Replies: 5
Views: 817

GotoState() question

Hi Tony, I have some scripts in private void OnConversationLineEnd(Subtitle subtitle) { DialogueEntry nextEntry = DialogueManager.MasterDatabase.GetDialogueEntry(subtitle.dialogueEntry.outgoingLinks[0]); ConversationState nextResponseState = DialogueManager.conversationModel.GetState(nextEntry); Dia...
by joeylu
Mon Mar 28, 2022 1:41 am
Forum: Dialogue System for Unity
Topic: set bark duration from code
Replies: 1
Views: 303

set bark duration from code

Hi Tony, I'm trying to achieve something like this When my player is speaking or listening, some icon will popup above its head, I think a bark UI can perfectly fits in such situation. But since the bark UI has a fixed duration, how do I set its duration dynamically from script based on every dialog...
by joeylu
Sun Mar 20, 2022 2:50 am
Forum: Dialogue System for Unity
Topic: Create variables from script
Replies: 17
Views: 2994

Re: Create variables from script

just courious that if this is possible in runtime, tks for your ideas, again, very helpful :)
by joeylu
Sat Mar 19, 2022 9:37 am
Forum: Dialogue System for Unity
Topic: Create variables from script
Replies: 17
Views: 2994

Re: Create variables from script

Hi Tony, for instance, I'm loopiing the master database in runtime and getting all the dialogue conversation and dialogue entries. I need to set some dialogue entry's userScript and conditions string. I have no problem to set it from looping actual database, but not in masterDatabase, because it is ...
by joeylu
Fri Mar 18, 2022 3:18 am
Forum: Dialogue System for Unity
Topic: Create variables from script
Replies: 17
Views: 2994

Re: Create variables from script

understood, tks tony
by joeylu
Thu Mar 17, 2022 7:23 am
Forum: Dialogue System for Unity
Topic: About using save data in dialogue system
Replies: 1
Views: 242

About using save data in dialogue system

Hi Tony, our game is a narrative game that doesn't involves complicate data (at least for now). So I'm thinking to use the PersistentDataManager.GetSaveData() and ApplySaveData() to save variables, I'm wondering what is the best way to achieve this. My thoughts, I add a static Item in dialogue edito...
by joeylu
Thu Mar 17, 2022 6:45 am
Forum: Dialogue System for Unity
Topic: Create variables from script
Replies: 17
Views: 2994

Re: Create variables from script

hi Tony, last question regards this post TemplateTools adds variable perfectly However, when using DialogueLua.SetVariable(), I'm able to add variables to the database and able to retrieve it with GetVariable() in runtime. The problem is that I can't get them to saved to the dialogue editor (variabl...
by joeylu
Sat Mar 12, 2022 3:43 am
Forum: Dialogue System for Unity
Topic: Create variables from script
Replies: 17
Views: 2994

Re: Create variables from script

tks Tony, works like charm as always a follow up question, my understanding is that despite how many databases are created in unity, in playmode, all database will be merged into one master database, and I can get it by calling DialogueManager.masterDatabase right? if that is true, say I have a vari...