Cant figure out this selectable_if command

I’m having trouble with the selectable_if command

The error I’m getting is: startup line 323: Couldn’t parse the line after *selectable_if: (not(Canine))#Chocolate

My code looks like this:


I am trying to have it check the species stat I have to block off an option do I have to include something like species = “Canine” or something like that?

It may not be the best solution, but what I always do is, for example in this instance, create a variable in startup that’s something like

*create choco “”

then in the choice when the race is picked it would be

*set nochoco “True”

Then set all the other races to
*set nochoco “False”

Then you should be able to do *selectable_if (nochoco = “False”) #Chocolate

Again, there’s probably a better way to do this, but I’m not all that savvy at coding myself and this has been my workaround thus far.

Is it all one line with no spaces like that in your code? You need to have spaces between the different parts.

Something like this:

*if (not (insertvariablehere)) #This option will show up.
    *goto thenextpart

I also appreciate this as I never knew this. Appreciate you!

1 Like

Haha, no problem! Happy to have helped! (:

got it working, thank you

1 Like

No problem – I’m glad you were able to get it working!

if it is a true/false variable

*selectable_if (var = false) #option

also works

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.