Page 1 of 1

NPC Speed

PostPosted: Tue May 18, 2004 3:36 pm
by Bayn
I've been trying to set the run_speed on an NPC because it moves SO slow that I should rename it "turtle" or something.

In the npdesc.cfg file I added a run_speed param to the npc template with a value of 250. Didn't seem to make a difference, maybe some though. Next, in my custom script for this npc I specifically set the run_speed to 250 and it didn't make a difference.

I could have sworn my henchies move FAST, not this stumbling gait my npc has. It takes a step, pauses, takes another step.

I even set the dex for this npc to 100 and it didn't make a difference.

Any thoughts?

Thanks!

PostPosted: Tue May 18, 2004 4:43 pm
by Caramon
I think that is the default behaviour within the NPC script. Look in there to see how it behaves. Most NPC's use a different script based on what they are. For the merchants script, it is located in the pkg:npcs:townfolk:merchants section, and has a wanders parameter, then a delay between wanders. That delay is like 30 secs I think. Basically it is just wandering around the shop, then will walk home at a restock, and after 60 wander movements, will go to sleep for a bit. I am not sure what exactly you are trying to do here, but I hope that helps.

PostPosted: Tue May 18, 2004 8:01 pm
by Bayn
Aha! Thank you so much Caramon. I reduced the "wanders" from 10 to 5 and the npc is moving quite smartly now.
:)
I knew it had to be a delay somewhere but got frustrated and couldn't see the answer. My 'at's off to ye!


Caramon wrote:I think that is the default behaviour within the NPC script. Look in there to see how it behaves. Most NPC's use a different script based on what they are. For the merchants script, it is located in the pkg:npcs:townfolk:merchants section, and has a wanders parameter, then a delay between wanders. That delay is like 30 secs I think. Basically it is just wandering around the shop, then will walk home at a restock, and after 60 wander movements, will go to sleep for a bit. I am not sure what exactly you are trying to do here, but I hope that helps.