Resetting all quest variables

Post » Fri Nov 18, 2011 11:28 am

I seem to remember that there was a way to reset all quest variables with one command.
I can't find it in the CS wiki nor in the OBSE command list.

I'm hoping to use this to reset the quest to its original state - i.e. as if it was the first time the user uses it.
If there is a command, can anyone let me know please?

Thanks,
Kuertee
User avatar
Andrew Tarango
 
Posts: 3454
Joined: Wed Oct 17, 2007 10:07 am

Post » Fri Nov 18, 2011 4:55 pm

I guarantee this is what you are "remembering", but it may not be exactly what you want:


ResetAllVariables - sets all variables in the calling script to zero.
(numVars:int) ResetAllVariables


I seem to remember that there was a way to reset all quest variables with one command.
I can't find it in the CS wiki nor in the OBSE command list.

I'm hoping to use this to reset the quest to its original state - i.e. as if it was the first time the user uses it.
If there is a command, can anyone let me know please?

Thanks,
Kuertee

User avatar
Nina Mccormick
 
Posts: 3507
Joined: Mon Sep 18, 2006 5:38 pm

Post » Fri Nov 18, 2011 2:41 pm

I guarantee this is what you are "remembering", but it may not be exactly what you want: ResetAllVariables - sets all variables in the calling script to zero. (numVars:int) ResetAllVariables
:D That is IT! Thanks, Duke! Weird that I didn't think of searching for "reset". :)
User avatar
Ross
 
Posts: 3384
Joined: Thu Aug 10, 2006 7:22 pm

Post » Fri Nov 18, 2011 5:21 pm

Remember though: Do not use the command on a script containing array or string variables - It will cause bad stuff to happen.
User avatar
Baylea Isaacs
 
Posts: 3436
Joined: Mon Dec 25, 2006 11:58 am

Post » Fri Nov 18, 2011 2:01 am

Remember though: Do not use the command on a script containing array or string variables - It will cause bad stuff to happen.

Ahhh...good tip! I couldn't remember ResetAllVariables, so I went with just ar_Nulling arrays that become empty to "unhinge" that variable from memory - just in case there is a leak with how I use them. Thanks, ShadeMe!
User avatar
Talitha Kukk
 
Posts: 3477
Joined: Sun Oct 08, 2006 1:14 am


Return to IV - Oblivion