Jump to content

Script/AI help


FishFiend

Recommended Posts

so im making a large quest mod and i want to add a temporary follower but i dont know how to make the npc follow me after dialogue i have made the package for following but i dont know how to start it so i was wondering if anyone can give me a hand it would be greatly appreciated
Link to comment
Share on other sites

Two ways.

 

1) Add <refNPC>.AddScriptPackage <AI follow package set to follow player> to the result script of dialogue.

Since you already know how to create AI packages, I won't explain how to make one. Just make sure its not added to the NPC as default behaviour

 

2)Add AI package set to follow player and assign it to NPC by default (make sure its at the top of the AI package list). Start an empty quest --> start quest enabled. This would be our variable holder. Add a script to it and define a variable int setFollow; Set the condition of the follow package as GetQuestVariable <questname> setFollow == 1

 

At the result scipt add this line:

 

set <questname>.setFollow to 1 ;Turn it back to 0 when you wanna disable it later on.

<refNPC>.evp

 

Hope this helps!

 

Glenstorm

Edited by Glenstorm
Link to comment
Share on other sites

Make the follower package active by giving it a condition with some variable that is met/set when the dialogue finishes. The follow package is always attached to the NPC, but only activates or becomes active when the condition of the end of the dialogue is met. So it is like you are attaching an 'on/off follow' button to the NPC.

 

See the much better post above!

Edited by cambragol
Link to comment
Share on other sites

  • Recently Browsing   0 members

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