Re-filling quest script vars

Post » Tue Nov 20, 2012 1:36 am

It seems someone snuck in a malformed quest stage script for DLC1VQDragon and it FUBAR'd Durnehviir's behavior after the fight.

I deleted the offending script... however, the quest is Start Game Enable'd, so there are a lot of empty quest script vars for the affected script.

Is there any way to re-fill those variables, either through the console, or through another script? SetPQV won't avail me, because it doesn't seem to work on reference vars, only numerical or string vars.
User avatar
ShOrty
 
Posts: 3392
Joined: Sun Jul 02, 2006 8:15 pm

Post » Mon Nov 19, 2012 11:04 pm

Well, yes. It won't work for Actor or Object Reference properties (unless they're already persistent...?), but you can make a dummy quest with properties mirroring the borked ones and do:

(Quest as QuestScript).Property = ExternalProperty

and do that for every broken property.

You can technically do it for a QF, but you need the script name down exactly.
User avatar
Quick Draw III
 
Posts: 3372
Joined: Sat Oct 20, 2007 6:27 am

Post » Tue Nov 20, 2012 5:31 am

Reset the quest w/o the script overridden? You might have to untick its "Run Once" flag so all of its vars/properties will properly revert.
User avatar
kevin ball
 
Posts: 3399
Joined: Fri Jun 08, 2007 10:02 pm


Return to V - Skyrim