I am using Dialogue System with the Ink integration and Adventure Creator. What works: accessing AC variables in Dialogue Manager and vice versa. What doesn't work: using the Lua functions provided by the AdventureCreatorBridge as EXTERNAL functions within ink scripts.
Which makes complete sense, because those functions are not bound as an external function in the Ink integration script. I tried to bind them like this (at line 719 of DialogueSystemInkIntegration):
Code: Select all
var bridge = DialogueManager.Instance.GetComponent<AdventureCreatorBridge>();
story.BindExternalFunction("acGetItemCount", (string itemName) => { return bridge.acGetItemCount(itemName).asInt; });
Code: Select all
using PixelCrushers.DialogueSystem.AdventureCreatorSupport;
I did some investigation and it seems to me that there are two overlapping namespaces called PixelCrushers.DialogueSystem (one points to Assets/Pixel Crushers/Dialogue System and the other to Assets/Plugins/Pixel Crushers/Dialogue System).Assets\Plugins\Pixel Crushers\Dialogue System\Third Party Support\Ink Support\Scripts\DialogueSystemInkIntegration.cs(7,36): error CS0234: The type or namespace name 'AdventureCreatorSupport' does not exist in the namespace 'PixelCrushers.DialogueSystem' (are you missing an assembly reference?)
Is there an easy fix?
Just FYI I am a Software Developer by trade but very new to C# and Unity. So this whole problem might stem from my missing familarity with C# or Units or package.
Thanks in advance!