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  



NWN2 SCRIPTS

- Jump to comments -
Name  PRR 3 for NWN2
Author  -vendalus-
Submitted / Updated  10-28-2007 / 01-17-2009
Category  NPCs
Forum Thread  Link
Type  Type - Reputations
Format  Module and Code
Patch  1.07
NWN2Game  NWN2
Description
The Personal Reputation and Reaction System 3 for NWN2 is a complete set of scripts that offer the following functionality:

NPC Reactions
Allows NPCs to react dynamically to players actions, factoring in one-on-one interactions, faction standing, differences in alignment, and charisma modifiers.

Ownership and Theft
Allows NPCs to own doors, chests and other containers, confronting players when they unlock, disarm, open or disturb these doors and placeables.

Security and Crime
Allows for security creatures to be assigned to come and watch over a door or container if an owner calls for help.

Picking Pockets
Allows similar theft functionality for picking pockets.

Skill Checks
Allows personal reactions to affect skill checks on a creature, providing a situational penalty or bonus.

Dynamic Rumors
Allows NPCs to provide the players with rumors, where better reactions mean better rumors.

Persistence
Allows module builders to flush all PRR variables to a standard Campaign Database for use in sequels, campaigns, or a persistent world.

Factions
A set of simple scripts makes dealing with factions much more pleasant.

Persistent Compansions
Uses the same database methods as the Persistent Companion scripts.

These scripts require only one overwrite of the standard OE NWN2 scripts, and all components are modular and easy to configure. Import the erf file and set up a few variables and you�ll be in business.

This is currently a beta release. Feedback is welcome.

Be sure to download the example module, as this provides a quick (and hopefully entertaining) look at how these scripts can be used.

UPDATES:

PRR beta_002
- Changed the rumors to use a new quality element and use the categories element for the original intent.
- Added dynamic delays to rumors.

prr_example_v0_2
Added the lizard camp and quests to go along with it.
Added persistent companions.

NOTE: As of prr_example_v0_2, you will need MotB to play the example module, but you can still use the scripts if you don't have the expansion yet.

Files

NameTypeSizeDownloads
prr_3beta_002.zipprr_3beta_002.zip
Submitted: 10-28-2007 / Last Updated: 12-01-2007
zip3.7Mb635
The erf for import and extensive documentation.
prr_example_v0_2.zipprr_example_v0_2.zip
Submitted: 10-28-2007 / Last Updated: 12-01-2007
zip9.8Mb507
The example module, providing a quick look at how the system works.
SCORE OUT OF 10
9.93
9 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS

This poor fellow got caught...


From the mage's lab take the portal to the Underdark - from the example module.


Ambassador Blaranitra - from the example module.


An example of race reactions - from the example module.





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

  1  2 Next>

Posted by kamal at 2011-07-02 07:42:02    Voted 10.00 on 07/02/11
Required to make my rogue module work.
_________________________
Shadow Thief: Crimmor and Path of Evil blog Link

Posted by Friar at 2010-09-16 17:11:22    
I really like this and I think with just the way you laid out the sample area does a lot to explain what you have created.
I noticed that when the guards attack they will attack once and then stop. My character will continue fighting them. Is this intentional?
I suppose if one wanted to get around that then they would need to create super guards who in just one hit they kill your character. But then that leads into a bunch of issues.

Posted by JonnieR at 2009-06-15 21:13:20    
Vendalus, I downloaded your package and it looks very promising. I have an immediate need to have a simple faction change based upon a conversation my PCs have with some castle guards. Depending on how the PCs react to the guards orders I wanted to adjust the faction rep to create a fight in one case. The guards have a unique faction rated at 50 across the board. Is there a way to easily excute this with your system?

Posted by ImmoralSinner at 2009-03-10 23:32:50    Voted 9.50 on 03/10/09
Great work

Posted by -vendalus- at 2009-01-20 16:36:39    
Just wanted to drop a note that dmguild and I worked this out over at the Citadel. The issue ended up having to do with a missing function call on the OnModuleLoad event.

I've also updated the link to go to the thread where this conversation is happening. I has a few notes on possible upgrades down the line.

Posted by dmguild at 2009-01-16 00:45:56    Voted 10.00 on 01/16/09
Outstanding work. I'm having problems getting the database to work thought.
Do I just change the
const string PRR_CAMPAIGN_NAME = "XXXX"; so that XXXX = my campaign folder name? That didn't seem to work.

I keep getting a local campaign database not found in my server log.
_________________________
Keeps calling me it's master, but I feel like it's slave. Haulin me faster and faster to an early early grave.
Skullport and the Undermountain PW
NWvault Submissions:|Skullhak_2|---|Skullport PW|---|Waterdeep PW|---|Portrait Pack|

Posted by nicethugbert at 2008-12-02 20:51:57    
NEAT!
_________________________
NTB's Hills and Valleys Vol. 00

Posted by -vendalus- at 2008-04-28 17:01:28    
You should just be able to start a new module as a directory, open that module directory in Windows, import the PRR, and copy everything that gets added into a subfolder of your campaign folder. Using the subfolder, scripts and convos won't show up in the resource list. If you want to use the template as a base, that might be easier to copy to the root.

You are correct that the faction zoo area needs to be replicated across modules.

Glad to hear it's working. Let me know if you have any suggestions. I've been meaning to publish a new version that has a basic version of charm spells working. Hopefully I'll get on that soon.

Posted by sgt_why at 2008-04-27 22:05:57    
I'm using a campaign with multiple modules ... is there a way to add these resources at the campaign level, rather than importing it into each and every module ?

Seems the faction area might be module specific, but the rest could all be under the campaign dir?
_________________________
the Red Hand of Doom campaign ..
Click Here

Posted by sgt_why at 2008-04-20 21:05:37    
Vendalus @ I've merged in your PRR code to my module/campaign. Works awesome!
May take some time to updated all of the dialogs ... but I truly appreciate the functionality it brings. Really adds a lot of the "role play" element back into the game!
_________________________
the Red Hand of Doom campaign ..
Click Here

Posted by mtsaint at 2008-03-12 13:12:15    Voted 9.00 on 03/12/08
looks like it will give me a big head start on dynamic interactions. thx for your work

Posted by -vendalus- at 2008-01-06 12:16:10    
You only need to add the factions if you want to allow the players to change how different factions feel about them through the course of the game. For example, if you have two factions (say druids and towns folk) and you'd like to create several opportunities for the PCs to choose to side with one over the other, you can use the faction functionality to help make this happen. How a faction feels about the PCs gets factored in to the final reaction, so as the PCs perform more tasks and gain the trust of the faction, all its members become more friendly. Creating one for merchants and goblins is not needed if you know they are never going to change.

If you just want to update how NPCs feel about the PCs, then you don't need to use the faction functions at all. The system was built so that you can use as little or as much as you want. Most builders will probably just want the reaction scripts and possibly the theft scripts. Generally, you can jump in just by using the prr_template conversation as the basis of new conversations. It includes all the functionality for personal reactions.

I'd suggest scanning through the documentation. I tried to write it so that it works up from simple functions to more complex. I've been thinking about a quick-start or cheat sheet document as well, so any feedback would be most appreciated.

Posted by sgt_why at 2008-01-03 10:51:15    
Hi vendalus! I'm going to download this and see about adding it into the Red Hand of Doom series ... I'd like to integrate all of the FRW "haks" into it and think this will help with the "realism" a lot.

Will I need to go back and make extra factions to have this operate properly ? ie. one for towns folk, merchants, druid, goblins, etc.

or does the code keep track of each NPCs "attitude" towards each PC separately (not faction based) ?

I'm downloading now, so I'll check the documentation for answers as well.
_________________________
the Red Hand of Doom campaign ..
Click Here

Posted by Saphhira at 2007-12-30 02:57:07    Voted 10.00
Therefore I deleted the nw_i0_plot library from my module script list because I'm not using it for other script system.
Then I've downloaded prr_3beta_002.zip and imported ERF in module. Now it works without problems.

Thanks a lot for helping me!

Posted by -vendalus- at 2007-12-29 10:39:57    
Are you running MotB?

I just opened a new module and imported the scripts and it compiled fine. I also opened up nw_i0_plot and my line numbers seem to be a bit different than yours. Do you have an nw_i0_plot in your scripts list? If you have not altered that script through another system or custom code, I'd suggest copying and pasting the code from a new module to see if that fixes it. (It might be worth noting that the version I am looking at does use SPELL_LESSER_GLOBE_OF_INVULNERABILITY).

Again, PRR should not be touching that script, so it could be something else. If you keep digging and figure it out, please let me know.

Posted by Saphhira at 2007-12-29 09:56:01    Voted 10.00
I've updated it to 1.11 and it doesn't work. If I compile the single library (nw_i0_plot) there is no problem. If I compile all the script of the modules it said that in line 1253 and in 754 the variable isn't defined.
I report here the lines:
754 if (nSkill == SKILL_PERSUADE || nSkill == SKILL_BLUFF || nSkill == SKILL_INTIMIDATE)

1253 ActionCastFakeSpellAtObject(SPELL_MINOR_GLOBE_OF_INVULNERABILITY, oFleeing);

At the moment I've changed in the first line SKILL_PERSUADE with SKILL_DIPLOMACY and in the second line SPELL_MINOR_GLOBE_OF_INVULNERABILITY with SPELL_LESSER_GLOBE_OF_INVULNERABILITY and now everything works fine.

Posted by -vendalus- at 2007-12-28 11:06:28    
Saphhira, I've upgraded to 1.11 and everything compiled fine. The scripts should not be touching nw_i0_plot. Can you open the example module and try to compile it? If it works fine in the example module, there's a good chance it is something else. Let me know.

Posted by -vendalus- at 2007-12-28 10:33:40    
I'll upgrade to 1.11 today and test (I've been holding off). Thanks for letting me know.

Posted by Saphhira at 2007-12-28 08:53:44    Voted 10.00
Hi Vendalus,

I'm using your PRR for my PW but at the moment I have some problems. After the patch 1.11 I can not compile your script and I have notice that the problem is on nw_i0_plot library.
Did you modified it?
Thanks a lot

Posted by MyHouse at 2007-12-06 20:45:33    Voted 10.00 on 12/06/07
This is great. Thanks a lot! A must have for PW or SP.

Posted by -vendalus- at 2007-12-01 18:23:40    
The new version is up with the changes mentioned below. I've also tested this with the Persistent Companion scripts and added them to the example module. Works great!

Posted by -vendalus- at 2007-11-15 21:20:37    
I've actually got the code restructured to use the new category/quality elements, and I hope to post it soon.

Posted by MyHouse at 2007-11-12 20:00:58    Voted 10.00 on 12/06/07
I see where you are going with the elements. If quality was set for current area and I could mix the rumors with the other elements that would work too. Category could be for large rumors that everyone would know. Subject would elemenate speaking about ones self. And Quality be area specific. My thought was that if say an NPC was "Out of town" giving rumors to the PC. He could still talk about his home town.

Posted by MyHouse at 2007-11-12 19:50:33    Voted 10.00 on 12/06/07
A script parameter would be more flexable. Such as a NPC could give rumors of another area specific and where conversation is takeing place.
Ex: Every one knows about the Lich Queen rumor 100 miles north but only residents close by would know rumors that the watch could be paid off...The more flexable the better.

Posted by MyHouse at 2007-11-03 19:30:39    Voted 10.00 on 12/06/07
Any chance this can be set up to do rumors based on area tags? A particular NPC could be used to do area only rumors for basic quests. And large quests for the whole mod.

Posted by -vendalus- at 2007-10-31 17:48:14    
Will do on the lights. For the wand, not yet. That's something I definitely plan on doing though.

Posted by Saphhira at 2007-10-31 00:35:46    Voted 10.00
The library is really too dark. Put some lights or live a torch in the starting area.

There are also DM wand for changing the reputation of PC?

Posted by -vendalus- at 2007-10-30 17:18:38    
Thanks for the comments SDJ. Please let me know how it goes!

Posted by SDJ at 2007-10-30 17:12:25    Voted 10.00 on 10/30/07
Hi there,

I am planning to add this in my PW server. It's really useful because social skills like diplomacy, and other ones that I added, will gain the importance that deserve. With the CD checks in dialogues players will try to focus in this skills, not only the combat ones. Also by this way npc can be better integrated to their surrounding world, being able to react if are robbed, insulted or if the PC is rude (speaking with a noble without good manners can produce - influence).
I'm also trying to figure if PC will be able to improve their rank in factions by this way. Gaining influence with the Guard faction can improve your rank to Lt for example (completing missions for them and speaking correctly to your superiors can be a good reason). Or being really good at performance can improve your reputation among the students of yout musical academy (CD checks "performance" at plays or concerts is a way).

As you see, with imagination a lot can be done with your work I think, and thanks for it, because I was wondering how to create a similar system, but I'm not a scripter xd

Some advice for PW? I mean, you tested this in online modules? I will try, thanks to share your work and time ;)

_________________________
SDJ - Oriental style 3D Models (Pack 2)
Link
SDJ - Oriental style 3D Models Link
142 Oriental portraits Link

Posted by Urlord at 2007-10-30 10:35:56    
I will hold off on voting just yet, however your code looks very good so far.

I have a situation where my PW is split into several factions. Some factions start off friendly to PC Races and others do not. There are quests where PCs can alter their reputation with each faction. If a faction reputation is in the extremes, a PC could become neutral or even an ally of a normally hostile faction and vice-versa.

For Example, the Goblin faction is currently at war with the nearby human town. Therefore, the Goblin faction starts off as hostile to PCs. Through quests and actions, PC could make it so Goblins are no longer hostile to them. Will your system handle this?

I mean if Bob the PC has raised their repution with the Goblins to a point where they are no longer hostile to him, what happens when he approaches a group of Goblins?

What happens if Bob the PC is partied with PCs that the Goblins Should be hostile to?

Does this maintain across server resets?

I use NWNX4 and a MySQL Database. Are you open to possibly having the capability to connect to this instead of the default campaign database?

The PRR 3 system looks very good and if it can handle situations like these, I would not mind converting my PW to using it and even assisting in the development of a MySQL connector.

_________________________
Peace,

Jim
AKA Urlord

Visit the Persistent World of Nymri

  1  2 Next>

You must be Logged In to post comments in this section.

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
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