If you want to process any custom tags of your own, you can make and use a subclass of DialogueSystemInkIntegration that overrides the ProcessTags method. For example, the subclass below will add a custom tag "IsAction" and set a custom dialogue entry field named "IsAction" accordingly:
Code: Select all
public class CustomDialogueSystemInkIntegration : DialogueSystemInkIntegration
{
protected override void ProcessTags(Story activeStory, DialogueEntry entry)
{
Field.SetValue(entry.fields, "IsAction", false); // Assume tag doesn't exist unless we find it.
base.ProcessTags(activeStory, entry);
}
protected override void ProcessTag(string tag, DialogueEntry entry)
{
if (tag == "IsAction") Field.SetValue(entry.fields, "IsAction", false);
else base.ProcessTag(tag, entry);
}
}