Non-existent command 'selectable_if' (i've checked previous topics on that to no avail)

Hi ! I’ve been having troubles with my code, getting an "affectationadama2 line 3: Non-existent command ‘selectable_if’’ error. I really struggle with that, I’ve checked the wiki and even other cases but I still haven’t managed to solve my problem, thanks in advance for the help ! :pray:

My code looks like this:


*choice
     *selectable_if (school =0) #How was your school life ?
        
        *set school 1
        *set tea_adama +1
        Oh, such a benign question coming from and intense individual.


        Well, my school life this time around wasn't wildly different from my first rodeo.

        "It's fine, I went by, I'm done now at least." My nonplussed answer made him roll his eyes before a knuckle hit me, way more softly than usual, the forehead.

        "I wouldn't say just [i]fine[/i] especially since you graduated in the top ten, and I know" narrowing his eyes, a smirk on his lips "that you could have blasted at least in the top five or three instead of being ninth. Had you been more serious." My, lowkey-highkey scholar plan didn't make him happy to say the least. I guess that in this aspect, he really was like a dad wanting their kid to be the very best, not sabotage themselves.

        *Page_break Anyhow.
        "I'm proud of you though." Immediately after these words, as if to prevent himself of spilling more of his feelings, he gulped down his cup. 
        *goto_scene affectationadama2
    
    *selectable_if ((affectation1 = 0) and (school =1)) #Are you happy about your affectation ?"
        *set affectation1 1
        *set tea_adama 2

        Ah.

        Such a topic.

        "Well, the ${affectation} is quite prestigious isn't it ?"

        He looked sternly at me, trying to figure out my words.
        "Are you genuinely happy about your affectation or are you trying to fit into some kind of mold you've made up in you head ? Because you aren't any less deserving than any of these kids."
        *Page_break "I'm…happy."
        I won't start spewing any kind of uncertainties here.

        Whatever path I choose, I need to stick to it.

        Hopefully I won't regret it.

        The silent was heavy, until he decided to just…teleport us back to my place, he sits on my desk chair casually.
        [i]Crazy dude.[/i]
        

        *goto_scene affectationadama2
    
    *selectable_if (tea_adama =2) #What about your weapon ?
        Ouch, quite the touchy question, especially with the way I've acquired it…
        Should I still show it to him ?
        *choice
            #Yes, I'm confident enough that I should be able to play it out smoothly.
                *[b]"$!{command}."[/b]
                A dark mist surrounded me as the weapon was beginning to materialize, Suddenly, I could see his eyebrows immediately lowering deep.
                "Stop."

                Without missing a beat, I halted the manifestation, worried.

                [i]Did he notice something ?[/i]
                He looked at me throughly, as if trying to make sense out of pieces of a puzzle.

                "I'm not going to ask, not going to wonder about it. But I know that this. This was no Imperial relic." Rubbing his temple vigorously, he almost sounded dejected when he asked.

                "Why is everything surronding your life so…complicated ?"

                I knew that he didn't actually want an answer to that, but if I had to give him one, it'd be.

                [i]You don't know half of it.[/i]

                *goto_scene affectationadama3
            #I try to divert his attention away from the...sensitive topic

                "I don't think I can actually call it without the Empress releasing the seal can I ?" I innocently ask.

                "Oh so you do know how to play by the rules huh ?" He leans back on the chair, looking me up and down, a small frown marring his features.

                "I could release it for you, but…" a deep sigh leaves him and we both get the message.

                He knows something weird is up with my relic.

                *goto_scene affectationadama3
   













The first option seems to have one more space indentation. Other than that, all choices are selectable if, check that there is at least one option to select in all cases.

*choice
    *selectable_if (school =0) #How was your school life ?
        
        *set school 1
        *set tea_adama +1
        Oh, such a benign question coming from and intense individual.


        Well, my school life this time around wasn't wildly different from my first rodeo.

        "It's fine, I went by, I'm done now at least." My nonplussed answer made him roll his eyes before a knuckle hit me, way more softly than usual, the forehead.

        "I wouldn't say just [i]fine[/i] especially since you graduated in the top ten, and I know" narrowing his eyes, a smirk on his lips "that you could have blasted at least in the top five or three instead of being ninth. Had you been more serious." My, lowkey-highkey scholar plan didn't make him happy to say the least. I guess that in this aspect, he really was like a dad wanting their kid to be the very best, not sabotage themselves.

        *Page_break Anyhow.
        "I'm proud of you though." Immediately after these words, as if to prevent himself of spilling more of his feelings, he gulped down his cup. 
        *goto_scene affectationadama2
    
    *selectable_if ((affectation1 = 0) and (school =1)) #Are you happy about your affectation ?"
        *set affectation1 1
        *set tea_adama 2

        Ah.

        Such a topic.

        "Well, the ${affectation} is quite prestigious isn't it ?"

        He looked sternly at me, trying to figure out my words.
        "Are you genuinely happy about your affectation or are you trying to fit into some kind of mold you've made up in you head ? Because you aren't any less deserving than any of these kids."
        *Page_break "I'm…happy."
        I won't start spewing any kind of uncertainties here.

        Whatever path I choose, I need to stick to it.

        Hopefully I won't regret it.

        The silent was heavy, until he decided to just…teleport us back to my place, he sits on my desk chair casually.
        [i]Crazy dude.[/i]
        

        *goto_scene affectationadama2
    
    *selectable_if (tea_adama =2) #What about your weapon ?
        Ouch, quite the touchy question, especially with the way I've acquired it…
        Should I still show it to him ?
        *choice
            #Yes, I'm confident enough that I should be able to play it out smoothly.
                *[b]"$!{command}."[/b]
                A dark mist surrounded me as the weapon was beginning to materialize, Suddenly, I could see his eyebrows immediately lowering deep.
                "Stop."

                Without missing a beat, I halted the manifestation, worried.

                [i]Did he notice something ?[/i]
                He looked at me throughly, as if trying to make sense out of pieces of a puzzle.

                "I'm not going to ask, not going to wonder about it. But I know that this. This was no Imperial relic." Rubbing his temple vigorously, he almost sounded dejected when he asked.

                "Why is everything surronding your life so…complicated ?"

                I knew that he didn't actually want an answer to that, but if I had to give him one, it'd be.

                [i]You don't know half of it.[/i]

                *goto_scene affectationadama3
            #I try to divert his attention away from the...sensitive topic

                "I don't think I can actually call it without the Empress releasing the seal can I ?" I innocently ask.

                "Oh so you do know how to play by the rules huh ?" He leans back on the chair, looking me up and down, a small frown marring his features.

                "I could release it for you, but…" a deep sigh leaves him and we both get the message.

                He knows something weird is up with my relic.

                *goto_scene affectationadama3
1 Like

I just copied and pasted your code as is into CSIDE and it worked (I had to create the variables).

1 Like

Thanks ! I modified the indentations problem and checked the viability, but it still didn’t work. I really don’t know rn

Yes ! That’s the most confusing, because in the IDE the choice works perfectly (I’ve updated my game with it because I had tested it first. But once I play it in dashingdon it doesn’t work.

Might be a Dashingdon problem then. The site is not maintained anymore and it’s just a matter of time until it stops working completely. :cry:

1 Like

There totally are games on Dashingdon using selectable_if, so it’s not like the version of ChoiceScript it uses doesn’t support that command. :thinking:

1 Like

I thought about that but the thing is that i used a selectable_if command a few choices prior and it worked perfectly fine :sob:

Really my true interrogation, i don’t see the mistake in my code (I’m not really good at it so i might be wrong tho) and the command worked earlier, so i really wanna know what’s up

Have you tried running dashingdon’s in a private window? Sometimes the browser remembers data from earlier uploads. I use a lot of selectable_if’s on dashingdons and (so far at least) have not had any issues.

1 Like

I haven’t tried this in private mode but every time i tried to implement a change while trying to fix it, I’d clear my browser’s cache and cookies, still the same error

I’ve run this code - unmodified - in Dashingdon, and got no errors whatsoever; I also can’t see any issues with the use of *selectable_if…

Are you sure the code you provided is the one from the affectationadama2 file that throws the error? Because it links to affectationadama2 with a *goto_scene, which wouldn’t make much sense if that was scene was itself

1 Like

You indented one space too many.

*choice
     *selectable_if (school =0) #How was your school life ?
    *selectable_if ((affectation1 = 0) and (school =1)) #Are you happy about your affectation ?"
    *selectable_if (tea_adama =2) #What about your weapon ?

See?

2 Likes

Yes thanks ! @Loudbeat had pointed it out, I did modify it and still getting an error

Have you tried creating another new game on the site and uploading everything again? Just to discard that it isn’t cursed or something.

1 Like

I’m indeed getting “affectationadama2 line 3: Non-existent command ‘selectable_if’” from the same file I’ve presented you, after the first choice, (how was your school life), I wanted the game to return to affectationadama2 as the “main” page for this set of question which is why this choice is linked back to the same scene, I’ve tried to put a *disable_reuse to maybe smooth things out but still doesn’t work

Loooool not the cursed game :sob: :rofl:

It’s super weird because I’ve run your code multiple times now on Dashingdon (the original one, without modified indents), and there are consistently no errors.

Might actually be cursed…

1 Like

No way :sob::sob::skull:

Maybe you could try uploading the file again and see if it works? It’s always possible something broke while uploading.