inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
570 stars 99 forks source link

Choice tags support #165

Closed Syjgin closed 2 years ago

Syjgin commented 2 years ago

Added ability to work with tags on the specific choice level. It's useful when the user wants to decorate a single choice in Unity (for example, to inform gamer, that this choice will cost some money or resources). Syntax is following:

`=== first_tutorial === Ok, I can do that for for you, but not for free # face:merchant

tomkail commented 2 years ago

Oh awesome, I needed this! What does it do when choice text becomes content text? (When not using [] around your choice text)

Syjgin commented 2 years ago

@tomkail it does nothing, as far as I can see: with choice text after the parenttheses, tag is still correctly parsed as choice tag, but does not affect next state after choice. When I test it in the Inky, however, this displayed as follows: image But when I test scenario in Unity, there are no additional tags in the target knot was exists.

Syjgin commented 2 years ago

Without brackets all also works identically

joethephish commented 2 years ago

I’m afraid 2 points on this PR:

So we won’t be able to accept this, sorry!