# A \*goto\_scene problem

**URL:** <https://forum.choiceofgames.com/t/a-goto-scene-problem/698>\
**Category:** ChoiceScript Help\
**Created:** [August 20, 2012, 5:32am UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698 "2012-08-20T05:32:39Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [August 20, 2012, 7:46pm UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698/21 "2012-08-20T19:46:20Z")

</div>

@AlexCosarca

I was referring to the code you posted in this topic. I didn’t realise it wasn’t the actual code, my apologies.

---

<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:** [August 20, 2012, 7:47pm UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698/22 "2012-08-20T19:47:02Z")

</div>

Try uncapitalizing them. That may be causing the error.

---

<div class="post-metadata">

**Author:** ![AlexCosarca](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/alexcosarca/32/68977_2.png) [@AlexCosarca](https://forum.choiceofgames.com/u/AlexCosarca)\
**Post date:** [August 20, 2012, 7:54pm UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698/23 "2012-08-20T19:54:40Z")

</div>

@Nocturnal_Stillness, you don’t have to. The code I posted was a template for what was in my game, and I wrote it this way to write it easier. Looking through the code for “#” helped, I found an error at least!

@Reaperoa, Try looking in the “laves.txt” file; you’ll see I use the subroutine exactly the same (well, I don’t do \*gosub there, but I put what was in the subroutine whenever the time changes), which means they’re capitalized AND working (for some unknown reason). What is causing it is the following: It does the \*gosub thing, and you can see in the Date subroutine that there are several \*if/\*elseif commands; the date doesn’t correspond to any of them, so the game just moves on, without \*returning from that subroutine. That’s the problem. If the things there don’t happen, what next? I need to put up \*else at both subroutines and it’ll work.

---

<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:** [August 20, 2012, 7:57pm UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698/24 "2012-08-20T19:57:39Z")

</div>

Good, as long as you found out the problem. I personally don’t like to use \*else or \*elseif at all if I can help it so I’m not good at fixing those problems.

---

<div class="post-metadata">

**Author:** ![AlexCosarca](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/alexcosarca/32/68977_2.png) [@AlexCosarca](https://forum.choiceofgames.com/u/AlexCosarca)\
**Post date:** [August 20, 2012, 8:00pm UTC](https://forum.choiceofgames.com/t/a-goto-scene-problem/698/25 "2012-08-20T20:00:04Z")

</div>

I forgot something: THANKS to EVERYONE which helped me fix this, or tried to! Apparently, the error was with my subroutines. Unnoticeable so easily, but in the end it all worked fine.

EDIT: To the mods: Close this thread if you want to, I fixed what I wanted to.

[Previous page](https://forum.choiceofgames.com/t/a-goto-scene-problem/698.md?page=1)
