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  Crime Witnessing System
Author  Matthew Farhat
Submitted / Updated  02-06-2009 / 05-18-2009
Category  Scripting routines
Expansions  NWN-1.66
Format  Module and Code
Type  Type - Player State Tracking
Includes  Custom
Description
*
Free and Open Source Code:
Anyone may copy, use, and redistribute the code contained herein without restriction implied or otherwise.

Limitation of Liability:
The author of this code can't be held liable for any results pursuant to the use of code whether expected or unexpected. Including any disputes arising from third parties about the usage by the user of the code; if by circumstance of dispute regarding proprietorship a lawsuit arises then the author of this code can't be held liable for any expenses or losses incurred by users of this code(royalties, etc arising from resolution of dispute).
*/


Utilizes OnPerception event to trigger combat between a designated guard type NPC
conditional upon the nearby presence of NPC witnesses of hostile actions such as
killing and stealing. Also, if one witness perceives another witness with whom
has witnessed an event outside of the first witnesses domain of perception then
the witnessed crime is passed along to the newly encountered witness.

To use this demo, I recommend using a premade character such as Damien One-Knife
and using pickpocket on the NPC named Pickpocket Me. Upon a successful pickpocket
you should notice that a message is displayed for each of the 4 nearby witnesses.
To the north is another witness and a guard. If you run to the north immediately
after the successful pickpocket you shouldn't be attacked by the guard(as long as
you didn't kill anyone) because none of the observing witnesses are close enough
to alarm the guard. Next, I recommend running back to the NPC "Pickpocket Me" and
triggering the orb item which was created on your PC at startup. The item will
give one of the witnesses the command to run to where the 5th witness and guard
are standing then to run back to the original position. Once the witness returns
you can run north again, and the guard should attack you. The message of the crime
observed has been transferred from the witness who ran north to the witness who
is standing next to the guard.

Files

NameTypeSizeDownloads
mf_witv4.zipmf_witv4.zip
Submitted: 02-06-2009 / Last Updated: 05-18-2009
zip86.63Kb133
4th version. Witnesses transfer crime information to other witnesses using the OnPerception event of the witness receiving the information and a timestamp for keeping track of when the crime log of a NPC has been modified. Corrected a timestamp bug from version 3.
mf_wit.zipmf_wit.zip
Submitted: 02-06-2009 / Last Updated: 02-06-2009
zip64.24Kb160
Demo Module.
SCORE OUT OF 10
9.5
2 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
No Images




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

Posted by matthewf978 at 2009-02-10 18:44:04    
Uploaded version 2 which uses OnPerception events of witnesses to transfer crime logs from one NPC to another using timestamps for reducing the computational power necessary to perform the task. An orb item is given to the PC at startup which will force one of the NPCs to move to the far witness and guard to the north to transfer the pickpocket crime witnessed.

Posted by Ron Fred at 2009-02-10 11:45:31    Voted 9.00 on 02/10/09
I would like to use this in my works. Thank you for your time and effort.

__________________________________
How far down does this rabbit hole go?

Posted by matthewf978 at 2009-02-10 09:12:16    
Good point. Yes, it would be practical for the witnessers to attempt to relay their observations immediately upon witnessing the crime. I will include such a feature in the near future. A guard who might be labeled as a witnesser might not be within the proximal radius to detect the crime, but might receive the message through a sort of peer-to-peer network throughout the zone. Interesting, thank you. I think I will include a flag for each witnesser that specifies whether or not the witnesser will relay the message immediately(is the witnesser close enough to the guard to avoid danger from the relaying of the message).

Posted by Saduj at 2009-02-08 00:05:18    Voted 10.00 on 02/06/09
other ideas are to have npc's shout "stop thief!" etc, perhaps a GetLocalString() variable :)
_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

Posted by matthewf978 at 2009-02-07 06:30:48    
You mention good applications of witnessable crimes. In order to implement with bashing chests and doors, all that would be necessary is
#include "mf_wit_ondistuin"

and a call to

notifyWitnesses(oDisturber);

within the OnDamaged event of either chest, door, or whatever placeable desired.

Posted by Saduj at 2009-02-06 23:53:58    Voted 10.00 on 02/06/09
Works as advertised!

Suggestions : Detect bashed and failed pick lock on chests, doors, and other allied items...

An "on perception" to check for stolen items based on spot or search might be cool as well :)
_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

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 Other


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