# Resetting all variables?

**URL:** <https://forum.kirupa.com/t/resetting-all-variables/12416>\
**Category:** Uncategorized\
**Created:** [January 31, 2003, 12:47am UTC](https://forum.kirupa.com/t/resetting-all-variables/12416 "2003-01-31T00:47:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)\
**Post date:** [January 31, 2003, 12:47am UTC](https://forum.kirupa.com/t/resetting-all-variables/12416/1 "2003-01-31T00:47:11Z")

</div>

I don’t know if this is possible…

is there a command that resets all variables to their original position/ number? There’s a bunch of variables in my game… and at the end I want the option to replay. But if you play right through the game again everything will be messed up.

ah… if not I’ll just tell people to X the window and reload it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2003, 1:10am UTC](https://forum.kirupa.com/t/resetting-all-variables/12416/2 "2003-01-31T01:10:47Z")

</div>

hey

Wouldnt your variables be set at the start of the game, so when you reply you can just go to that point , and it will go back to the start.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2003, 1:59am UTC](https://forum.kirupa.com/t/resetting-all-variables/12416/3 "2003-01-31T01:59:08Z")

</div>

that’s the thing… this is the first game I programmed and it’s pretty sloppily done. It’s not a little mini game either, it’s a long adventure game I’ve been working on for months. I call for all kinds of variable whenever I need them, make them up, etc etc. I have at least 50 or so variables. I could never find them all… and if I did, some need to stay as a variable with no number attatched to it to start with

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2003, 2:10am UTC](https://forum.kirupa.com/t/resetting-all-variables/12416/4 "2003-01-31T02:10:31Z")

</div>

wouldnt be able to help you with games in flash, though maybe playamarz can help you , you should pm him or send him a email about the problem.

😏
