Jump to content

AI Package Tutorial


sumoftwosins

Recommended Posts

I think I've figured this out. As long as the package is on top it may override next time packages are evaluated, if the condition is true. And anything can be used as 'use item' target, and any anim can be used as a finishing idle.

 

So in this case, the top package should be 'use item', select an NPC, under the condition that 'GetDead == 1', and end with the idle 'StartCannibal'. I could even have him make a comment about it. I'd have it set to 'Must Complete' and 'Once Per Day', so that he doesn't stop for anything else, but doesn't repeatedly keep going back to feast again.

 

But would this be overridden by adding scripted packages?

Link to comment
Share on other sites

  • 1 year later...

This is a really good tutorial.

But I have one issue.

In my new house mod I have placed some guards.

Once a day they switch, so one sleeps and the other one guards. The one guarding a special area should sit on a chair.

But he isn´t. Every time I reenter the cell, he stands up from the chair and then stands right beside it.

How can I achieve that he sits there all the time?!

 

Thank you!

 

monticapone

Link to comment
Share on other sites

This is a really good tutorial.

But I have one issue.

In my new house mod I have placed some guards.

Once a day they switch, so one sleeps and the other one guards. The one guarding a special area should sit on a chair.

But he isn´t. Every time I reenter the cell, he stands up from the chair and then stands right beside it.

How can I achieve that he sits there all the time?!

 

Thank you!

 

monticapone

 

Are you using a travel package? Check out Lucy West's last AI package where she sits in Moriarity's bar.

 

Also (in response to the radius issue)...

 

A radius of 256 will allow a 2 tile area (per horizonatl axis) for the package. Thats 256 forward, 256 back, 256 left and 256 right.

Link to comment
Share on other sites

  • 3 years later...

There are several ways.

If this is the only package used by the NPC, just set its schedule to any...any...any...(every field is set to 'any').

 

or

 

You can use a condition, like setting a variable to 1 in a dialogue results script and then setting up the AI package condition to only fire when that variable is 1.

 

or

 

You can also use the AddScriptPackage function in a script.

 

I could be more specific if you were more descriptive of exactly how you envision this working.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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