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  Simple XP v1.07
Author  ScrewTape
Submitted / Updated  09-01-2004 / 11-22-2006
Category  Rulesets
Expansions  NWN-1.62
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Includes  BioWare Standard
Description
What? Another XP script? Well, yes. I've had several requests for configurable options that don't really apply to XP systems that use static tables. (Party Member weights, separate min/max HD/cr & cr/HD difference, max HD difference between members, +/- scale params for HD != CR) Both the DMG XP and DMG 2DA XP systems' configurability are limited by their use of tables. Secondly, the DMG tables are specifically setup so that 13.33 encounters are required to level, but the Bioware tables yield increasing encounters per HD (sort of). This system lets you specify encounters per HD and whether or not to increase with each HD as well as by how much. Most of these are 'slider' type controls for ease of use. Also included is an excel file that allows you to tweak the various sliders and see the resultant table, along with bioware and dmg tables for comparison. Update **removed xp message bypass (with 1.64 there is no message when xp slider is set to 0) and updates recommended by Endlefas

Files

NameTypeSizeDownloads
simplexpv107.zipsimplexpv107.zip
Submitted: 09-01-2004 / Last Updated: 10-14-2004
zip147.3Kb649
--
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





You Must Be Logged In to Participate.
Comments (19):

Posted by Pstemarie at 2011-07-16 15:20:02    Voted 10.00 on 07/16/11
Integrated this with HCR2.0 - works great.
_________________________
--
Pstemarie - Project Q Team Artist

Posted by Shargast at 2011-06-23 14:18:22    Voted 10.00 on 06/23/11
Greetings, just incorporated this system (Actually Papa Lenin did it) into Shargast v3.0 cep2.4 (IN Action :)

It's working wonderfully! The adjustability of the script is beautiful!

Good solid scripting
Best Sai aka Shargast
_________________________
Realms of Shargast V1-V5ab, LOTR V15, The Undeath Clave & Faithful of Aerth

Posted by Olander at 2005-01-04 03:25:12    Voted 10.00 on 01/04/05
Solid DMG/PHB XP System.....more than Solid.....top of the heap in my book.
Great work here ST
Cheers!
Olander

Posted by Belial Prime ( 69.119.xxx.xxx ) at 2004-11-06 08:12:00    
I'm getting the "You are too far away to recive the XP award" when in a party that is on different screens. Anyway to remove that?

Posted by ScrewTape at 2004-10-14 13:19:00    
Updated erf posted with all Endlefas' recommendations as well as the bypass bioware code removed (with 1.64, if you set the module's xp slider to 0, no additional message appears).

Enjoy,
~ScrewTape

Posted by ScrewTape at 2004-10-14 13:19:00    
Updated erf posted with all Endlefas' recommendations as well as the bypass bioware code removed (with 1.64, if you set the module's xp slider to 0, no additional message appears).

Enjoy,
~ScrewTape

Posted by ScrewTape at 2004-10-14 12:18:00    
wow, not sure what happened to that last post. hmm, try again

Hey Endlefas,

Thanks for your analysis, though it took me a minute to remember what I was doing there and to "get it". That's a pretty good interim solution, but it's actually a bit of a weird problem. There should be no "extra" case for cr less than 1, and the
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));
should work fine for that case. I'm not sure what I was thinking when I added the extra case...

However, the way bioware handles it is a bit odd - all creatures with cr less than 1 return .5 from GetChallengeRating (whether it's a cow or a hobgoblin or whatever.) So, what I will do is change

else if (fCR >= 1.0f) // fHD > fCR
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));
else // fCR fCR
nAward = FloatToInt(fBaseXP * fCR);

to

else // fHD > fCR
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));

and everything should be good.

Thanks again Endlefas!
ScrewTape

Posted by ScrewTape at 2004-10-14 12:14:00    
Hey Endlefas,

Thanks for your analysis, though it took me a minute to remember what I was doing there and to "get it". That's a pretty good interim solution, but it's actually a bit of a weird problem. There should be no "extra" case for cr less than 1, and the
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));
should work fine for that case. I'm not sure what I was thinking when I added the extra case...

However, the way bioware handles it is a bit odd - all creatures with cr = 1.0f) // fHD > fCR
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));
else // fCR fCR
nAward = FloatToInt(fBaseXP * fCR);
to
else // fHD > fCR
nAward = FloatToInt(fBaseXP * pow((0.8f - fAdjust), (fHD - fCR)));

everything should be good.

Thanks again Endlefas!
ScrewTape

Posted by ScrewTape at 2004-09-23 10:06:00    
Point well taken, Endlefas. I'll add that and update the excel spread as well (I found another counting error in the spread and I added a couple of new columns for comparison -- the silly excel spread has taken far more time than the script itself :)

Posted by Endlefas ( 80.229.xxx.xxx ) at 2004-09-21 14:23:00    
It matters not a jot to the level 40 player, but I was more concerned about how it could affect other members of his party if using the N_MAX_PARTY_HD_DIFFERENCE and B_NO_AWARD_FOR_PARTY options.

Tested the script a fair bit last night - seems to work just right. Thanks for your effort :)

Posted by ScrewTape at 2004-09-21 11:12:00    
Thanks Endlefas, nice catch. I was not aware you would continue to accumulate xp after 780000. :) You are right, that's a good way to limit that. Although, since the system is not table based, it will award the player as if he was level 41 or 42 etc. But it should continue to award them as if they were 40. (Not sure it really matters much at that point though :) )

Posted by Endlefas ( 80.229.xxx.xxx ) at 2004-09-20 13:08:00    
Errr.... with a semi-colon on the end of

return nLevel;

or course :p

Posted by Endlefas ( 80.229.xxx.xxx ) at 2004-09-20 13:05:00    
Looks like an interesting and useful XP script. Putting it through its paces now, but noticed a issue that you might like to correct...

This bit:

// GetHitDiceByXP
// Solve for hd from xp = hd * (hd - 1) * 500
// hd = 1/50 * (sqrt(5) * sqrt(xp + 125) + 25)
int GetHitDiceByXP(float fXP)
{
return FloatToInt(0.02 * (sqrt(5.0f) * sqrt(fXP + 125.0f) + 25.0f));
}

will effectively return PC levels in excess of level 40 if the PC has XP over 820000. Changing to this (or similar) fixes it:

// GetHitDiceByXP
// Solve for hd from xp = hd * (hd - 1) * 500
// hd = 1/50 * (sqrt(5) * sqrt(xp + 125) + 25)
int GetHitDiceByXP(float fXP)
{
int nLevel = FloatToInt(0.02 * (sqrt(5.0f) * sqrt(fXP + 125.0f) + 25.0f));
if (nLevel > 40) nLevel =40;
return nLevel
}

Good work, though. Almost exactly the XP script I was looking for :)

Endlefas

Posted by ScrewTape at 2004-09-18 15:53:00    
Hey, I just checked and the zip was 1.05, not sure what happened there, but I reuploaded 1.06 just in case. I also then downloaded it again to make sure and the dl was 1.06, sorry for any confusion.

Posted by ScrewTape at 2004-09-17 00:29:00    
I updated the eligibility checks, especially if you are using B_AWARD_DEAD_PLAYERS. Now, you only receive awards if you are within normal clipping distance (dead or alive) to keep dead players from sitting there and collecting awards. Big thanks to Belial Prime for his help in smashing the gremlins :)

I also updated the excel spread, I had one calculation that was using too many columns so it would throw off the charts depending on what values you had set.

I'm considering a "suggested settings" guide, since this really turned out to be 'not so simple' heh. Having said that, the excel spread is your friend. Use it to see exactly what the awards will be in game. Let me know if the suggested settings would be helpful (DMG, Bioware, PW, etc).

~ScrewTape~

Posted by ScrewTape at 2004-09-05 14:57:00    
Hmm, there were no downloads when I started the update :) For the 5 or so who downloaded before I finished, the script is exactly the same, I just updated the excel spreadsheet to included more of the options.

Enjoy,
~ScrewTape~

Posted by ScrewTape at 2004-09-04 17:21:00    
Erf and excel spread posted - excel spread doesn't account for 'max xp = X * base' or party member weight (yet...)

Enjoy

Posted by ScrewTape at 2004-09-03 08:55:00    
RE: "There isn't anything to download."

My bad, I made the post with only text intending to get the erf up before the post became public, but I haven't gotten around to it yet. I have a couple of PL params I haven't gotten into the excel spread, but I'll go ahead and post it sometime this eve (9/3/04) and update the excel file later this weekend.

~ScrewTape

Posted by Anonymous ( 65.13.xxx.xxx ) at 2004-09-03 05:48:00    
There isn't anything to download.

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 Gameworlds


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