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  NO SHOW HELMS(subrace compatiable)
Author  Baragg
Submitted / Updated  08-07-2009 / 08-10-2009
Category  Scripting routines
Expansions  Works on all versions
View Code  

Select All Text | View Code in separate window
Format  Module and Code
Type  Type - Other
Includes  BioWare Standard
Forums  Link
Description
No Show Helms(subrace compatiable) Notes

This system will allow a player to show their head instead of their helm, and still benefit from
the effects of the helm. By activating the included widget, their helm is moved to their inventory
and the itemproperties of it copied to their player skin. If the itemproperty is a "Cast Spell"
itemproperty it will be copied to the widget, and thereby be castable.

Equipping any helm after activating the widget will in effect remove the itemproperties applied by
this system. This is accomplished by saving the players skin before combining the itemproperties
from the helm with any that may be existant upon the skin. Then returing that skin to the players,
skin slot when a helm(any) is equipped. Another copy of the skin is databased after the itemproperties
are combined, this skin is used only if a player logs out after having activated the widget,
but not having put a helm on before logging off. This "second" databased skin, is called by the on
client enter of the module.

Two databases per pc are created and at the right time destroyed in this system. They are:

1) GetName(oPC)+GetPCPublicCDKey(oPC)+"CLNHELM"
used to store the skin before combining itemproperties

2) GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM"
used to store the skin after combining itemproperties


TO ADD THIS TO A MODULE THAT HAS NO CUSTOM SCRIPTS IN THE MODULE LEVEL HANDLES:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Import the erf, add "helm_pc_equip" as your modules OnPlayerEquip script.
Add "helm_pc_mod_ent" as your modules OnClientEnter script.
Compile your module(twice)
Save.
The no show helm widget will be found under:
Items -- Custom -- Misc -- Other
You should be done!
Grats.


TO ADD THE MODULE LEVEL SCRIPT REQUIREMENTS TO YOUR ALREADY EXISTING CUSTOM SCRIPTS:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Module Level Script Adjustments:

PLAYER ON EQUIP HANDLE:(I saved the updated version of the default as "helm_pc_equip")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I added the include "helm_prop_inc" to the default script, then added a call to get the
type of item equipped, and a call to retrieve a campaign int.

The calls are:
int nType = GetBaseItemType(oItem);
int nSkinCheck = GetLocalInt(GetItemInSlot(17, oPC), "HELMSET");

In the body of the script I added these checks:
if(nType == 17)
{
if(GetCampaignInt(GetName(oPC)+GetPCPublicCDKey(oPC)+"CLNHELM", "HELMSET") == 1)
{
HelmRetrieveSkin(oPC);
}
}

ON CLIENT ENTER:(I saved the updated version of the default as "helm_pc_mod_ent")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX
I added the include "helm_prop_inc" to the default script.

Then added:(as the last thing called by this script)
DelayCommand(4.0, HelmClientEnter(oPC));

This was to be an update of my NO SHOW HELMS QUICK system, but grew to be its' own. Link

Files

NameTypeSizeDownloads
NO_SHOW_HELMSsubrace_compatible.7zNO_SHOW_HELMSsubrace_compatible.7z
Submitted: 08-07-2009 / Last Updated: 08-07-2009
7z19.89Kb113
This is just the module, it has a little test area with a skin stripper to allow perusal of the skin, and a placeable which can be used to "fake" some subrace itemproperties on the player skin. Of course there are helms, and widgets available for testing. The 7zip decompression tool can be found at www.7zip.com
NO_SHOW_HELMSsubrace_cmpatiable.7zNO_SHOW_HELMSsubrace_cmpatiable.7z
Submitted: 08-07-2009 / Last Updated: 08-07-2009
7z34.43Kb203
This file include the module, an erf and the read me that can be seen as the description above.
SCORE OUT OF 10
10
5 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 (29):

Posted by commche at 2011-05-09 10:54:45    Voted 9.75 on 05/09/11
Good Stuff.
_________________________
Modules:
Shadows of Darkmoon
The Arena of Champions
Dragon's Bane
Scripts:
Random Loot Generation System v1.0
Supernatural Subrace System
PW Monk-speed balancer

Posted by Baragg at 2010-09-21 10:19:36    
Workin on this to update it so that if there is not enough room in their inventory for the helm or the skin, then a message will be sent to them and the system will dead end.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2010-04-24 19:51:54    
Still watchin here.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2010-03-24 15:05:08    
I have updated my NonSubrace Compatible system to have an inventory check to insure the helm does not drop to the ground. I am currently busy with a system for another builder when done with that I will update this system to include inventory checks.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Idida Cheektawaga at 2010-03-03 15:13:22    Voted 10.00 on 03/03/10
Kudos Baragg. well done.

Posted by Atrium_XP at 2010-03-03 08:13:31    Voted 10.00 on 03/03/10
Awesome work!

Posted by Baragg at 2009-12-10 05:38:21    
From fredseeker at 2009-11-23 23:43:30
Q:If I use this then I do not need the old No-Helms?
A: No you do not need the old sys.

Q:The skin is is still applied if the character's inventory is full?
A: sorry no if the char inventory is full the skin will fall to the ground. and the helm will also. I had thought to add a check to insure the pc inventory had space but thought of it after the system was posted. I am reinstalling NWN to my puter and may, I say may give that a go. But, I really don't know that I should update it as such, if yall would like such a thing let me know.


_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-12-10 05:33:35    
[q]Some ?s about this. I have cep 2.1 installed, on all expansions game 1.69. I use shayans subs, (newest). I have experienced several issues and was just curious.

1. does is keep the AC (or can it be setup to keep it?

2. I have multiple skins remaining in inventory, starting when the helm is swapped out. So, I wear a helm, then activate the widget, then it comes off. When I go to place another one on, or even if the original helm is put back on, I get a skin in inventory. From this point on, each and every time a new skin joins the ranks of my inventory.

3. I made a helm that had two spells, one twice a day, the other unlimited, and neither were available on the widget for use.

Can anyone out there who has used this touch a bit on those questions ?

I have imported the erf and taken the script sections from the two module files, I'm sure that's not the issue.

Thanks[/q]

Once I have NWN back up and running we will get these all addressed, and thanks for the intrest in my system.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-12-10 05:30:32    
I just sent an email to you with an answer with your question here is the solution I have come up with as to the Shayan thing so far:


if(GetIsSubraceApplied(oPC))//---
{//this would tell us that the subrace has been applied to the pcskin
if(GetCampaignInt(GetName(oPC)+GetPCPublicCDKey(oPC+"POSTHELM",HELMSET"))
{//this would tell us the helm bonus was applied to a subrace applied //skin
oHelmSkin = RetrieveCampaignObject(GetName(oPC)
+GetPCPublicCDKey(oPC+"POSTHELM","PC_BUFFSKIN", lP, oPC, oPC);
DestroyObject(oSkin, 0.0);
AssignCommand(oPC, ActionEquipItem(oHelmSkin, 17));
DestroyCampaignDatabase(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM");
}
else
{//this else tells us the helmprops have not been applied to a subrace updated skin
//Apply the Shayan subrace skin here
//because the subrace has been applied but not the helmprops
}
}
else
{//this tells us the subrace props have not been applied to this pc
if(GetCampaignInt(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM", "HELMSET"))
{//doin this would tell us the helm bonus was applied to a nonsubrace applied skin
oHelmSkin = RetrieveCampaignObject(GetName(oPC)
+GetPCPublicCDKey(oPC+"POSTHELM","PC_BUFFSKIN", lP, oPC, oPC);
DestroyObject(oSkin, 0.0);
AssignCommand(oPC, ActionEquipItem(oHelmSkin, 17));
DestroyCampaignDatabase(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM");
}
//In the event we pass the above calls without a skin being applied it is determined that
//no skin subrace or helm properties have been applied to the player skin
}

You could also have that as a single func as so, this is with the assumption that the following are defined prior to the new function being called

lP as location of the pc
oPC as the player char
oSkin as the skin currently on the PC when entering the module
ALSO any other definitions Shayans would need

void MYWORLDENTERSKIN(object oPC, location lP);
//this simply makes it so that a funciton will show in the right hand listing

void MYWORLDENTERSKIN(object oPC, location lP)//I would change MYWORLD to your world name
{
if(GetIsSubraceApplied(oPC))//---
{//this would tell us that the subrace has been applied to the pcskin
if(GetCampaignInt(GetName(oPC)+GetPCPublicCDKey(oPC+"POSTHELM",HELMSET"))
{//this would tell us the helm bonus was applied to a subrace applied //skin
oHelmSkin = RetrieveCampaignObject(GetName(oPC)
+GetPCPublicCDKey(oPC+"POSTHELM","PC_BUFFSKIN", lP, oPC, oPC);
DestroyObject(oSkin, 0.0);
AssignCommand(oPC, ActionEquipItem(oHelmSkin, 17));
DestroyCampaignDatabase(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM");
}
else
{//this else tells us the helmprops have not been applied to a subrace updated skin
//Apply the Shayan subrace skin here
//because the subrace has been applied but not the helmprops
}
}
else
{//this tells us the subrace props have not been applied to this pc
if(GetCampaignInt(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM", "HELMSET"))
{//doin this would tell us the helm bonus was applied to a nonsubrace applied skin
oHelmSkin = RetrieveCampaignObject(GetName(oPC)
+GetPCPublicCDKey(oPC+"POSTHELM","PC_BUFFSKIN", lP, oPC, oPC);
DestroyObject(oSkin, 0.0);
AssignCommand(oPC, ActionEquipItem(oHelmSkin, 17));
DestroyCampaignDatabase(GetName(oPC)+GetPCPublicCDKey(oPC)+"POSTHELM");
}
//In the event we pass the above calls without a skin being applied it is determined that
//no skin subrace or helm properties have been applied to the player skin
}
}


THE ABOVE SHOULD with a minor bit of tweakin to add the Shayans stuff give you a func that you could add to the end of your onclient enter that would look as such:::


//Main body of script///
{
///more scipting blah, blah blah//////
MYWORLDENTERSKIN(oPC, lP);//this called last will apply proper skin
}

I appoligize for my long delay I had become a bit despondant as to NWN, and have recently gotten custody of my daughter. One lead me to complacency and the the other to wonderous distraction. I am workin now to reinstall NWN and get this snafu answered.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Scripting with Chaos at 2009-11-30 14:27:56    
Just took your module (from above) and put her online under a different name, to test. I don't receive skin errors such as keeping them in inventory, but I do have my subrace skin data removed, so thus losing all of the initial bonuses.

Does anyone else out there have any words for what they had to do to get the cast spell properties to work, and keep shayans subrace skins, or to reapply em ? Do I need to make a call for that myself ?

Posted by Scripting with Chaos at 2009-11-30 14:08:17    
Some ?s about this. I have cep 2.1 installed, on all expansions game 1.69. I use shayans subs, (newest). I have experienced several issues and was just curious.

1. does is keep the AC (or can it be setup to keep it?

2. I have multiple skins remaining in inventory, starting when the helm is swapped out. So, I wear a helm, then activate the widget, then it comes off. When I go to place another one on, or even if the original helm is put back on, I get a skin in inventory. From this point on, each and every time a new skin joins the ranks of my inventory.

3. I made a helm that had two spells, one twice a day, the other unlimited, and neither were available on the widget for use.

Can anyone out there who has used this touch a bit on those questions ?

I have imported the erf and taken the script sections from the two module files, I'm sure that's not the issue.

Thanks

Posted by fredseeker at 2009-11-23 23:43:30    
If I use this then I do not need the old No-Helms?
The skin is is still applied if the character's inventory is full?

Posted by Baragg at 2009-10-12 06:23:57    
Very nice to see this is not having problems.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-09-18 06:22:57    
I am happy there are still no problems arising with this lil system.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-09-08 15:50:42    
Very happy to see the downloads going up and the problems still none existent.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-09-04 12:05:47    
Once again, I am happy there are no issues to resolve with this so far. I would like to point out that if anyone wants to tweak/redistribute this do so without regard to myself. I would rather see the work move forward and onward than my name be known.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-30 10:06:20    
Yes, I am still keeping an eye on this, and very happy to know that people are not having any difficulties with it. As a side note this will work even if there are no "subrace" or other itemproperties applied to the skin by other systems.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-24 15:58:09    
I am still ecstatic to see no one is having a problem with this.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-19 21:32:52    
22 downloads and no complaints. I musta did a decent job on this one.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-15 05:27:27    
Very happy to see no one has a problem.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-12 06:11:46    
Glad to see this is making it out the door.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-11 06:12:34    
As a side note this system should also work well without subrace/other itemproperties applied to the skin from other scripts.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Tyndrel at 2009-08-10 10:49:41    Voted 10.00 on 08/10/09
Even better!!!
_________________________
All the thanks the designer gets is your vote, please use it.

Of Time and Death's Feast Link ~ Leybury Link ~ Shadow Mountain PW Link ~ CEP Skybox Reference Link ~ 1.69 Texture Reference Link

Posted by Baragg at 2009-08-10 10:47:38    
Just a note, you dont need the block of code above, it is the include which is in the erf. I posted it so that it may be perused before hand. So, just ignore those [url] [/url] things, if you do copy the above block of code you would do well to remove them.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-10 10:23:33    
I copied my code from above, pasted to a notepad, removed the [url] and [/url] stuff updated and they remained so I will assume this is related to posting it there. It appears only to effect the switch/case statements.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-10 10:18:45    
Glancing over my code in the block of code above I see [url] somehow got into my code. I did not put that in there and will move to rectify that.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Baragg at 2009-08-10 10:15:25    
Thank you if you have need of assistance with this, please post here, I will be checking this page for a while yet to insure this is pleasing.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

Posted by Saduj at 2009-08-09 22:05:56    Voted 10.00 on 08/09/09
Neat!
_________________________
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 Baragg at 2009-08-09 19:02:30    
Excellent.
_________________________
Doing it the only way I know how, the Hardway!

No Show Helm Link

No Show Helms Subrace Compatible
Link
-------------------------------------------

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 Original Hakpaks


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