# Problem

**URL:** <https://forum.choiceofgames.com/t/problem/137>\
**Category:** Game Development\
**Created:** [June 28, 2011, 3:38pm UTC](https://forum.choiceofgames.com/t/problem/137 "2011-06-28T15:38:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 28, 2011, 3:38pm UTC](https://forum.choiceofgames.com/t/problem/137/1 "2011-06-28T15:38:26Z")

</div>

I’m trying to make a choice game where your trapped in a dungeon and you have to find a way out, I JUST started it, I got maybe 10 minutes in to it when I realized the game had a BUNCH of errors, and errors I can’t seem to fix, when the hooded man comes up to you and you choose to stay silent the game crashes, the 3rd option choice at the beginning of the game does not show up, and if you choose to scream, then the game has yet another crash, heres the script:  
You awaken in a dark room with stone walls…

\*choice  
#Look around  
You cannot see anything.  
\*choice  
#Yes I can.  
You can see in the dark?!  
\*choice  
#Yeah I can!  
#Umm…No?  
\*finish  
#Err…I can’t?  
No…you can’t…  
\*finish  
#Well it is dark…  
I know that…  
\*finish  
#Do nothing  
Since you do nothing…NOTHING HAPPENS!  
\*choice  
#Look around  
You can’t find anything.  
\*finish  
#Do nothing  
Sigh.  
\*finish  
#I don’t know what to do!  
Then why did you play this game?  
\*choice  
#I just found it randomly  
Well then I must be famous!  
\*finish  
#Because I want to!  
Oookkkk…  
\*finish

[The next one is:]

Soon you hear footsteps.  
\*choice  
#Scream  
You scream…and scream…and scream…  
\*finish  
#Stay silent  
The footsteps suddenly stop…  
\*finish

[What is wrong with it?!]

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 28, 2011, 3:39pm UTC](https://forum.choiceofgames.com/t/problem/137/2 "2011-06-28T15:39:25Z")

</div>

err sorry, I just noticed when I posted this the indentions I made did not come out, can some one just re-word this so it is fixed? This is just the part that is broken, not the whole thing.

---

<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:** [June 28, 2011, 3:44pm UTC](https://forum.choiceofgames.com/t/problem/137/3 "2011-06-28T15:44:30Z")

</div>

Your basic structure has to be different. You have to end any choices with \*finish or \*goto.

For example  
\*choice  
#Look around  
You cannot see anything.  
\*goto A

\*label A  
\*choice  
#Yes I can.  
You can see in the dark?!  
\*finish

Also, you have to indent after \*choice and indent after #options. The number of spaces must be equal. This discussion forum does not allow indents but just use 2 spaces.

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 28, 2011, 3:45pm UTC](https://forum.choiceofgames.com/t/problem/137/4 "2011-06-28T15:45:22Z")

</div>

@JimD  
thanks, i’ll get to work on it.

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 28, 2011, 4:12pm UTC](https://forum.choiceofgames.com/t/problem/137/5 "2011-06-28T16:12:56Z")

</div>

Whatever I do the 3rd choice will never come up!  
“#I don’t know what to do!”  
“Then why did you play this game?”  
“#I just found it randomly.  
#Because I want to!”  
etc.

---

<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:** [June 28, 2011, 4:20pm UTC](https://forum.choiceofgames.com/t/problem/137/6 "2011-06-28T16:20:52Z")

</div>

Here is the basic structure, using a period as a space.

\*choice  
…#Punch Joe  
…You punch Joe in the face.  
…\*goto AfterPunchJoe  
…#Kick Joe  
…You kick Joe in the knee.  
…\*goto AfterKickJoe  
…#Run from Joe  
…You run and hide.  
…\*goto Run

\*label AfterPunchJoe  
I run home.  
\*finish

\*label AfterKickJoe  
My foot hurts.  
\*finish

\*label Run  
I run home and lock the door.  
\*finish

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 29, 2011, 1:14pm UTC](https://forum.choiceofgames.com/t/problem/137/7 "2011-06-29T13:14:53Z")

</div>

I fixed the crashes but not the 3rd choice at the start of the game.

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [June 29, 2011, 1:15pm UTC](https://forum.choiceofgames.com/t/problem/137/8 "2011-06-29T13:15:55Z")

</div>

the “I Don’t Know What to Do” one

---

<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:** [June 30, 2011, 1:16am UTC](https://forum.choiceofgames.com/t/problem/137/9 "2011-06-30T01:16:14Z")

</div>

Can you replace the spaces in your code with Dashes, or Periods and repost it? I personally can’t be sure of a problem unless you do that.

---

<div class="post-metadata">

**Author:** ![animalsienna](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@animalsienna](https://forum.choiceofgames.com/u/animalsienna)\
**Post date:** [July 6, 2011, 2:57pm UTC](https://forum.choiceofgames.com/t/problem/137/10 "2011-07-06T14:57:03Z")

</div>

Seconding Reaperoa, it’s impossible to figure out what’s wrong with your code if we don’t know how you’ve indented it. You can substitute periods for spaces, or try some html:

\<.code\>  
Your code!  
\<./code\>

(Just take out the periods between the \<\> and it should format it for you.)

---

<div class="post-metadata">

**Author:** ![Death](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/death/32/370_2.png) [@Death](https://forum.choiceofgames.com/u/Death)\
**Post date:** [July 14, 2011, 12:17pm UTC](https://forum.choiceofgames.com/t/problem/137/11 "2011-07-14T12:17:40Z")

</div>

sorry i’ve been busy, I might post tomorrow
