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  Alignment Only Area
Author  Gods Profits
Submitted / Updated  10-18-2003 / 11-22-2006
Category  Area
Expansions  Works on all versions
Format  Code Only
Type  Type - Other
Includes  BioWare Standard
Description
This makes it so that only 1 alignment (good/evil/neutral) can enter an area the others are transported out. SEE README. (Currently set on evil only)

Files

NameTypeSizeDownloads
GodsProfits019475.zipGodsProfits019475.zip
Submitted: 10-18-2003 / Last Updated: 10-18-2003
zip0.94b586
--
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 (8):

Posted by Thamoir Amanodel ( 80.41.xxx.xxx ) at 2004-09-25 06:24:00    
// Sting I think i know what is wrong with your script if waht you put below is exactly what you typed...


void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_NEUTRAL))/* change this to good or neutral to let only good or neutral into that area */
{
oDeny = GetWaypointByTag("WP_tempofneutonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}
//Here you are simply missing the last } put it in and the script should work, yes you will have one two lines with } one to end if and one to end main body

That is my script I put in. The error message is:

PM: Error. 'tempofneutonly' did not compile.
tempofneutonly.nss(16): ERROR: UNEXPECTED END COMPOUND STATEMENT

Indicating this line:

" }"

Also, I did this for another temple:

void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL))/* change this to good or neutral to let only good or neutral into that area */
oDeny = GetWaypointByTag("WP_tempofevilonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}

Error message said:

PM: Error. 'tempofevilonly' did not compile.
tempofevilonly.nss(9): ERROR: VARIABLE DEFINED WITHOUT TYPE

It was indicating this line:

" oDeny = GetWaypointByTag("WP_tempofevilonly");"

Those are the valid WP tags. Help please?

// The problem is you did not declare oDeny as an object, you need to insert this line at the beginning, after object oPC = GetEnteringObject();

object oDeny

that should resolve your problems, let me know (e-mail) if this works

Posted by StingTheKiller at 2004-07-06 13:13:00    
Oh, and also, I forgot to mention. Was there a way to include this script into it, so that they both work together?

void main( )

{

ExploreAreaForPlayer(OBJECT_SELF,GetEnteringObject());

}

Thanks

Posted by StingTheKiller at 2004-07-06 13:11:00    
Like the post below me, I'd prefer it to be a door or something so they don't have to load the temple and then reload the previous area.. but I am having problems with a few things. (Btw, I'm no scripter, don't laugh at me)

void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_NEUTRAL))/* change this to good or neutral to let only good or neutral into that area */
{
oDeny = GetWaypointByTag("WP_tempofneutonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}

That is my script I put in. The error message is:

PM: Error. 'tempofneutonly' did not compile.
tempofneutonly.nss(16): ERROR: UNEXPECTED END COMPOUND STATEMENT

Indicating this line:

" }"

Also, I did this for another temple:

void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL))/* change this to good or neutral to let only good or neutral into that area */
oDeny = GetWaypointByTag("WP_tempofevilonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}

Error message said:

PM: Error. 'tempofevilonly' did not compile.
tempofevilonly.nss(9): ERROR: VARIABLE DEFINED WITHOUT TYPE

It was indicating this line:

" oDeny = GetWaypointByTag("WP_tempofevilonly");"

Those are the valid WP tags. Help please?

Posted by StingTheKiller at 2004-07-06 13:11:00    
Like the post below me, I'd prefer it to be a door or something so they don't have to load the temple and then reload the previous area.. but I am having problems with a few things. (Btw, I'm no scripter, don't laugh at me)

void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_NEUTRAL))/* change this to good or neutral to let only good or neutral into that area */
{
oDeny = GetWaypointByTag("WP_tempofneutonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}

That is my script I put in. The error message is:

PM: Error. 'tempofneutonly' did not compile.
tempofneutonly.nss(16): ERROR: UNEXPECTED END COMPOUND STATEMENT

Indicating this line:

" }"

Also, I did this for another temple:

void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL))/* change this to good or neutral to let only good or neutral into that area */
oDeny = GetWaypointByTag("WP_tempofevilonly");

AssignCommand(oPC, JumpToObject(oDeny));

return;
}

Error message said:

PM: Error. 'tempofevilonly' did not compile.
tempofevilonly.nss(9): ERROR: VARIABLE DEFINED WITHOUT TYPE

It was indicating this line:

" oDeny = GetWaypointByTag("WP_tempofevilonly");"

Those are the valid WP tags. Help please?

Posted by tom135235 ( 81.241.xxx.xxx ) at 2004-05-31 04:18:00    
Hey, nice script.

Can you also change the script so that if you click on a door (church) it does an alignment check before you enter the area ?

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

Posted by Gods Profits ( ..xxx.xxx ) at 2003-11-23 05:43:00    
the text*

Posted by Gods Profits ( ..xxx.xxx ) at 2003-11-16 13:54:00    
Actuly i was wrong this text does work, change it to what ever you want.

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 Scripts


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