Jump to content

How Do I Trigger NPCs from Quest


Edg3k

Recommended Posts

Hey all.

 

Ok heres the deal. I want to create, as part of a mod I'm working on, an NPC that will only appear when a certain mission is done, a specific one in The Companions quest line. I want him to show up after the quest has been completed but, NO idea how to do it. I'm 99% sure it can be done as Ive seen it happen in the vanilla game, certain characters showing up when quests have been completed.

Ive looked around in the CK and online and I've come out more confused then before.

If someone could either point me in the direction of a less confusing tutorial or map it out for me here I'd be forever grateful.

Link to comment
Share on other sites

There are at least a couple ways to handle this, the simplest may be something along the lines of the following general parameters:

  1. Make sure your NPC when placed, starts "disabled"
  2. Make sure you have a quest alias for your NPC in your quest
  3. Create a "heartbeat" check using RegisterFor(Single)Update() that polls at your desired interval for whatever condition(s) you set, e.g., MQ104 completed
  4. Enable the NPC reference alias upon the condition being satisfied; remember to Unregister for the update

 

If you want to see examples, I helped write the script for the above on a couple of mods:

 

1. Riverwood Redux by X2ash: Riverwood player house keys and deed are given to player after completion of MQ104.

2. Dovahkriid - The Dragon Lords by AurianaValoria1: The dragon lords get "turned on" after Alduin starts spawning his lieutenants.

Link to comment
Share on other sites

Hey guys thanks for the reply sorry I didnt get back to you sooner.

 

My mods 75% finished, well, 100% but I have further plans for it. I want certain characters to appear or show up after a certain point in the quest line, to do stuff or replace dead characters. Mujuro, thank you :) I've no experience with scripts thats why I asked, but that seems, straight forward enough even for me :) I used Riverwood Redux for a long time, so thank you for that :)

 

Basically my idea is to have Skjors son (never mentioned so its still lore friendly) show up to join the Companions after his death. Not straight after, but between when your sent to kill the Silver Hand and Kodlaks death. Then I also want some Companion protectors to appear in towns across Skyrim upon becoming the Harbinger, like town guards they'd be scripted to patrol and defend.

Link to comment
Share on other sites

No problem Edg3k, let me know if you have any questions after checking out the script source for those; it's relatively straightforward once you have the references set up properly in the underlying quest. Note that while I bound Riverwood Redux/Dragon Lords conditions to quest completion, you can tag them against other conditions as well (e.g., whether Kodlak is alive + quest stage for the Silver Hand stuff, etc.). If you're looking at Riverwood Redux, make sure you're using the latest version; that's the one that has my script source included.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...