ink icon indicating copy to clipboard operation
ink copied to clipboard

ink 1.2.0 logic in choice doesn't work anymore

Open AwesomeGameConcepts opened this issue 1 year ago • 2 comments

Hello, i used to add logic into my choice add that was working like have a preview of a RPG test in the choice like this + [Tutorial_Exploration.Exploration_1.Choice_{ExplorationTestPreviewOneAssist(PC, GetListValue(NPC,1), Normal, 0)}] Since i update ink to 1.2.0 it's doesn't work anymore, the story freeze i found a workaround by use this :

{ExplorationTestPreviewOneAssist(PC, GetListValue(NPC,1), Normal, 0)}
+ [Tutorial_Exploration.Exploration_1.Choice_]

But i need to change more than 1000 RPG tests on my game so i will be glad if this is fixed, thanks.

AwesomeGameConcepts avatar Jul 25 '24 06:07 AwesomeGameConcepts

I've just tried this

* [choice_{func(1)}]

== function func(val)
whatever

and it (correctly) outputs

1: choice_whatever

Seems to work fine. Can you please elaborate, maybe give a minimal failing example?

What does ExplorationTestPreviewOneAssist do? Does it return anything or produce text? Is it an external function?

wldmr avatar Aug 01 '24 17:08 wldmr

Hello 🙂. It's calling an external function bind in unity. I have also a empty declared function for running from ink compatibility purpose.

AwesomeGameConcepts avatar Aug 01 '24 17:08 AwesomeGameConcepts