# Can variables be changed in the stats menu?

**URL:** <https://forum.choiceofgames.com/t/can-variables-be-changed-in-the-stats-menu/5508>\
**Category:** Game Development\
**Created:** [October 11, 2014, 5:17pm UTC](https://forum.choiceofgames.com/t/can-variables-be-changed-in-the-stats-menu/5508 "2014-10-11T17:17:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayzkalyn](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Ayzkalyn](https://forum.choiceofgames.com/u/Ayzkalyn)\
**Post date:** [October 11, 2014, 5:17pm UTC](https://forum.choiceofgames.com/t/can-variables-be-changed-in-the-stats-menu/5508/1 "2014-10-11T17:17:06Z")

</div>

So a game I’ve been working on has the ability to summon a demon in the Stats menu, and buy things from him. It works perfectly, but it seems that all of the altered variables revert to normal after leaving the stats menu. If I was going to guess, I would assume that this is because choicescript saves your progress and reloads it once you close the stats page.

If anyone knows a way around this, or if I could edit the ui code to fix this, it would be greatly appreciated. My game won’t work without this ability.

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [October 11, 2014, 5:21pm UTC](https://forum.choiceofgames.com/t/can-variables-be-changed-in-the-stats-menu/5508/2 "2014-10-11T17:21:26Z")

</div>

You can with the latest version, you just have to click next in game without going back to the stat screen for it to take effect. See more on this thread;

> [@Grr...More restrictions found on the stats screen](https://forum.choiceofgames.com/t/grr-more-restrictions-found-on-the-stats-screen/2568):
>
> Alright, so it’s okay to use a \*gosub\_scene within the stat screen, but if you THEN use a choice and a \*goto within that \*gosub, suddenly the whole thing breaks seemingly. When I then click return to game, it only returns me to the stats page, and then I’m stuck there forever. Now why is that? Going on the name, \*goto, one would think it actually jumps to a piece of code within the scene. But instead, it seems it creates a new iteration of the page you’re on, so it doesn’t move you through spac…

---

<div class="post-metadata">

**Author:** ![Ayzkalyn](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Ayzkalyn](https://forum.choiceofgames.com/u/Ayzkalyn)\
**Post date:** [October 11, 2014, 5:50pm UTC](https://forum.choiceofgames.com/t/can-variables-be-changed-in-the-stats-menu/5508/3 "2014-10-11T17:50:59Z")

</div>

Thanks! I feel… enlightened, after reading that topic.
