Simple Uninstall Script

Post » Tue May 21, 2013 6:13 am

I've been working on an update to one of my mods, and needed to disable some persistent vanilla assets. I have a simple uninstall script, just a quest that runs every 30 seconds with the following basic script (at work so syntax and everything is not exact).

scn UninstallScriptBegin GameUpdateIf GetStage xQuest == 0    VanillaReference01.Disable    VanillaReference02.Disable    SetStage xQuest 10Elseif Uninstallx == 1    VanillaReference01.Enable    VanillaReference02.EnableEnd

But it doesn't appear to be working. I assume it has something to do with the fact that they're persistent references and I'm trying to add a name to them via my mod mid-game? Is there a way to get around this (some function that returns a ref)? Can you just use reference numbers directly e.g. 0000034.Disable? Is there any other reason this might not work?

And I guess if it matters, I'm disabling Leveled Lists of NPCs.

User avatar
Charles Weber
 
Posts: 3447
Joined: Wed Aug 08, 2007 5:14 pm

Return to Fallout: New Vegas