MyGoodEye Posted March 4, 2012 Share Posted March 4, 2012 (edited) Hello again script-folks! I admit, I'm having a hard time getting a grip on scripting with CREATION KIT, so I'm asking for a bit of a tutorial to get me on my way. What I am aiming to do: If the CIVIL WAR is OVER (whether that be by victory or peace treaty) I want an NPC to be disabled.What I have done so far: I have a variety of NPCs "attached" to a variety of CW triggers. Meaning, briefly, that I can trigger a group of STORMCLOAKS fighting IMPERIALS if the STORMCLOAKS are occupying Fort Snowhawk (for example). If the FORT is occupied by BANDITS/MAGES (as it would be pre-Civil War), I can trigger some of those guys. This is all well and good. This works for most conditions. But... given that the trigger is based upon an "occupation" it will remain active even AFTER the CW concludes. The goal is to have some NPCs spawn during some portions of the CW and some NPCs to spawn during the ENTIRE CW. But NO NPCs spawn once the CW has concluded. So, then, how can I apply a script to an NPC that checks to see if the ENTIRE CW (not just a Quest within it) is active and, if not, disable the attached NPC. Scripting just isn't my thing. - David EDIT : Failing a script that can be applied to NPC references, I'm all ears for a METHOD (applying to quest stages for instance) to achieve the same goals. Edited March 4, 2012 by MGE Link to comment Share on other sites More sharing options...
tunaisafish Posted March 4, 2012 Share Posted March 4, 2012 argh, you would need to know about *that* quest chain wouldn't you :/ Somewhere on the Papyrus wiki it mentions about looking in the game source files for examples.Then there's a subnote about the CW ones not being a good place to look as they changed so much during development that they ended up like spaghetti. (not the exact words but that was the gist I got). There's more than 300 scripts for that questline. I hope there's a simple condition to check. (Though if there is then why do the darn NPC's keep talking to me like the war is still on????) The logic for the script at the losing leaders death sets the CWFinale to stage 330So that's a good starting point quest to base some conditions on. There may be a better variable to check, that's just the first appropriate one I found. At this stage though it would probably be better basing your NPC actions on a single new global like warzonesCWTracker.0 for still running, and non-zero for the diff endings. Link to comment Share on other sites More sharing options...
Chuckhustle Posted March 6, 2012 Share Posted March 6, 2012 Somewhere on the Papyrus wiki it mentions about looking in the game source files for examples. Then there's a subnote about the CW ones not being a good place to look as they changed so much during development that they ended up like spaghetti. (not the exact words but that was the gist I got). There's more than 300 scripts for that questline. This is precisely why my feeble attempts to make a third option that will allow the Dovahkiin to assume the mantle of high king through the civil war questline probably wont happen. Probably going to have to start a new quest and make a condition that if met nulls the CW quest altogether. Link to comment Share on other sites More sharing options...
Recommended Posts