# Choicescript unable to parse \*selectable\_if magic\>5 #exclusive option?

**URL:** <https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729>\
**Category:** ChoiceScript Help\
**Created:** [May 30, 2015, 1:42pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729 "2015-05-30T13:42:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aglet](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aglet](https://forum.choiceofgames.com/u/Aglet)\
**Post date:** [May 30, 2015, 1:42pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/1 "2015-05-30T13:42:32Z")

</div>

Hi guys,

Writing my first write-your-own adventure, and I thought I’d be smart and put a variable in to one of my choices. The code I’m trying to put into my adventure looks like this;

Blahblahblah what do you want to do?

```
*choice
 *selectable_if magic >5#Option only available to people who've earned at least %+5 in the game
  blahblahblag
 #option 2
   etc etc

```

An error message keeps coming up that the code is ‘unparse-able’ and I’m wondering if there is an alternate option to this code? Do I have to use the true/false stats to make this work? : / I thought this would be easier for me.

Thanks!

- Aglet

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [May 30, 2015, 1:50pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/2 "2015-05-30T13:50:41Z")

</div>

From the looks of it it only needs some brackets, so that’d be

```
*choice
    *selectable_if (magic > 5)#Etc
        something
    #Option 2
        etc etc

```

Lack of brackets messes up things very often

---

<div class="post-metadata">

**Author:** ![Aglet](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aglet](https://forum.choiceofgames.com/u/Aglet)\
**Post date:** [May 30, 2015, 1:53pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/3 "2015-05-30T13:53:12Z")

</div>

I tried that and the error screen still went “computer says nooooo” =P  
The brackets made little to no difference D:

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [May 30, 2015, 1:55pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/4 "2015-05-30T13:55:31Z")

</div>

I had a lot of trouble with the \*selectable\_if 's in the past too. Does it still say the same thing?

---

<div class="post-metadata">

**Author:** ![Aglet](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aglet](https://forum.choiceofgames.com/u/Aglet)\
**Post date:** [May 30, 2015, 1:58pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/5 "2015-05-30T13:58:16Z")

</div>

If you mean by “unable to parse” either the phrase in question or the phrase after…? That’s what keeps coming up for me and I really liked the theory of that code D’:

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [May 30, 2015, 2:01pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/6 "2015-05-30T14:01:34Z")

</div>

Aha, found it. There has to be a space between the last bracket and the hash-tag like this:

```
*choice
    *selectable_if (magic > 5) #Etc
        something
        *page_break
    #Option 2
        etc etc
        *page_break
```

---

<div class="post-metadata">

**Author:** ![Aglet](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aglet](https://forum.choiceofgames.com/u/Aglet)\
**Post date:** [May 30, 2015, 2:04pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/7 "2015-05-30T14:04:06Z")

</div>

OH MY GOSH IT WOOOOORRRRKKKEDDDD  
I officially love you 5ever. Thankyou so much!  
: D

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [May 30, 2015, 2:05pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/8 "2015-05-30T14:05:55Z")

</div>

Whenever an error like this pops up it’s usually just some stupid mistake 😅  
You’ll get used to it 😜

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:00pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/9 "2015-05-30T22:00:01Z")

</div>

AAHHH!! I am getting the same error and can’t figure it out…!!! DX HELLP!!!

Ok here it is:

```
*fake_choice
  #option 1
    blah blah
  #2
    blah blah
  *selectable_if (LR) #You suggested that Larth did. 
    Larth seemed a bit surprised but took it anyway. 
    It didn't take long till he got his first fish.     

    "WHAT!" Mop exclaimed. "No way! Look at that wiggling fish!" 
    Larth held it up and Mop poked it giggling.
    *goto poll
*label poll 

```

and this is what is says: Error: night\_four line 465: Couldn’t parse the line after \*selectable\_if: LR #You suggested that Larth did.  
… someone help plz :((

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:02pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/10 "2015-05-30T22:02:09Z")

</div>

can a \*fake\_choice be used for that?? i changed it so maybe that helped but idk yet…

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [May 30, 2015, 10:04pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/11 "2015-05-30T22:04:20Z")

</div>

Yes a fake choice can be used for that.

Pasting your code into the IDE, with a “\*create lr true” at the top, it works fine.

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:05pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/12 "2015-05-30T22:05:28Z")

</div>

Hmm… idk why quicktest kept saying that error then… so it’s all fine??

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [May 30, 2015, 10:06pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/13 "2015-05-30T22:06:33Z")

</div>

No idea. If there’s an error it’s not in what you pasted here.

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:08pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/14 "2015-05-30T22:08:19Z")

</div>

The only part I didn’t past were the first two options since they were very long…  
But so far, quicktest stopped giving the error… though I only changed it to a \*choice not \*fake\_choice…hmm… idk… maybe it’s good now.  
thanks for checking for me!

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [May 30, 2015, 10:10pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/15 "2015-05-30T22:10:02Z")

</div>

IIRC, the way \*fake\_choice works was changed (before you couldn’t do a lot of things with it). It’s a possibility that it’s a hold over from that, but that’s only a guess.

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:12pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/16 "2015-05-30T22:12:37Z")

</div>

Oh can you tell more about about that??? Cuz I am also running into problems with \*fake\_choice command. I just want to make sure I am using it correctly.

Here is another error I’m getting:  
Error: night\_five line 227: It is illegal to fall out of a \*choice statement; you must \*goto or \*finish before the end of the indented block.

But It’s a \*fake\_choice I am using not \*choice

EDIT… I just looked over my code and there is a \*fake\_choice inside another one… I think that’s the problem…

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [May 30, 2015, 10:15pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/17 "2015-05-30T22:15:44Z")

</div>

If you can provide a link to all of the code you’re having problems with, instead of just a small snippet, we can probably tell you what the problem is. I don’t actually think it’s because you’re using fake\_choice instead of choice. I think it’s something else which you may have accidentally fixed when changing the commands.

That illegal to fall out error is caused because you have either a \*choice, or an \*else/elseif and no \*goto or finish

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:17pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/18 "2015-05-30T22:17:23Z")

</div>

ok thanks! how do give that kind of link?

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [May 30, 2015, 10:17pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/19 "2015-05-30T22:17:59Z")

</div>

Where do you host your games? Do you have a dropbox account?

---

<div class="post-metadata">

**Author:** ![RockStarPenguin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rockstarpenguin/32/1842_2.png) [@RockStarPenguin](https://forum.choiceofgames.com/u/RockStarPenguin)\
**Post date:** [May 30, 2015, 10:19pm UTC](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729/20 "2015-05-30T22:19:27Z")

</div>

I do but haven’t put any of my games on there yet

[Next page](https://forum.choiceofgames.com/t/choicescript-unable-to-parse-selectable-if-magic-5-exclusive-option/9729.md?page=2)
