Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  Creature Easy Random Walk
Author  Tyson McCann
Submitted / Updated  07-17-2003 / 11-22-2006
Category  Creature Related
Expansions  Works on all versions
Format  Module and Code
Type  Type - Daily Routine
Includes  None
Description
This script is meant to take the place of ActionRandomWalk() in many circumstances, such as when you want a creature or NPC to behave more naturally. It belongs in the OnHeartbeat of any creature, and is completely customizable. You can: 1. set the percentage you want it to trigger on every Heartbeat. Default is a 30% chance every 6 seconds to walk to a random location nearby. 2. set the maximum random distance it is possible for a creature to walk (or run) to when the script fires. Default is a moderate 7 meters... or 7/10 of a 'square tile'. Might want to set it higher for running creatures. 3. give the creature a CHANCE to run instead of walk, on top of the chance for it to trigger at all. Default is a 7% chance to run to a random location - when the script fires. It's thoroughly commented and explains the simple steps in detail, right in the script. Changing the parameters couldn't be more easy.

Files

NameTypeSizeDownloads
CreatureEasyRandomWalk.zipCreatureEasyRandomWalk.zip
Submitted: 07-17-2003 / Last Updated: 07-17-2003
zip36.21Kb1454
--
SCORE OUT OF 10
10
1 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS





You Must Be Logged In to Participate.
Comments (6):

Posted by Ollone5 at 2011-09-18 23:35:12    
Да, хорошо!

Posted by HercNav ( 69.148.xxx.xxx ) at 2004-06-14 11:49:00    
I edited your script to include the ability to keep a creature within a certain area. I also made it impossible for the creature to wander off when in conversation. I emailed the update to your address listed above.

Posted by Old_Scores_Transfered at 2004-02-20 10:29:26    Voted 10.00 on 02/20/04
This is a compilation of the old system into a single score. There were 2 that made this score of 9.50 then rounded to 10.

Posted by Tyson ( ..xxx.xxx ) at 2003-07-24 20:55:00    
Thanks for the comments Lilac. I'll update the script this weekend with your suggestions. And to the question below, the ClearAllActions(); should go just before the AssignCommand(OBJECT_SELF, ActionMoveToLocation... when I update, I will just say ActionMoveToLocation. Don't know why I did it that way but it does look funky. At least it works. Anyone who downloads it, try the module before you use it. It works.

Posted by umm ( ..xxx.xxx ) at 2003-07-24 12:03:00    
Err..

The ClearAllActions should go where now?


Posted by Lilac Soul ( ..xxx.xxx ) at 2003-07-20 03:19:00    
I'm not 100% sure, but I think you should put in a ClearAllActions before starting the move to location. The move to location can get very easily interrupted if there's no straight path to the target location, and I'm not sure if the action queue will be cleared of the move action in that case. If it doesn't, then you'd get a crash after 75 heartbeats (well, the ones that pass the 30% chance, at least), unless something else clears it.

Also, You never ever need to AssignCommand(OBJECT_SELF. Nothing wrong with it, I just think it looks weird :)

Other than that, it all seems good and customizable. And should certainly work better than Bioware's ActionRandomWalk...

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Models


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters