Dialogue System iteracting with GameController
Posted: Sun Sep 15, 2024 5:02 pm
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!
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!