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 OTHER

- Jump to comments -
Title  Portal Lock
Author  Warlock
Submitted / Updated  09-29-2009 / 10-01-2009
Category  Other
Format  Txt File
Description
I came up with this script while i was building my Mod, not sure if there is any others out there that have this or not. It is a script that allows a PC to use a placeable as a port to another location designated by the WP_ tag and uses a key tag to use the placeable, if no key then can't port. As for the wp_ tag you will need to change that for your specific wp_, and not use mine, unles you want to create a wp_ with that tag on it. Now for the object just take the object you want to use and put that tag in place of the one i have and it will work perfect everytime.

Files

NameTypeSizeDownloads
updates_Portal_Lock.txtupdates_Portal_Lock.txt
Submitted: 09-29-2009 / Last Updated: 10-01-2009
txt0.96b95
--
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 (6):

Posted by Warlock_tm-1 at 2009-10-01 05:43:48    
Ok there is an updated file took out the (oTarget) as yes not needed, it only needed to unlock the placeable object with the key, it was created for a seceret order on my Mod, and only used for certain players, but i guess it could be used for other applications as well.

Posted by Warlock_tm-1 at 2009-10-01 05:20:14    
Well as for the WP_ tag it is one that i use it is to be changed to the WP_ tag you designate. The huminoidcage is the placable object that i use in my Mod also needs to be changed to the oject tag you want to use, sorry i guess i should put that in the description. I know you can use it for multiple keys but this script is made for each of my players specifically with thier own key, asked for by them. Thank you for the vote and comments, i will clarify in the description, better. Thank you all

Posted by Saduj at 2009-09-30 00:52:55    Voted 10.00 on 09/30/09
Here's a version of same idea, that checks for multiple keys, and has var for Locked feedback, as well as a default const string ...

Feel free to use or modify as you wish :)

// Script keyed_portal.nss
//
// Notes:
// Portal with optional multiple keys.
// Teleports to "WP_" + Tag of calling object.
// Checks for local string vars "KEY1" "KEY2" "KEY3" etc...
// If key string exisits, but item not found,
// calling object says string var LOCKED or const sLocked.
// If KEY1 not specified then functions as a normal portal.

const string sLocked = "*Locked*";

void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;

object oTargetWP=GetWaypointByTag("WP_"+GetTag(OBJECT_SELF));
if (oTargetWP==OBJECT_INVALID) return;

location lTarget=GetLocation(oTargetWP);

string sSayLocked = GetLocalString(OBJECT_SELF,"LOCKED");
if (sSayLocked == "") sSayLocked = sLocked;

int iKeyIndex = 1;
string sKeyVar = "KEY"+IntToString(iKeyIndex);
string sKeyTag = GetLocalString(OBJECT_SELF, sKeyVar);

while (sKeyTag!="")
{
if (GetItemPossessedBy(oPC, sKeyTag)== OBJECT_INVALID)
{
SpeakString(sSayLocked);
//SpeakString("Debug: Var "+sKeyVar+" "+sKeyTag+" not found.");
return;
}
iKeyIndex++;
sKeyVar = "KEY"+IntToString(iKeyIndex);
sKeyTag = GetLocalString(OBJECT_SELF, sKeyVar);
}

AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}
_________________________
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 Saduj at 2009-09-29 22:06:43    Voted 10.00 on 09/30/09
another fix :)

AssignCommand(oPC, ClearAllActions());
_________________________
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 Saduj at 2009-09-29 21:39:51    Voted 10.00 on 09/30/09
also it looks like

object oTarget = GetObjectByTag("HumanoidCage");

is not required as oTarget is never used...
_________________________
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 Saduj at 2009-09-29 10:32:43    Voted 10.00 on 09/30/09
Nice idea but it doesn't teleport to "WP_"+Tag but only "wp_sabel"

You could make it more dynamic by use of GetTag() or GetLocalString() so this script could be used in more than one application...
_________________________
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 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