Quick Item Conditions Question

Post » Tue May 17, 2011 5:04 am

If you end a quest can you still access the quest script variables? Or does everything about it go kaput?
User avatar
Matthew Aaron Evans
 
Posts: 3361
Joined: Wed Jul 25, 2007 2:59 am

Post » Tue May 17, 2011 8:46 am

You could try it and see. I prefer using global variables. Especially if you plan on ending the quest at some time in the future.
User avatar
kennedy
 
Posts: 3299
Joined: Mon Oct 16, 2006 1:53 am

Post » Tue May 17, 2011 7:38 am

If you end a quest can you still access the quest script variables? Or does everything about it go kaput?


I was curious about this so went and looked it up in the wiki. This is what it says about your question.

Quest variables can still be accessed and modified when the quest is not running. When a quest is stopped, its script is not being processed, but it still exists and the state of the variables remains intact.


Here's the link to the page if you want it:

http://geck.gamesas.com/index.php/Quest_scripts


I don't actually know from experience if it works this way or not. You'd need to test it to know for sure or wait for somebody who's done it for verification.
User avatar
le GraiN
 
Posts: 3436
Joined: Thu Mar 22, 2007 6:48 pm

Post » Tue May 17, 2011 3:41 pm

The variables stay intact. On the mod i'm working on, I have several quest scripts that I start and stop when required (StartQuest/StopQuest). When the quest is stopped, the variables are still available and have their values as of when the quest stopped. You can still use and modify the values from other scripts/quests/conditions/etc.

If you want to clear the variables of a quest, you can do a resetquest before the startquest.
User avatar
Nana Samboy
 
Posts: 3424
Joined: Thu Sep 14, 2006 4:29 pm

Post » Tue May 17, 2011 5:22 am

I actually did test it like 10 seconds after I posted this since I remembered a really easy method I already have implemented that I just changed 1 thing, toggled god mode in game and voila.

But yes, it does work as in the wiki.
User avatar
Zualett
 
Posts: 3567
Joined: Mon Aug 20, 2007 6:36 pm


Return to Fallout 3