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  Personal Reputation and Reaction (PRR) system 2.2
Author  Vendalus
Submitted / Updated  07-12-2004 / 08-01-2008
Category  Scripting routines
Expansions  HOTU-1.64
View Code  

Select All Text | View Code in separate window
Format  Module and Code
Type  Type - Structs
Includes  BioWare Standard
Description
Updated to version 2.2 on December 14th, 2004: - Fixed several small issues in the stealing and bashing scripts where they were not checking to see if the owner was dead. - Added subjects to romurs in an attempt to keep NPCs from talking about themselves in the third person. This is a comma delimited list. See the demo module for examples. - Added a timer for alignment adjustments due to stealing and bashing that can be controlled. Also pulled alignment functions out to a central location. - Added a function called PRR_AdjustPartyPRR, which will adjust an entire party's PRR value for a single NPC.

Files

NameTypeSizeDownloads
prrupdate22.zipprrupdate22.zip
Submitted: 07-12-2004 / Last Updated: 12-14-2004
zip490.03Kb3819
--
SCORE OUT OF 10
9.86
27 votes
View Stats
Cast Your Vote!

AWARDS



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 (73):

  1  2  3 Next>

Posted by Henesua at 2011-11-19 23:47:00    Voted 10.00 on 11/19/11
Upgrading my vote. I was wrong about the pause at the start. That was caused by DMFI code that I had inadvertently merged in my PRR module. I have since been working with PRR without DMFI and found it to be efficient and effective.
_________________________
Vault Submissions | Arnheim | Beyond Vives

Posted by Henesua at 2011-03-19 07:17:42    Voted 10.00 on 11/19/11
Found another odd issue with these scripts. The onload scripts cause a long pause just before character creation. I'll look through them and post the fix when I find it. But in the meantime I am downgrading my vote. These scripts are very useful, but with this number of of bugs and inefficiencies a 10.00 is an inappropriate vote.
_________________________
Vault Submissions | Arnheim | Beyond Vives

Posted by Henesua at 2010-12-31 00:37:20    Voted 10.00 on 11/19/11
Found another database bug in _prr_main
Since NBDE now has its own function for unloading the NBDE database objects, I believe these lines should be commented out:

// object oDatabase = GetLocalObject(oVault, "NBDE_DATABASE_PRR_"+IntToString(nPlayerKey));
// DestroyObject(oDatabase, 0.1);

And then this line should replace them:

NBDE_UnloadCampaignDatabase(IntToString(nPlayerKey));


Also you can replace the sample scripting for on_client_leave with a single function call to:

void PRR_OnClientLeave(object oPC);


HOWEVER - you will need to change this function to the following:
[script]
void PRR_OnClientLeave(object oPC){
// old object oPC = GetExitingObject();
SendMessageToPC(oPC, "Cleaning up for "+GetName(oPC));
object oVault = GetObjectByTag("NBDE_VAULT");
if(GetIsObjectValid(oVault)){
// get database item
int nPlayerKey = PRR_ConstructPCIdentity(oPC);
// old NBDE_FlushSingleCampaignDatabase(IntToString(nPlayerKey));
NBDE_FlushCampaignDatabase(IntToString(nPlayerKey));
// old object oDatabase = GetLocalObject(oVault, "NBDE_DATABASE_PRR_"+IntToString(nPlayerKey));
// old DestroyObject(oDatabase, 0.1);
NBDE_UnloadCampaignDatabase(IntToString(nPlayerKey));
}
}
[/script]




_________________________
Vault Submissions | Arnheim | Beyond Vives

Posted by Henesua at 2010-12-28 00:47:12    Voted 10.00 on 11/19/11
Got it integrated, and found some bugs along the way. I am using the latest NBDE, and it looks like NBDE was not fully developed when PRR was finished. So all the bugs arose from incompatibilities between the latest versions of both of these systems (PRR 2.2 and NBDE 1.0).

PRR has three problems:
(1) PRR declares constants that are also declared in NBDE. My fix was to create a master file for constant declarations, and strip constant declarations from both systems. Then I included my master constants file where ever these constants might be needed.

(2) PRR uses an old name for a function. So I changed this to the new function name as declared by NBDE.
Old: NBDE_FlushSingleCampaignDatabase(IntToString(nPlayerKey)
New: NBDE_FlushCampaignDatabase(IntToString(nPlayerKey)

(3) PRR documentation instructs you to add the NBDE_VAULT placeable to a faction area, but NBDE has already done this for you in its own area. Do not add a second NBDE_VAULT.

_________________________
Vault Submissions | Arnheim | Beyond Vives

Posted by Henesua at 2010-12-26 20:52:31    Voted 10.00 on 11/19/11
Amazing system and too complicated to comment on yet. curently working on integrating it into a new mod.
_________________________
Vault Submissions | Arnheim | Beyond Vives

Posted by PoisonTheMonkey at 2010-11-03 12:25:20    
Working on implementing this now, this is a brilliant system. Will rate when I'm finished. :)
_________________________
Obsidian Shore, a HoF 9.8 heavy roleplaying PW. Dark and gritty fairytale world with the opportunity to do and change the world as you wish. Link

Greycliff, a brand new NWN1 heavy roleplaying PW. A broken kingdom is all that remains from a bloody civil war. Link

Posted by azak30 at 2009-07-11 21:20:54    Voted 10.00 on 07/11/09
very nice system, one of the best.

Posted by Kolyana at 2009-05-16 10:04:59    Voted 9.50 on 05/16/09
Love the system and use it in all of my modules; it's - without a doubt - a core component of any believable system and consider it to be more essential than CEP. Would never build a module without it.

Posted by -vendalus- at 2008-08-14 10:12:36    
Thanks all for the votes and HOF status!

Posted by ffbj at 2008-08-02 07:23:31    Voted 9.75
Cool, made the HOF!

Posted by 2R_Duke at 2008-07-07 16:36:36    Voted 10.00 on 07/07/08
A nice and innovative system that can add a great deal to a world.
_________________________
Lawful Evil Builder/DM

Posted by Saduj at 2008-06-28 22:06:50    Voted 10.00 on 06/28/08
Very Cool System :)
_________________________
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 calsailx at 2008-06-09 17:17:29    Voted 9.75 on 06/09/08
Been using this in a module I'm working on and
I just want to say thanks, Really makes things come alive. Every NPC that hooks into it seems a bit more believable. Adding it was a bit of a chore, but I feel it was time well spent!
_________________________
TNI01 Usable Beds || TNI02 Useable Beds || TWC03 Usable Beds

Posted by -vendalus- at 2008-06-08 11:30:44    
Thanks for the votes! As I said before, I've stopped supporting this for nwn1 and moved over to nwn2. In the newest version I've gone back to the original "category" element on rumors and added a new "quality" element. If you're interested, it should be pretty easy to convert it over and would give a lot of the flexibility you're looking for there. If anyone wants to take this over, just let me know and we can work something out. Thanks again!

Posted by Ondaderthad at 2008-04-12 21:39:57    Voted 10.00 on 04/12/08
It looks like i never voted before for this excellent system.
Thanks Vandalus. This is truly Hall of Fame Material.

_________________________
The Best PW system is getting even better.
PLATEMAIL Tech Preview

Posted by Carcerian at 2008-04-05 17:58:49    
Very intersting stuff, voting a 10!
_________________________
Carcerian - Beholder Eye Powers & AI, CEP Dragon Disciples, Color Text Functions, Dynamic Wildshape, Faerie Fire, Palemaster Arm Powers, Spawning Undead

Posted by azak30 at 2008-03-27 09:56:39    Voted 10.00 on 07/11/09
I found this very useful and made my pw building go smoother.

Posted by FrikaC at 2008-02-25 15:14:19    Voted 9.25 on 02/25/08
Well built and well commented. Must get into HOF!

Posted by Gonzo_og at 2008-02-09 12:49:43    Voted 10.00 on 02/09/08
Easily a ten. Easy to use, and it makes a tremendous impact in the feel of the game.
_________________________
stuff

Posted by Kraven_Khor at 2008-01-21 00:19:07    Voted 10.00 on 01/21/08
this is HOF material, very nice, well done!

Posted by Argonbeam3500 at 2008-01-14 02:09:12    Voted 9.75 on 01/14/08
Brilliant work; this allows for both fame/infamy, and makes roleplay choices for good/evil/law/chaos SOOOO much easier to script. Thank you!
_________________________
argonbeam3500
*** * **** *** *

IA! IA! Cthulhu ptarmigan!...er...um...IA! Cthulhu ptatohead!...or...uhh...whatever.

Posted by MyHouse at 2007-10-20 17:42:00    Voted 9.50 on 10/20/07
I had given up on a NWN2 Vrs. This is great! Any chance you can add area specific rumors? 9.5 only because it's not to flexable. Still awsome work.

Posted by Shargast at 2007-10-20 02:01:49    Voted 10.00 on 10/20/07
Gangbusters! just great! The work and the attention to detail is amazing! After coffees and a half a pack of marlboros I understood it and put it into a new PW that I'm working on! A three way faction war. The Ondeath scripting mixed with codis AI and a custom time stamped respawn on Location script gave me a headache, but now I have a custom nw_c2_default7 script for each faction!

A great additon to the NWN community!

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

Posted by -vendalus- at 2007-06-24 14:49:19    
Good to see some people are still getting use out of this!

Just wanted to stop by and post a quick update. I'm working on a new version of the PRR 3.0 for NWN2. I'm hoping to get it posted in the next few weeks. If someone is looking to take on maintenance of PRR 2.2 for NWN1, let me know and maybe we can work something out. The best way to contact me is as [email protected]

Posted by hexmendacious at 2007-06-10 01:29:44    Voted 9.50 on 06/10/07
I'm loving using this... what a great system, with good docu

Posted by hexmendacious at 2007-05-12 22:09:38    Voted 9.50 on 06/10/07
Awesome, I'm using it...

Posted by rikki.o at 2007-04-02 08:55:09    Voted 9.00 on 04/02/07
It is great to see such wonderful work.
rikki.o

Posted by hexmendacious at 2006-10-09 01:47:13    Voted 9.50 on 06/10/07
I hope someone takes this over and updates it, this is a cool set of scripts!

Posted by MyHouse at 2006-10-01 10:31:12    Voted 9.50 on 10/20/07
VA�.
First I want to thank you for this awesome system. It allows me to really make the PC responsible for their actions.
Ok. I have several questions.
First: How do I set a rumor that is spread by only one NPC or one Faction? Or better by area�
Second: How do I call a rumor on an INT? Does the INT have to be set to the mod or can it be set on a PC?
Third: Can I have a rumor only given to a certain alignment?
Forth: What is the sSubject for and how is it used? (Does it somehow call/Change the reputation of the tag of sSubject?)
Fifth: Can a journal be set to one PC/All PC�s or PC�s in a party?
Sixth: You have categories set like
int CAT_NORMAL = TCRM_CATEGORY_1;
int CAT_HIGH = TCRM_CATEGORY_2;
int CAT_HIGHEST = TCRM_CATEGORY_3;
But there are 31 categories. Can I set int CAT_(area) =TCRM_CATEGORY_4;?
Explain how to use this-
// This was one of his sample calls - Vendalus
// newRumour = TCRM_GetRumour(FALSE, 1, TCRM_CATEGORY_ANY, TCRM_CATEGORY_NONE, CAT_CITY_DUSKAR|CAT_PROFESSION_BLACKSMITHS);

Please be gentle. I know some basic scripting but not nearly as advance as you�.:)

Posted by twinj ( 203.213.xxx.xxx ) at 2006-06-04 09:09:54    
I cant believe I didnt find this earlier!! I was actually in teh midst of creating a very very similar system! Most of the base work is done already! LOL. Then I find this and its almost exactly the same... :) Oh Well.

Good work mate!

Maybe we can get together on it and we can improve it. Or I can takeover the project ( if your not still working on it? ) and get those updates people want. ??

I am creating a BASE module with plugin capability and will be using something almost exactly like tihs.. rewritten with this and what Ive already done to suit a GLOBAL switched up module base for everyone.

BLAB! Thank for the work mate.

  1  2  3 Next>

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 Prefab Areas


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