Dialogue System iteracting with GameController

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
GSaloun
Posts: 4
Joined: Sun Sep 15, 2024 4:45 pm

Dialogue System iteracting with GameController

Post by GSaloun »

Hi,

I'm new using Dialogue System, so i'm trying to figure out how can i change variables in to my GameController Script using Dialogue System. This is a example of what i need to do:

I have a GameController Script, where i'm tracking all the player evolution, as level completed, habilities learned and itens collected. In some point, when i interact with a specific NPC i need to receive an itens activating then into my GameController Script (so i can see it in the invetory, enable a new hability and allow me to save the data). However, i don't know how can i call the GameController Script after complete a dialogue with the NPC using Dialogue System.

Can someone help me with this problem?

Thanks!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System iteracting with GameController

Post by Tony Li »

Hi,

Please see: How To: Connect C# Variables to Dialogue System's Lua

This will allow you to make your GameController variables and methods available to the Dialogue System's Lua environment so you can access them in dialogue entry nodes' Conditions and Script fields.
Post Reply