Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ink 1.2.0 logic in choice doesn't work anymore #910

Open
AwesomeGameConcepts opened this issue Jul 25, 2024 · 2 comments
Open

ink 1.2.0 logic in choice doesn't work anymore #910

AwesomeGameConcepts opened this issue Jul 25, 2024 · 2 comments

Comments

@AwesomeGameConcepts
Copy link
AwesomeGameConcepts commented Jul 25, 2024

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.

@wldmr
Copy link
wldmr commented Aug 1, 2024

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?

@AwesomeGameConcepts
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants