Handling Special Responses in Yarn 2
Posted: Wed May 14, 2025 10:04 pm
Hi, I'm using Yarn 2 in Unity to build a dialogue, with an interface that has a 3D coin to switch to "investigate" mode when talking to an NPC. In Yarn, I mark special responses (like accusations) with a tag, and want to display them via this coin, separate from the regular response buttons.
I've overridden SetResponseButtons() to handle it, but am having trouble integrating special responses into the dialogue system's cleanup and triggers — either they are excluded, or not properly managed.
How should I handle this special response so that it:
Displays separately with its own UI (3D coin),
Still works normally with the dialogue system (select, cleanup, trigger)? Thanks.
I've overridden SetResponseButtons() to handle it, but am having trouble integrating special responses into the dialogue system's cleanup and triggers — either they are excluded, or not properly managed.
How should I handle this special response so that it:
Displays separately with its own UI (3D coin),
Still works normally with the dialogue system (select, cleanup, trigger)? Thanks.