Jump to content

Scripting Issue


Taco033

Recommended Posts

Minor problem I'm having. I have a dialog set up between an NPC and the player. The NPC is essentially waiting for a command to attack. I say "go ahead and attack" and I want to know, how do I get the NPC to move to a X marker I have placed? This likely calls for a script. He moves without following me, but doesn't move until I give the command. The dialog ends and the NPC moves to a position I already know.

 

I'm a total n00b, so help would be greatly appreciated.

Link to comment
Share on other sites

Technically, you don't have to do any actual scripting to accomplish this, but you do have to use some scripting commands. But, it can all be done through packages and the dialog.

 

Step one is to create an AI Package that tells the NPC to move to your Xmarker.

Step two is in the dialog topic you have created. When the proper sequence transpires, in the area labled "Result Script", use the command "AddScriptPackage" to give the NPC your custom package.

 

Like this: NPCref.AddScriptPackage YourAIpackage. Here is a link to an article on AddScriptPackage: http://cs.elderscrolls.com/constwiki/index...ddScriptPackage.

 

You shouldn't need to remove the packaged, but if so, use RemoveScriptPackage <packageID>.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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