# I'm having trouble with \*selectable\_if

**URL:** <https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688>\
**Category:** ChoiceScript Help\
**Created:** [September 16, 2013, 4:57pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688 "2013-09-16T16:57:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_CUTY](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dj_cuty/32/940_2.png) [@DJ\_CUTY](https://forum.choiceofgames.com/u/DJ_CUTY)\
**Post date:** [September 16, 2013, 4:57pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/1 "2013-09-16T16:57:55Z")

</div>

The error is  
line 121: couldn’t parse the line after \*selectable\_if (transformations\_crow) Transform into a crow to scout ahead- requires 2 manna

I inspected the line that had the error but I still don’t see where the problem is…it’s probably right infront of my untrained eyes xD, Can anyone help me with this? Here is the code that the error is in

```

\*selectable_if (transformations_crow) Transform into a crow to scout ahead- requires 2 manna
		\*set Intelligence +5
		\*set Beckhams_manna -2
		\*set Relationship_with_Beckham +2
		You unstrap the buckles on your backpack and Beckham leaps into the air before landing tentatively on your shoulder. You rub his back for a moment before addressing your initial course of action. "Beckham, we do not yet know what lies ahead, and the first step in our vocation is to be sure of everything. Transform into your crow state and check the surrounding area for anything potentially dangerous, or pertinent to our endeavors and report back with your findings." 

		With a puffing sound, Beckham is engulfed in a puff of white smoke, before it dissipates to reveal his altered body, now that of a crow. He nods at you once before flapping steadily to ascend into the air and beyond the pinnacle of the forest to be lost from vision. Several minutes pass by in silence before the shape of the sun is dimmed briefly by the silhouette of your companion. Gliding down from the air, he lands once again on your shoulder and proceeds to inform you of the situation through a series of pitch changing caws. 

		"There are three witch assassins waiting for you in a clearing approximately a mile from our position! What shall we do?"
<pre/>
```

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [September 16, 2013, 4:59pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/2 "2013-09-16T16:59:16Z")

</div>

Put a # in front of Transform into a crow…

---

<div class="post-metadata">

**Author:** ![DJ\_CUTY](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dj_cuty/32/940_2.png) [@DJ\_CUTY](https://forum.choiceofgames.com/u/DJ_CUTY)\
**Post date:** [September 16, 2013, 5:37pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/3 "2013-09-16T17:37:03Z")

</div>

I did initially but then it didn’t take the  
\*selectable\_if  
into account, and the example for conditional options on the CoG website doesn’t have a # in front of the \*selectable\_if choices.

this is the example that they had

```

Sometimes we want to show players that a choice is not available to them. We can do that like this:

  How will you handle this?
  \*choice
    #Try to talk them out of it.
      They cannot be dissuaded.
      \*finish
    #Force them to relent.
      They back down, for now.
      \*finish
    \*selectable_if (president) #Abuse my presidential powers to silence them
      This works; you will never hear from them again.
      \*finish
<pre/>
```

---

<div class="post-metadata">

**Author:** ![Pace675](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/pace675/32/10543_2.png) [@Pace675](https://forum.choiceofgames.com/u/Pace675)\
**Post date:** [September 16, 2013, 5:43pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/4 "2013-09-16T17:43:43Z")

</div>

Try putting a choice before the \*selectable\_if

`*choice #These people must be the harbingers of what is to come, so I shall attack! *set depravity +10 *if (job ="Shadow") *set favor +10 *set willpower %+7 *goto a1 #Step out in the road and wait for them to approach, you wish to parley before making a decision. *set morality %+5 *goto a2 *selectable_if ((job = "Ranger") or (job = "Shadow")) #Get a loftier view and a tactical advantage and climb the tree you can decide what to do from there. *set cunning %+5 *goto a3 *selectable_if (job ="Mage") #Gather your thoughts in preparation for a spell. *choice #I will attack them. *set cunning %+5 *goto a1 #I am only gathing my magical energies just in case things go awry. *set morality %+5 *set intelligence %+10 *goto a2`

This works for me.

---

<div class="post-metadata">

**Author:** ![JimD](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jimd/32/21672_2.png) [@JimD](https://forum.choiceofgames.com/u/JimD)\
**Post date:** [September 16, 2013, 5:49pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/5 "2013-09-16T17:49:52Z")

</div>

The correct code is definitely:

```

*selectable_if (transformations_crow) #Transform into a crow to scout ahead- requires 2 manna

```

The only thing I can think of trying is not to put \*set right after the \*selectable\_if line

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [September 16, 2013, 5:52pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/6 "2013-09-16T17:52:52Z")

</div>

@DJ_CUTY

I meant like how JimD did it.

---

<div class="post-metadata">

**Author:** ![DJ\_CUTY](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dj_cuty/32/940_2.png) [@DJ\_CUTY](https://forum.choiceofgames.com/u/DJ_CUTY)\
**Post date:** [September 16, 2013, 6:10pm UTC](https://forum.choiceofgames.com/t/im-having-trouble-with-selectable-if/1688/7 "2013-09-16T18:10:43Z")

</div>

Oh I see what you mean. Thanks everyone
