Jump to content

Is there a script that moves a quest giver to PC's location?


huntsman2310

Recommended Posts

A couple months ago, I began work on making a quest mod for Riverwood, which would add five or so dungeons around the area, some new NPC's, and would place an 'area boss' that connected all the five quests together. Now the first one I'm making involves a elven hunter asking you (rather rudely) to gather ten deer pelts and meats, and five wolf pelts and meats.

 

So immediately after completing these goals, you stumble upon a corpse of another elf hunter, who was her mentor and lover. So I want to make it that, when you discover the body, she runs up to you and finishes the quest. Anyone experienced enough with quests and scripts to teach me how to do it?

Link to comment
Share on other sites

I'll write a walkthrough supposing you know how to make scripts, advance quest stages, use aliases and triggers.

 

- Place a trigger around the corpse.

 

- Script the trigger to advance the quest stage

 

- Place an x marker at a certain distance from the corpse (will be the location from where the NPC starts running to you, so you should try to have it behind the player to avoid the NPC weirdly popping up)

 

- In the quest stage just called, script a MoveTo() function, using the NPC as target and the x marker as the destination

 

- Also script a EvaluatePackage() so the NPC will almost istantly start rushing after the stage update.

 

- Now create a blocking branch with the dialogue you want the NPC to tell you.

 

- Now create an alias pointing to the NPC.

 

- Create a new Forcegreet package, poiting to the blocking branch you just created. Condition it to the quest stage you just setted. Use a radius that will contain the corpse location, and set it so the NPC doesn't need a Line of Sight to start running at the player.

 

- Assign the package to the alias you created.

 

Now, when you enter approach the corpse, the NPC will teleport from where he is to the x marker, and suddenly start rushing to you, finishing with opening a dialogue telling a line.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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