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  Trap Scripts for CEP Trap Placeables
Author  Stefan Grose of Faerun Nights
Submitted / Updated  04-14-2004 / 11-22-2006
Category  Placeable Item
Expansions  NWN-1.62
Format  Code Only
Type  Type - Traps (Subtype - Other)
Includes  None
Description
A trigger with a script on its OnEnter and OnExit events that control a CEP Placeable trap. The trigger utilizes local variables to allow for flexibility. The following parameters can be configured on the trigger: CEP Trap Placeble Tag TrapDC DamageType Knockdown (T/F) Sound MaxDamage MinDamage TrapResetTime DeactivateTime IncludeNonPC (T/F) ContinuousDmg (T/F)(until PC exits the trigger - for traps like Blade Whirl) Note: These scripts were designed for a generic trigger that activates/deactives the placeable trap, it was not designed for a 'trap trigger'. And although, it can be used with a 'trap trigger' (move the OnEnter script from the OnEnter event to the OnTrigger event), the trap will not be reset after a disarm or recover. Version 2 updated on 4/16/04 at 1700GMT that includes a parameter to allow the trap to be 'hidden' prior to being triggered. Not sure how quickly my update is made available on the vault.

Files

NameTypeSizeDownloads
CEPTrapTrgrv2.rarCEPTrapTrgrv2.rar
Submitted: 04-14-2004 / Last Updated: 04-16-2004
rar5.61Kb1109
--
SCORE OUT OF 10
10
3 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 (22):

Posted by magobargle at 2011-09-04 19:32:17    Voted 10.00 on 09/04/11
Well done!
I become crazy with these traps, until I found your scripts. they works perfectly.
I made only a very little modification: if the trigger is large and in the case that trap was hidden at the begin, it may spawn far from the PC, so I've simply changed "OBJECT_SELF" with "oPC" on this line:

oTrap = CreateObject(OBJECT_TYPE_PLACEABLE, GetLocalString(OBJECT_SELF, "TrapResRef"), GetLocation(OBJECT_SELF));

sorry for my eng and ty for your work.

Posted by Vigiler at 2010-05-31 08:30:48    Voted 10.00 on 05/31/10
Great! Thanks!

Posted by maledictae at 2007-02-07 11:07:58    
Hey there,

I just added the scripts and such and all the animations work fine. My problem lays in the fact that once activated, no damage happens. I have looked at the damage for one of the traps and it is set to min 50 max 100. Any suggestions as to why the damage is not affecting the players?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 13:37:38    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 13:37:38    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 06:06:59    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 06:06:59    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 06:03:08    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Evro ( 66.245.xxx.xxx ) at 2005-08-13 06:03:08    
This works perfectly as designed when placed on a generic trigger, however, when I put it in the onTrapTriggered event of a Trap trigger, it does nothing at all for me. Any suggestions?

Posted by Kalibos at 2005-02-03 06:16:00    
Well, I finally got everything with the trigger to work except 1 (or 2 depending on how you look at it) thing. The trigger causes me to fall down, I take the damage, I say argh, and the sound plays, but the animation does not play. I am using the default cep trap placeables (including the default tags and resrefs) without changing tags and such as suggested on the bioware forums. I have tried also to use a placed traps placeable and also to use the hidden variable in the trigger. Please help with this as my PW needs this for the area I am working on. Thank you in advance.

Posted by Kalibos at 2005-02-03 06:16:00    
Well, I finally got everything with the trigger to work except 1 (or 2 depending on how you look at it) thing. The trigger causes me to fall down, I take the damage, I say argh, and the sound plays, but the animation does not play. I am using the default cep trap placeables (including the default tags and resrefs) without changing tags and such as suggested on the bioware forums. I have tried also to use a placed traps placeable and also to use the hidden variable in the trigger. Please help with this as my PW needs this for the area I am working on. Thank you in advance.

Posted by darksus at 2004-10-29 15:28:00    
All works great, except one thing.
Cant get the sound to work. Does the variable need to be the actual sound file name, or the tileset sound set tag...(a group of sounds possibly).

thanks
Chris

Posted by TriggerFinger ( 217.95.xxx.xxx ) at 2004-07-16 18:50:00    
A hint: To have a hidden trap appear in the middle of its trigger, you have to start the trigger's polygon where the middle should be.

Posted by Anonymous ( 68.112.xxx.xxx ) at 2004-06-21 14:26:00    
Script works fine how do I get the animations to work tho? IE the pendulm blade trap it doesnt swing down when I walk over the trigger.

Posted by Guest ( ..xxx.xxx ) at 2004-05-15 13:27:00    
Any chance someone could put up a ZIP version of this please?


Posted by Reandel ( 80.81.xxx.xxx ) at 2004-05-02 03:44:00    
Could you please tell me how I can change the damage for these traps? I would like to make boulder trap to inflict more damage, than the "usual" one.

Posted by Trelantris at 2004-04-18 10:42:00    
Amen, Anonymous.... Sounds good tho, Stefan Grose. I'll post a vote later, after testing them out (as well as comments :)Chaos Reigns down on your head every day, what say you to that?

Posted by Venture at 2004-04-18 09:52:31    Voted 10.00 on 04/18/04

_________________________
NWN Campaigns - the NWN/NWN2 Campaign Database
Naeldor Weekly Campaign

Posted by StefanGrose at 2004-04-16 10:20:00    
Just posted an update (4/16/04 at 1700GMT) that includes a parameter to allow the trap to be "hidden" prior to being triggered (also will be "hidden" upon trap deactivation).

Not sure how quickly the update is made available on the vault after I upload my update.

Posted by StefanGrose at 2004-04-16 08:53:00    
In case this wasn't made clear. I did not develop the trap placeable, just a trigger and a couple of scripts to control the trap.

Posted by NF at 2004-04-16 04:48:00    
Great job Stefan...you just forgot to mention that we will use this system in Faerun Nights....

Cheers,

Nightfall

Posted by Anonymous ( ..xxx.xxx ) at 2004-04-16 00:03:00    
Nice...
Love the traps in CEP, a whole new flavor.
It's too bad its resetting.
Real PW Minded traps and Lootable Chests have been an endless quest since day one.

Good work though.


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 UI


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