Jump to content

Need Dialogue Scripting Help


unknownhero2827

Recommended Posts

I want a Follower NPC to travel to a cell, and then wander around in it. So far I can only get the first half to work through dialogue with a topic result script. Looks something likes this:

 

RemoveScriptPackage

AddScriptPackage aaFollowerTravelInn

 

I don't know how to make my NPC wander onced arrived at the destination. If I add another package to the script, it doesn't work. And I don't know if I need to change something in the packages themselves, though I've tried.

 

I'm very much an amateur with modding, any help would be appreciated.

Link to comment
Share on other sites

An actor can have only one script package at a time. When calling the function twice on the same actor, the second package replaces the first one added.

 

Oh. So I guess I'd have to do something with the actor's object script. Something like GetIsCurrentPackage yadayada and change the current package to another script package once the travel script package terminates? If anyone knows exactly what, that'd be helpful.

Link to comment
Share on other sites

You could use, in your actor's script, the following:

Begin OnPackageDone aaFollowerTravelInn

    AddScriptPackage SomeWanderPackage

End
But it requires you to add a script to the follower. In my follower management system mod, I use OBSE event handler for checking when a follower has seated (when a package ends, so a very similar case), to have them sit on chairs and such. So if you do not want to add scripts to the followers (to maintain compatibility), I would recommend an event handler.

 

Hopefully that helps a little. :)

 

Edit: Added the 'Begin' that I forgot. Sorry.

Edited by PhilippePetain
Link to comment
Share on other sites

  • Recently Browsing   0 members

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