Difference between revisions of "Basic NPC Creation Tutorial"

Jump to navigation Jump to search
No change in size ,  12:49, 6 April 2006
imported>JBurgess
imported>TS7
Line 83: Line 83:
*aaaSleep22x8
*aaaSleep22x8
These are all standard packages we can use, as indicated by the ''aaa'' prefix.  The naming convention for these three also give time information.  The first number is a time in military time, and the second is a duration.  So our NPC will now Eat for two hours at 10am and 8pm, and sleep for eight hours at 10pm.  This behavior will create a chance that some players may be able to more easily sneak in and loot her and her living area without direct confrontation.
These are all standard packages we can use, as indicated by the ''aaa'' prefix.  The naming convention for these three also give time information.  The first number is a time in military time, and the second is a duration.  So our NPC will now Eat for two hours at 10am and 8pm, and sleep for eight hours at 10pm.  This behavior will create a chance that some players may be able to more easily sneak in and loot her and her living area without direct confrontation.
[[Image:tut3_img4.jpg|thumb|right|The AI window]]
[[Image:tut3_img4.gif|thumb|right|The AI window]]
AI processes the package list from top to bottom, so be sure to keep the wander packages at the bottom.  Because they have no conditions (such as time or duration), the AI will always choose one of them, meaning that the NPC will never eat or sleep if those packages are below either of the wander packages in the list.
AI processes the package list from top to bottom, so be sure to keep the wander packages at the bottom.  Because they have no conditions (such as time or duration), the AI will always choose one of them, meaning that the NPC will never eat or sleep if those packages are below either of the wander packages in the list.


Anonymous user

Navigation menu