NPC Speed

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

NPC Speed

Postby Bayn on Tue May 18, 2004 3:36 pm

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!
Bayn
Sr. Oldbie
 
Posts: 791
Joined: Wed Aug 06, 2003 3:43 pm
Location: Occlo

Postby Caramon on Tue May 18, 2004 4:43 pm

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.
Caramon
Jr. Assistant Regular Poster
 
Posts: 63
Joined: Sat Feb 14, 2004 7:54 am
Location: Texas

Postby Bayn on Tue May 18, 2004 8:01 pm

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.
Bayn
Sr. Oldbie
 
Posts: 791
Joined: Wed Aug 06, 2003 3:43 pm
Location: Occlo


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron