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!
Dialogue System iteracting with GameController
Re: Dialogue System iteracting with GameController
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.
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.