I’m having trouble with *selectable if command
The error I’m getting is:
Non-existent command
My code looks like this:
I made sure my choice script is updated
also I would like to add that when I test it and choose the third choice (the last one) it doesn’t give me an error
Hazel
November 3, 2024, 6:24pm
2
When are you getting this error? Before the choice menu, or after?
Jacic
November 3, 2024, 10:51pm
4
Well yes because all your directs are gosub not goto. Gosub always returns and choice always needs a goto. If you don’t want to do this, you need to use fake_choice.
Also if any of your players don’t meet any of the *if requirements you’ll get a no selectable error too.
2 Likes
This is the error I get
Edit: it actually worked !!!
Thanks bro I have been thinking on this problem the whole day but please can you explain more why this happened
1 Like
Eiwynn
November 4, 2024, 12:06am
6
The following article from the wiki might help you:
Implicit control flow is an optional modification to the way ChoiceScript behaves. It changes ChoiceScript's requirements by removing the need for *finish, *goto, *goto_scene, or *ending at the end of *choice, *elseif, and *else. Devblog...
2 Likes
system
Closed
November 5, 2024, 12:06am
7
This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.