# Selectable option not found?

**URL:** <https://forum.choiceofgames.com/t/selectable-option-not-found/144709>\
**Category:** ChoiceScript Help\
**Tags:** coder\
**Created:** [November 11, 2023, 9:48am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709 "2023-11-11T09:48:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 9:48am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/1 "2023-11-11T09:48:28Z")

</div>

One of my discord testers says the game gave him an error message about “selectable option not found”? I ran a quicktest and got nothing. The game is working fine as far as I can tell.

As a related note, it seems to be working just fine for most other people. Browser issue?

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 9:56am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/2 "2023-11-11T09:56:19Z")

</div>

I tested the game myself and it works fine for me (testing manually, using the same choices he made). I _think_ it’s a browser issue, please let me know if it’s not.

Testing done on dashingdon

---

<div class="post-metadata">

**Author:** ![HarrisPS](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/harrisps/32/240120_2.png) [@HarrisPS](https://forum.choiceofgames.com/u/HarrisPS)\
**Post date:** [November 11, 2023, 10:00am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/3 "2023-11-11T10:00:18Z")

</div>

I’d suggest trying 10K runs of RandomTest - that will help you find the problem. It’s likely that you’ve got a set of choices in which under an obscure circumstance there are none available for a player to pick.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:06am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/4 "2023-11-11T10:06:54Z")

</div>

It says ‘no selectable options’ for line 883 but I don’t even have a choice there… just a page break? I’m not sure I know how to run the RandomTest properly.

Edit: I removed the page\_break and it’s still giving me an error there for ‘no selectable options’.

---

<div class="post-metadata">

**Author:** ![HarrisPS](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/harrisps/32/240120_2.png) [@HarrisPS](https://forum.choiceofgames.com/u/HarrisPS)\
**Post date:** [November 11, 2023, 10:10am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/5 "2023-11-11T10:10:38Z")

</div>

Is there a set of choices near that line which might be causing the problem?

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:12am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/6 "2023-11-11T10:12:08Z")

</div>

There’s a choice above it but I’m not sure what would be the problem. All conditions have… hang on.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:13am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/7 "2023-11-11T10:13:19Z")

</div>

Sorry. I noticed a different bug unrelated to the test.

There is a choice above it but all criteria for that choice can be met regardless of playthrough.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:16am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/8 "2023-11-11T10:16:04Z")

</div>

```plaintext
*if (Health = 100)
  *goto Surprise
  *page_break
*if (Health < 100)
        Blah blah
        *fake_choice
         *if (Medical >= 40)
           #I know basic first aid, at least. I can wrap it up really good at least.
            Blah blah blah
            *set Health +5
            *goto Surprise
         *if (Medical >= 50)
           #I know how to suture a wound shut using what's in this first aid box. This wound is bad but easily fixed.
            Blah blah blah
            *set Health +10
            *goto Surprise
           #Maybe Emily will know how to treat a wound...
               Blah blah blah
               *set Health +5
               *goto Surprise

*label Surprise

```

This is the code for that segment (the choice right before the random test tells me no selectable options). RandomTest also didn’t flag an error in the location that the bug occurred but flagged one here which comes basically immediately after that segment.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:20am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/9 "2023-11-11T10:20:58Z")

</div>

I might see what’s wrong with this section now. Spacing.

---

<div class="post-metadata">

**Author:** ![HarrisPS](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/harrisps/32/240120_2.png) [@HarrisPS](https://forum.choiceofgames.com/u/HarrisPS)\
**Post date:** [November 11, 2023, 10:27am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/10 "2023-11-11T10:27:18Z")

</div>

Yep, try aligning the “maybe Emily will know…” option with the above \*if (Medical) line - that may sort it out.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [November 11, 2023, 10:28am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/11 "2023-11-11T10:28:40Z")

</div>

Did. No further errors were reported.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [November 12, 2023, 10:29am UTC](https://forum.choiceofgames.com/t/selectable-option-not-found/144709/12 "2023-11-12T10:29:01Z")

</div>

Closed on November 12, 2023, 10:29am UTC

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