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  Enchanting
Author  Durgin
Submitted / Updated  06-23-2005 / 11-22-2006
Category  Scripting routines
Expansions  Requires All Expansions (SoU & HotU & CEP)
Format  Code Only
Type  Type - Other
Includes  Custom
Description
This erf includes the complete enchanting setup from the persistent world Mirellest. It allows wizards and clerics to enchant or bless items respectively. These are permanent bonuses to items just as if they were made in the toolset. As characters increase in power so too will the number and power of their enchantments increase to attempt to keep things balanced. These scripts are intended for medium-high magic worlds and may unbalance worlds that are designed to be low magic if enchant rods are made available to players.

DMs have full access to all player enchants, as well as a number of DM-only enchants. Not all item properties are available for enchanting using the rod, though it does cover the most commonly used enchantments. Even if just used for DMs, it can be a powerful tool to generate quest rewards for your PCs in-game without needing to import items.

I have no plans on supporting this release further, and have no plans on updating the scripts, or conversation files myself. There may be a few bugs left in the code, if so they're minor and not encountered often.

Files

NameTypeSizeDownloads
Enchanting.zipEnchanting.zip
Submitted: 06-23-2005 / Last Updated: 06-23-2005
zip124.57Kb504
Mirellest's Enchanting Scripts
SCORE OUT OF 10
10
4 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 (12):

Posted by Dr Fate at 2007-09-02 07:38:24    Voted 10.00 on 09/02/07
ok nevermind i figgured it out
nice system :D

_________________________
Link

Posted by Dr Fate at 2007-09-02 06:59:55    Voted 10.00 on 09/02/07
ok i figgured out i placed the script in the wrong place but im still getting the same compile error
here is the new script

//::///////////////////////////////////////////////
//:: Example XP2 OnActivate Script Script
//:: x2_mod_def_act
//:: (c) 2003 Bioware Corp.
//:://////////////////////////////////////////////
/*
Put into: OnItemActivate Event

*/
//:://////////////////////////////////////////////
//:: Created By: Georg Zoeller
//:: Created On: 2003-07-16
//:: Modified by: Shayan 28/06/05 - line 21.
//:://////////////////////////////////////////////

#include "x2_inc_switches"
void main()
{
object oWand=GetItemActivated();
object oUser=GetItemActivator();
string sWandTag=GetTag(oWand);

object oItem = GetItemActivated();

ExecuteScript("sha_on_itemactiv", GetModule());
//Enchant Rod script
if (sWandTag == "EnchantRod")
{
ExecuteScript("ench_start", GetItemActivator());
return;
}//End of Enchant Rod script.

//Soul Stone script
if (sWandTag == "SoulStone")
{
SetLocalObject(oUser, "SoulStone", oWand);
AssignCommand(oUser, ActionStartConversation(OBJECT_SELF, "SoulStoneConv", TRUE, FALSE));
return;
}
//End of Soul Stone script

// * Generic Item Script Execution Code
// * If MODULE_SWITCH_EXECUTE_TAGBASED_SCRIPTS is set to TRUE on the module,
// * it will execute a script that has the same name as the item's tag
// * inside this script you can manage scripts for all events by checking against
// * GetUserDefinedItemEventNumber(). See x2_it_example.nss
if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE)
{
SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACTIVATE);
int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF);
if (nRet == X2_EXECUTE_SCRIPT_END)
{
return;
}
}
_________________________
Link

Posted by Dr Fate at 2007-09-02 06:24:50    Voted 10.00 on 09/02/07
i like the system alot and plan on using it in my PW. only problim im haveing is when i add the scripting to the on activate item i get a compile error of ERROR: UNEXPECTED END COMPOUND STATEMENT
here is my on activate items script,

//::///////////////////////////////////////////////
//:: Example XP2 OnActivate Script Script
//:: x2_mod_def_act
//:: (c) 2003 Bioware Corp.
//:://////////////////////////////////////////////
/*
Put into: OnItemActivate Event

*/
//:://////////////////////////////////////////////
//:: Created By: Georg Zoeller
//:: Created On: 2003-07-16
//:: Modified by: Shayan 28/06/05 - line 21.
//:://////////////////////////////////////////////

#include "x2_inc_switches"
void main()
{
object oWand=GetItemActivated();
object oUser=GetItemActivator();
string sWandTag=GetTag(oWand);

object oItem = GetItemActivated();

ExecuteScript("sha_on_itemactiv", GetModule());

// * Generic Item Script Execution Code
// * If MODULE_SWITCH_EXECUTE_TAGBASED_SCRIPTS is set to TRUE on the module,
// * it will execute a script that has the same name as the item's tag
// * inside this script you can manage scripts for all events by checking against
// * GetUserDefinedItemEventNumber(). See x2_it_example.nss
if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE)
{
SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACTIVATE);
int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF);
if (nRet == X2_EXECUTE_SCRIPT_END)
{
return;

//Enchant Rod script
if (sTag=="EnchantRod")
{
ExecuteScript("ench_start", oPC);
return;
}

//Soul Stone script
if (sTag=="SoulStone")
{
SetLocalObject(oPC, "SoulStone", oItem);
AssignCommand(oPC, ActionStartConversation(oPC, "SoulStoneConv", TRUE, FALSE));
return;
}
//End of Soul Stone script

}
}
_________________________
Link

Posted by KevlarTheBlack ( 64.69.xxx.xxx ) at 2005-12-05 14:31:55    
This works great!

Posted by Durgin at 2005-08-14 10:48:39    Voted 10.00 on 06/27/05
Add the following lines to the top of your module's on activate script, just under the "void main(){":

object oWand=GetItemActivated();
object oUser=GetItemActivator();
string sWandTag=GetTag(oWand);

That should allow it to work. My apologies for not including that.

Posted by CTripps at 2005-07-31 10:06:33    
Alright, what am I missing here.. I keep getting:
ERROR: VARIABLE DEFINED WITHOUT TYPE for the line
> if (sWandTag == "EnchantRod")

Posted by Dragonsbane777 at 2005-07-22 10:25:53    Voted 10.00 on 07/22/05
excellent addition to any PW . . really allows DMs quick crafing of items, and PCs almost limitless opps for fun and creativity . . powerful, more for high magic worlds, but can easily be toned down . . excellent, two thumbs up!
_________________________
Talernon3 - Age of Dragons Link
Talernon Team Submissions: Link
3C Music Compilation: Link

Posted by Durgin at 2005-06-28 11:15:38    Voted 10.00 on 06/27/05
For a low magic world, you might want to try 1/2 for enchanters and clerics, and 1/3 for wizards (That might be cutting it too much). Then reduce or add from there if necessary. Note that if you want to get rid of the enchanter tokens and put all wizards on the same footing, ench_start is the script to make that change also.

Posted by Durgin at 2005-06-28 11:09:18    Voted 10.00 on 06/27/05
Okay, if you want to modify the scripts for a low-magic world, the easiest way to do so would be to reduce the modifiers that determine how much power each level is worth, and how much power the enchanting focus feats are worth in the ench_start script. Look for lines 23, 25, and 27 and reduce those numbers. They determine how many bonus points of power are received from the enchantment focus feats. Then scroll down and look at lines 50, 51, 52, 67, 68, and 74. All of those have fractions that determine how much power each level in a class gives you. Enchanters and Clerics receive 4 power levels per 5 class levels, non-enchanter wizards receive 1/2. If you reduce those fractions you slow down how quickly characters get access to new enchantments, thus lowering the power of the magic items they can enchant.

Posted by Roykirk at 2005-06-28 09:01:47    Voted 10.00 on 06/28/05
Love the enchanting scripts, Durgin, at least as a player. I haven't added to them to a module myself.

I know you posted that you wouldn't be supporting them beyond this release, but how easy would it be to modify them for a low-magic world?

Posted by Durgin at 2005-06-27 01:30:20    Voted 10.00 on 06/27/05
If anyone has problems installing, let me know. I'll try to re-write the readme to be more clear if it isn't easy enough to understand as it is.

Posted by Durgin at 2005-06-27 01:26:19    Voted 10.00 on 06/27/05
The result of many hours of work. I hope the community enjoys this.

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 Other


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