Thanks for the reply, I'm having a little difficulty wrapping my head around how to do this.
From what you said, inside of the visualnovelexample you use the drawstring class to manage custom commands. I believe you are referring to the following:
You subscribe to that delegate event by using the drawstring.RunCommandEvent+=Runcommand; and it leads me to this line
By following that rabbit hole to the drawtring script I see an event called RunCommandEvent and underneath that the bool for Runcommand()
Unfortunately that bool only lets me run commands in the "Raw Text" portion of the fleece dialogue line editor. Trying to put it in the "Link Raw Text" portions when you have a branching choice causes the text to not be read or parsed properly.
So now, after reading through your message several times, I've tried instead to look through the parsers and figure out how to resolve it that way. I found the "FleeceDefaultParser" that comes included with fleece and the script associated with it and am now trying to figure out how to implement something the returns "true" or "false"
I made a function "isLeader" to check if you had an object or leader of a specific type in the leader slot of FleeceDefaultParser (this is in the parser.cs file)
It checks and in the inspector displays it as FALSE if the leader is not correct (as intended)
However, whenever I test this in the live game it completely disregards the "False" text and plays that line of dialogue that should have been rejected. I haven't done anything different than you have for the visited or !visited line. Using a debug string prints out False which means it should technically be rejecting it. But it does not. I tried deleting those passages and making new ones but it still is rejecting it.
I followed the same format you set up and tried to establish things to be as close to how you did it as possible but was wondering if there was something super obveous I was missing, or perhaps it's that I just dont have a good enough foundation to understand how to make these kinds of edits.
Thanks for your time.