Jump to content

How do you make an npc temporarily follow you during a quest?


zerther

Recommended Posts

I am not aware of any extensive tutorial on using quest aliases, but there are probably something out there. In your case, you would need to create and assign quest aliases not just for the player, but for the NPC that will be involved in that quest. Then attach the AI package you want the NPC to execute during the quest to the NPC's quest alias, condition the packages to execute only after the appropriate quest stages have been met (or provide a range of quest stages if you want them to continually execute an AI package for the duration of those quest stages).

Link to comment
Share on other sites

I don't know if I'm just not a natural at this, or if another mod is interferring with my setup, but I just cant get it to work.... hmm.... my spouse is also doing hearthfire sandboxing while im trying to activate my quest if that helps. cuz i dont know why this isnt working.

Link to comment
Share on other sites

Try an EvaluatePackage and see if it helps.

YourNPC_Alias.GetRef().EvaluatePackage()

Fill in your NPC's actor alias and attach this as a script fragment to the quest stage that you want to trigger the NPC's alias package.

Edited by ripple
Link to comment
Share on other sites

Oh, here's the error.

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0300845D"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(19,0): variable Zirian_Alias is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(19,13): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(19,22): none is not a known user-defined type
No output generated for TIF__0300845D, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0300845D
Thanks for your responses.
Link to comment
Share on other sites

You need to define the property of your alias (Zirian_Alias). Just highlight your script, click on 'properties', and add it. Select 'alias' and enter your alias in the 'name' field. Anytime your script reference a property, you need to define it.

 

http://www.creationkit.com/Property_Reference

 

Also, check out the CK tutorials, they are really helpful in providing examples of things you may need to do when scripting.

 

http://www.creationkit.com/Bethesda_Tutorial_Papyrus_Events_and_Properties

Edited by ripple
Link to comment
Share on other sites

yeah same error



Starting 1 compile threads for 1 files...

Compiling "TIF__0300845D"...

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(11,0): variable Zirian_Alias is undefined

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(11,13): none is not a known user-defined type

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0300845D.psc(11,22): none is not a known user-defined type

No output generated for TIF__0300845D, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on TIF__0300845D



Thanks for the tutorials. I actually have been reading them over and over, but there are things I want to do in the game that just aren't explained in the ck tutorials. :sad:

Edited by zerther
Link to comment
Share on other sites

Oh i've never got a PM before tbh, I've never checked it. Thanks a bunch darren I'll try that.

 

Also... new development, when i start a new game and meet my character everything works just fine.... so something is definitely overriding my quest and packages... maybe the whole spouse thing, and a spouse mod i have.

Edited by zerther
Link to comment
Share on other sites

  • Recently Browsing   0 members

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