Search found 6 matches

by nikot93
Tue Jun 13, 2023 4:46 am
Forum: Dialogue System for Unity
Topic: Save data on mysql database
Replies: 3
Views: 223

Re: Save data on mysql database

Thanks it work really well! There is a method to execute this function on every change made in the database (variable change or quest status)? public void SaveDB() { string username = UserData.Instance.Username; string authToken = UserData.Instance.Token; StartCoroutine(SaveDatabase(username, authTo...
by nikot93
Sun Jun 11, 2023 7:57 pm
Forum: Dialogue System for Unity
Topic: Save data on mysql database
Replies: 3
Views: 223

Save data on mysql database

Hi,

in my game I save all the data in a mysql database, now that I have integrated the dialogue system plugin I would also need to save the variables and the status of the quests.
How could I do?


Thanks
Nicolò
by nikot93
Tue May 30, 2023 8:08 pm
Forum: Dialogue System for Unity
Topic: Call custom method in Dialogue System
Replies: 8
Views: 2843

Re: Call custom method in Dialogue System

Hi, I'd check the CanBeGiven() Lua function in a preceding dialogue entry node's Conditions field. If it's true, go down one branch of the conversation tree that ends in the node that calls GivePokemon(). If it's not true, go down another branch that doesn't call GivePokemon(). It works really real...
by nikot93
Tue May 30, 2023 7:46 pm
Forum: Dialogue System for Unity
Topic: Call custom method in Dialogue System
Replies: 8
Views: 2843

Re: Call custom method in Dialogue System

Hi, Where are you calling GivePokemon()? If it's in the Script field of a dialogue entry in a conversation, DialogueManager.currentConversant should already be set -- assuming the conversation uses a conversant GameObject. For more info, see: Character GameObject Assignments If you want to give the...
by nikot93
Tue May 30, 2023 6:21 pm
Forum: Dialogue System for Unity
Topic: Call custom method in Dialogue System
Replies: 8
Views: 2843

Re: Call custom method in Dialogue System

Hi Tony, Thank you for your response, and I apologize for the delay in getting back to you. Based on your suggestions, I have created a new script. Here's the updated code: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using PixelCrushers.DialogueSystem...
by nikot93
Thu May 25, 2023 1:54 pm
Forum: Dialogue System for Unity
Topic: Call custom method in Dialogue System
Replies: 8
Views: 2843

Call custom method in Dialogue System

Hello everyone, I am currently working on a Pokémon game in Unity and I am encountering some difficulties with the Dialogue System plugin. I was wondering if anyone could offer some guidance and support on this matter. Let me provide some context. My game consists of a main scene and several additio...