inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.07k stars 489 forks source link

Checking if a dialogue line leads to an external function call #786

Open Malyglut opened 2 years ago

Malyglut commented 2 years ago

I'd like to display certain information next to a dialogue line in my UI depending on whether the dialogue line leads to an external function call.

Character A: Some question

*[Character B: Some Answer {ChangeRelation("Character A", "Character B", integerValue)}

In order to do that I need to flag these responses on the game side as responses that lead to an external function call.

I've been trying to find a way to retrieve this information at runtime but it seems that the answers themselves have no direct connection to the call but rather point to a different object in the content that contains the information regarding the external function call.

My question is: is it possible to retrieve this information and if so, what would be the best way to approach it?

(I am aware that I can just tag these lines, I'm looking for a solution that doesn't involve tags)