Guest Donkey Posted July 21, 2011 Posted July 21, 2011 This is my own tutorial. You must first have created an npc read Geck tutorial on how to create an npc. just double on the NPC that the npc tab would show up. Now we shall first create the AI package so go to tab that is called: AI Packages: Since this is a new npc it should have any packages if it does remove them right click mouse button anywhere near the white screen where it says AI packages list and click on new Name your package: aaTestFemaleSits Click on package type and select sanbox: The first thing you would see is the allowed ai behavior click what you think is desireble and make sure to click on the tab called Near editor location and select Near Reference and select playerRef(Player)from the tab menu. click on ok and type the radius you want the npc to operate in make it bit widely so it has some space to walk around or keep it near 500 so npc would not wander to far off. click on flags tick off enable fallout behaviour and select what you want it to do like random conversation so they can talk to other npc wandering zround. Click on Conditions This is important one. right click again and click on new. The first option is GetIsID witch is good click on functions parameter and scroll till you see the npc you just created mine was aaTestFemale and hit on ok. now right click again this time look for GetSitting and turn the value to 3.00 instead of 0 hit ok again. and click on ok you just settup the ai package for sitting. now click on ... after script it located 2 options under ID on the left side of your screen. click on ... to open the script tab click on Script on the left top side of the screen and click on new Remember the npc name since this is a test npc the script name is: scn aaTestFemaleScript short doOnce ref aaTestFemaleRef Begin gamemode reload if (player.GetSitting == 2) && doOnce != 1 aaTestFemaleRef.AddScriptPackage aaTestFemaleSits aaTestFemaleRef.evp endif set doOnce to 1 if (player.GetSitting == 4) && doOnce == 1 aaTestFemaleRef.RemoveScriptPackage aaTestFemaleSits aaTestFemaleRef.evp endif set DoOnce to 0 endif endif end make sure you have Script Type selected as Object script. Now save the script And make sure it is attacked to the npc you just created. This will make sure when the player sits the npc would start wandering around instead being an mindless zombie with no personality.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.