Talk:Basic NPC Creation Tutorial
Awesome tutorial, thanks for the help. Sockmonkeh 19:44, 4 April 2006 (EDT)
Indeed, this is an awesome tutorial. I have a question regarding the food note at the very bottom of the tutorial. If I don't give the NPC food, and their class is Thief, will they be likely to attempt to steal the food from somewhere else? I have a certain character in mind I'm working on in a project. Ranilin 01:01, 5 April 2006 (EDT)
Thanks for the feedback. Class has nothing to do with an NPC's tendency to steal, though a class with high sneak is much less likely to be caught. (thought it is fun to watch guards slaughter clumsy thieves) Instead, take any food out of the NPC's inventory, and give it a package to search for food. You may want to check the "always sneak" box when creating that package. The silver bullet you're looking for is the responsibility setting that I didn't really get into with the tutorial. A low-responsibility NPC is more likely to do certain things, most notably of which is stealing, and less likely to do things such as call the guards when witnessing a crime.
Hope this helps you out. JBurgess 10:03, 5 April 2006 (EDT) 10:03, 5 April 2006 (EDT)
Ah, yes, that does help. It also explains why I can't get a certain NPC I added to one of my bought houses to get food to eat (food didn't belong to her) without -1 food in her inventory. I found that setting responsibility higher made them less likely to oversleep, they go to bed on time, eat on time, etc. Makes their scripting easier to test for me.. but unless I expressly make the food theirs, they won't pick it up with 100 responsibility. :) Ranilin 15:19, 8 April 2006 (EDT)
How exactly do factions work? I right click on the list of factions but I don't have an option to add new factions. Is there something I'm missing?
--Dagit 01:50, 14 April 2006 (EDT)
Oh, I get it. You drag&drop the faction you want to add.
Height
Is there any way to control an NPC's height?
- You could try SetScale using a script.
here is a sample scrip
scriptname YYYY begin onload setscale x.x end
replace YYY with the name you desire and x.x with the height and you are good to go
- SickleYield 3 October 2006
Or you can just set the NPC's scale in the Construction Set. It's in the main screen popup you get right after you double-click on an object in the CS. It's there for characters, too, it's just only there when you've already placed them somewhere in a cell. WarKirby and Omegano's mods both use this method (over on tessource - Peragus and MyCastle) to create giant NPCs.
Packages
I have been experimenting with packages and I can't seem to get it to work right. I can get an NPC to do one thing but then nothing else. Example, I set him to sleep from 10pm to 6am and then eat from 6am to 7 am. He goes to sleep at ten but then he NEVER gets out of bed. Just lays there. Even if you talk to him he will get up talk to you and then lay beck down when the conversation is over. What am I doing wrong? -Phoenix7879
- Do you have the "Continue if PC near" box checked? This will cause the NPC to pretent being asleep until you leave his house.--JOG 03:40, 29 August 2006 (EDT)
That did it. Thanks! -Phoenix7879
SickleYield 3 October 2006
Eek. Zucklas Parnal's sex-oriented spamalinks deleted. Does that happen here a lot?
Bounding Box
Can I get a confirmation if the NPC's bounding (hit) box is hardcoded, or can it be modified?
Disappearance
I have spent a great deal of time making an NPC and a house for him. However, upon entering the house, the NPC fails to appear. The Npc was created from scratch, the level was originally a cave. the truly frustrating part is that i have placed a generic bandit in the house as well, and she appeared without issue. I have also placed the NPC on the overland map, and he appeared there with incident. It is only the NPC in his own house that refuses to appear. It is not the placement, as I have tried moving him repeatedly, nor it it the z coordinate, as he is standing several inches above the floor. I tried to run a havoc test in order to bring him to the floor, but he did not move. Any tips would be appreciated.