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  Encounter Reset/Despawner Script
Author  Unknown and Mohobie
Submitted / Updated  04-09-2004 / 11-22-2006
Category  Area
Expansions  HOTU-1.62
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Includes  None
Description
I originally downloaded this script from NWVault. I have added what I consider to be a must to it and resubmitted it to help others. I would also like to thank AxeMurderer and shadguy from the bioware forums for helping. Overview: This script should be placed in an area's OnAreaExit The functions of this script are to remove all creatures that were spawned from an encounter when the area is deviod of PC's. It also resets all the encounters in that area so the next PC does not have to wait for the encounter timers. This is a simple to install script, and requires no modifications to work properly. Simply place the script in EVERY areas OnAreaExit. Users wishing to install this script into a NWN version other than HotU 1.62 should use a copy/paste of the code to install.

Files

NameTypeSizeDownloads
Unknown_and_Mohobie1081526243562SM_OnAreaExit.zipUnknown_and_Mohobie1081526243562SM_OnAreaExit.zip
Submitted: 04-09-2004 / Last Updated: 04-09-2004
zip2.37Kb328
--
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
No Images




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

Posted by Sylvaro DarkWing ( 24.231.xxx.xxx ) at 2005-05-05 13:54:45    
Works like a charm.
My thanks to you and whomever the original scripter was. This was exactly what I needed.

Posted by Mohobie at 2004-04-16 18:15:35    Voted 10.00 on 04/16/04
A vote for myself....lets see......uh 10!
_________________________
Shadow Mountain & Shadow Mountain 2: Riparia
Link

Posted by Mohobie01 ( ..xxx.xxx ) at 2004-04-14 19:20:00    
;)

Posted by besalope at 2004-04-14 15:02:00    
after some testing, the script does indeed work. Bioware must have changed the SetEncounterActive() function with Hordes at the v1.6 Sorry about before, didn't know that Bioware had changed the function.
_________________________
-I pwn n00bs-

Posted by Mohobie01 ( ..xxx.xxx ) at 2004-04-13 14:06:00    
Bah it seems my spelling is off but you get the point. I did want to add, that it is possible still for a encounter spawned creature to follow you through a transition before the script removes it. I have been useing this script for some time now and I have seen this happen only a few times, however I like the randomness of that. It's purely a timing thing. If the creature changes areas before the script catchs up to them, they are not removed. However they can be removed by any area useing this OnExit script.

I'm no wonderfull scripter, but this was a pretty asic and universal fix for my problem. Anyone wishing to see that the code does actually work can join Shadow Mountain PW(Located under PW Action).

Posted by Mohobie01 ( ..xxx.xxx ) at 2004-04-13 14:06:00    
Bah it seems my spelling is off but you get the point. I did want to add, that it is possible still for a encounter spawned creature to follow you through a transition before the script removes it. I have been useing this script for some time now and I have seen this happen only a few times, however I like the randomness of that. It's purely a timing thing. If the creature changes areas before the script catchs up to them, they are not removed. However they can be removed by any area useing this OnExit script.

I'm no wonderfull scripter, but this was a pretty asic and universal fix for my problem. Anyone wishing to see that the code does actually work can join Shadow Mountain PW(Located under PW Action).

Posted by Mohobie01 ( ..xxx.xxx ) at 2004-04-13 13:58:00    
besalope, this code is currently being used in a Persistant world and functions accordingly. try it before you say it don't work.

Create 2 areas give them a link(door...etc) place this script in an areas on exit. Add an encounter with a high respawn timer. now test the code by walking balk and forth between the 2 areas. each time you enter the room with the encounter it will be triggered.

I can however say I have not tried this before version 1.61 so it may not have functioned properly before that. But honestly please try it before ya post.

Posted by besalope at 2004-04-13 10:59:00    
err... "reactivate" stupid spelling...
_________________________
-I pwn n00bs-

Posted by besalope at 2004-04-13 10:34:00    
You can't reset encounters by setting them active. I tried this long ago, and to no avail.

A way that might work is to have the encounters be single spawn. When there are no PC's in the area, have the script set the encounter to having spawned 0 times then have it reactive it.


if(GetObjectType(oObject) == OBJECT_TYPE_ENCOUNTER)
{
SetEncounterSpawnsCurrent(0, oObject);
SetEncounterActive(TRUE, oObject);
}

I haven't tested this, but it might work
_________________________
-I pwn n00bs-

Posted by Mohobie01 ( ..xxx.xxx ) at 2004-04-10 18:46:00    
Gawd I hate all the different passwords here. Anyways if ANYONE knows who originally wrote this I'd like to update it with his/her name, as its mostly not my work.

Mohobie

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 Visual Effects


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