# Player choice code (Story extennsion)

**URL:** https://forum.makecode.com/t/player-choice-code-story-extennsion/30966
**Category:** Help
**Tags:** extension, game
**Created:** [October 3, 2024, 6:26pm UTC](https://forum.makecode.com/t/player-choice-code-story-extennsion/30966 "2024-10-03T18:26:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gravethecoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gravethecoder/32/17144_2.png) [@gravethecoder](https://forum.makecode.com/u/gravethecoder)
#### Post date: [October 3, 2024, 6:26pm UTC](https://forum.makecode.com/t/player-choice-code-story-extennsion/30966/1 "2024-10-03T18:26:00Z")

</div>

Hello! i just wondering how i could repeat a question when you choose the wrong one? doing this for a game. Heres the link (The onwe next to the humongus code) [https://arcade.makecode.com/S45877-67163-35431-13651](https://arcade.makecode.com/S45877-67163-35431-13651)

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [October 4, 2024, 3:57pm UTC](https://forum.makecode.com/t/player-choice-code-story-extennsion/30966/2 "2024-10-04T15:57:45Z")

</div>

We use a function:

> **[Story-Repeat-Test](https://arcade.makecode.com/87530-51553-17291-69575)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Look at the example and look at the code.

---

<div class="post-metadata">

### Author: ![darkflufyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darkflufyy/32/10286_2.png) [@darkflufyy](https://forum.makecode.com/u/darkflufyy)
#### Post date: [October 4, 2024, 4:04pm UTC](https://forum.makecode.com/t/player-choice-code-story-extennsion/30966/3 "2024-10-04T16:04:52Z")

</div>

Holy crap man, this is awesome! I’m not 100% sure how to do what you’re asking, but I’m pretty sure the story extension has some variables you can use that I’ve used before like \<last answer=\> and if you pair that with an “if” statement, you can get like [if last answer=x, then repeat question] I guess you could do that infinitely, not entirely sure.
