# Because I forgot and can't find it: How to have the game ignore 'not a positive number'?

**URL:** <https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554>\
**Category:** ChoiceScript Help\
**Created:** [September 3, 2021, 9:25am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554 "2021-09-03T09:25:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 3, 2021, 9:25am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/1 "2021-09-03T09:25:45Z")

</div>

How can I stop quicktest from giving the error message ‘not a positive number’ when it comes across multireplace and similar that uses a numeral variable?  
Randomtest has no problem with it (for obvious reasons), but how can I tell quicktest that ‘yeah, of course that’s a zero right now’

cause I don’t want to have some counter variables start out as 1, because the chance to miscalculate something are enormous.

What do I have to do to get QT to ignore these bits?

---

<div class="post-metadata">

**Author:** ![Silver\_Eye](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silver_eye/32/126178_2.png) [@Silver\_Eye](https://forum.choiceofgames.com/u/Silver_Eye)\
**Post date:** [September 4, 2021, 2:38am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/2 "2021-09-04T02:38:57Z")

</div>

Doing something like this?

```
*if choice_quicktest
   *set var 1

```

Not exactly sure where to put it though.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 4, 2021, 6:22am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/3 "2021-09-04T06:22:23Z")

</div>

where would I put that?

also: funnily enough quicktest now stopped complaining about it. let’s hope it stays that way.

---

<div class="post-metadata">

**Author:** ![Chris\_Conley](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/chris_conley/32/199055_2.png) [@Chris\_Conley](https://forum.choiceofgames.com/u/Chris_Conley)\
**Post date:** [September 4, 2021, 10:51pm UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/4 "2021-09-04T22:51:43Z")

</div>

I’ve gotten in the habit of sticking a block of

```
*if choice_quicktest
   *set var 1
   *set var2 1

```

at the top of each scene file. At least every time that QT complains about an invalid value.

---

<div class="post-metadata">

**Author:** ![Hazel](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hazel/32/77796_2.png) [@Hazel](https://forum.choiceofgames.com/u/Hazel)\
**Post date:** [September 5, 2021, 9:44am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/5 "2021-09-05T09:44:35Z")

</div>

You ought to only need to do it once, in startup.txt, after the variable declaration block.

I will test it and get back to you with a definitive answer.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 5, 2021, 9:58am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/6 "2021-09-05T09:58:54Z")

</div>

thing is this specific variable is a temp. so… where do I put it then?  
Also, funnily enough QT now stopped complaining about it, despite it still being at zero during testing

---

<div class="post-metadata">

**Author:** ![Hazel](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hazel/32/77796_2.png) [@Hazel](https://forum.choiceofgames.com/u/Hazel)\
**Post date:** [September 5, 2021, 11:06am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/7 "2021-09-05T11:06:38Z")

</div>

It depends on where you’re creating the temp variable, but also, you said this was a counter variable? So, yeah, it definitely needs to be zero, at some point, otherwise you would just initialize it as 1.

I would put it in the last non-indented block that comes right before the first time you check the variable with multireplace.

Then again, if QT stopped flagging it, you might as well put it in commented, just in case you run into this problem again.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 5, 2021, 11:16am UTC](https://forum.choiceofgames.com/t/because-i-forgot-and-cant-find-it-how-to-have-the-game-ignore-not-a-positive-number/106554/8 "2021-09-05T11:16:55Z")

</div>

aye. thanks. QT can be really weird at times
