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  CAP:: MPGM
Author  9fires
Submitted / Updated  11-01-2009 / 01-25-2010
Category  Scripting routines
Expansions  HOTU-1.69
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Includes  None
Forums  Link
Description
THE COMMUNITY ADVENTURE PROJECT PRESENTS

A multipurpose graphical meter that can be applied to just about anything you can imagine. It adds a little something to the experience.
This can be easily applied to any event - Works best in OnUsed and OnDamaged or as a component of a loop (such as like one you'd create for the holding of breath)
See the script below for further details.

*UPDATE TO CODE ONLY Nov 16th/2009*
Added a pair of switches to allow you to easily change the colors of your MPGM using the color tokens I provided.
The default is Purple over Orange.

*UPDATE TO CODE ONLY January 25th/2010*
Civious had a good idea with the math and the use of 'x3_string_inc', but certain things just wouldn't work for my HTST and Trades crafting systems, so I took his 'math solution' and modified my code. He internalized the percentage, I externalize it. Use his or mine, it makes no nevermind.
I present my modified script here.

Files

NameTypeSizeDownloads
Demo__CAP_MPGM_.7zDemo__CAP_MPGM_.7z
Submitted: 11-01-2009 / Last Updated: 11-01-2009
7z9.84Kb72
This quick demonstration includes a small mine containing gem deposits. I recommend you use a character with a high strength and possibly Power Attack to test this out.
To interact with the mineral deposits simply bash them. When the Progress meter is full the mineral deposit will drop 1-3 gem stones. Because I do not like predictability, there is a 10% chance that something bad happening.
Future CAP releases will include more complex uses of the MPGM function, stay tuned.
SCORE OUT OF 10
9.6
7 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 (20):

Posted by CAP 9fires at 2009-11-26 22:22:12    
Thank you very much, Amethyst.
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by The Amethyst Dragon at 2009-11-24 21:36:59    Voted 9.50 on 11/24/09
A nice idea, and one I'm modifying for my own uses.
_________________________
World of Aenea (Hall of Fame PW and the origin of all my works)
Vault Entries: The Complete List (50+ entries, including 17 Hall of Fame awards)

Self-Promotional Honesty: If you have opinions on stuff I've made, or if you use any of it (as a player or builder), I like comments/votes/feedback...so do other content makers and builders. Keep us motivated. :)

---------------------------- Neverwinter Nights Community Site: The Unofficial Homepage for NWN ----------------------------

Posted by CAP 9fires at 2009-11-21 11:52:22    
Well please do. I'm interested to see what can be made of it.
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Primeval Atom at 2009-11-21 06:21:33    Voted 10.00 on 11/21/09
Yes but if it can be clean up why not...

Unless the improvement are not really improvements LOL
_________________________
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Rip RPG

Posted by CAP 9fires at 2009-11-19 14:57:52    
Ain't broke, don't fix it.
Thanks
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Civious at 2009-11-19 05:10:49    Voted 9.50 on 11/19/09
Nice work, although using GetStringLeft and a little math would really clean it up and get rid of all those string s##'s and if (nPercent) checks

Posted by CAP 9fires at 2009-11-15 20:03:27    
Yeh I will be releasing the CAP ruleset which is at its core based on the HCR and ORS. I'm not gonna commit to a release date just yet, cuz I'm trying to get my PW off of the ground and don't need to shackle myself to anything else nor do I want to get y'all worked up for it and then disappoint you, if I should fail to meet my dead line. But rest assured, I'm here and I'm not going anywhere and the NWCommunity dwells in a very special with me.

Long Live It. Game On.

I
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Primeval Atom at 2009-11-14 16:45:21    Voted 10.00 on 11/21/09
I love this =D
NWN continue to improve thanks to dedicated people who keep building for it...
Thanks

PS: Will you be releasing the CAP ruleset?
I have a feeling it will be an improve ORS, something the community surly needs.
(ORS being with "more holes than the Iraqi navy") LMAO
_________________________
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Rip RPG

Posted by CAP 9fires at 2009-11-11 06:00:18    
@ffbj - You, of course, may use whatever you like... lol. If I've posted it, its public domain... and I'd love to see it working elsewhere.

@Fleshmelter - no documentation... well, polly about that... I suppose I figgered it was rather straight-forward and I included what information I figgered was necessary inside of the script.
For me to provide multiple uses or examples of function... erm... for this function, would sorta defeat the purpose of it being the 'COMMUNITY ADVENTURE PROJECT TEASER SERIES'... lol. The mining script I tossed up there was whipped together in about 15 minutes on jdeavila's suggestion as a base line example. I could have included more, but one of the most fundamental things PCs do is cause damage, so its easy to script to but they also make skill checks, saving throws and ability checks.

Alls you need is a target number and a PC generated value - by skill, ability or saving throw result or some made up number that changes... Take the changing number divided by the target number, multiply by 100 - slot all that into this function and *POOF* something purdy too look at that provides solid, undeniable graphical feedback...

My templated multipurpose looper... used locally, globally, persistently, temporarily... Whatever... Is below... That and the MPGM are the basis for the HTST and many other subsets of the CAP ruleset.

=-= CODE BELOW =-=

void main()
{
object oLooper = OBJECT_SELF;
int nCycle = GetLocalInt(oLooper,"UNIQUE_VARIABLE_XXX");
int nCount = 2;//Change this number to change the speed.

if(nCycle == nCount){
/************WHATS GOING ON??****************\
Whatever the heck you want goes right here.
\********************************************/
}//EoLoop

nCycle++;
if(nCycle > nCount) nCycle = 0;
SetLocalInt(oLooper, "UNIQUE_VARIABLE_XXX", nCycle);
}//EoLoop



_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Fleshmelter at 2009-11-10 03:20:33    Voted 9.50 on 11/10/09
I have seen the potential of this as well, although I haven't put it to practical usage.

It's nice implementation without documentation, although I understand the previous post about not providing a module that showed several examples, it still seems wonderful enough as is.

Great Job!
_________________________
PW Action Server:
| Chaosgate |


Posted by ffbj at 2009-11-09 16:15:30    Voted 9.50 on 11/09/09
Of course I will not use it without permission and credit. Just thinking out loud. Cheers!

Posted by ffbj at 2009-11-09 16:14:22    Voted 9.50 on 11/09/09
Very useful. I have been toying with a fatigue system for a while now, and in the back of my mind I was thinking about a graphical representation system to keep the player current with their fatigue. Well now I don't have to worry about that.
Thanks, CAP9fires.

Posted by CAP 9fires at 2009-11-04 17:59:10    
I use MPGM for more than I mentioned as well, Blasco (sorry I misspelled your name), such as a research progress when a PC is digging for clues, or time delay before something explodes or the time it takes when they are crafting something.
I will be releasing my HTST system soon as I've got the time - rl keeps me purdy busy - but when I do, you'll see hunger, thirst, stamina and tolerance which is one of my robust applications.
And thanks again for such high praise, its going straight to my head. :)
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Blasco-Yang at 2009-11-04 17:42:22    Voted 10.00 on 11/03/09
Just worked up a desert thirst meter using this and it took less than 30 minutes to create a desert thirst system that looks, feels, and functions far better than the system I mangaged to create over a year ago ... and that one took me weeks to put together.

This has really opened my eyes to a tremendous number of possibilities.

If I could vote again I'd throw another 10 right on top of the stack.

Thank you.

Posted by CAP 9fires at 2009-11-03 20:03:10    
Ah... *blushes* Thanks Brasco.
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Blasco-Yang at 2009-11-03 17:20:02    Voted 10.00 on 11/03/09
Freaking awesome!

Jdeavila has some good points, but considering you've not advertised it as a "complete" system I can only vote according to how useful I, personally find it.

The script in its entirety I found to be more than I needed. (But that is irrelevant and I cannot legitimately expect you to anticipate my needs)

The concept itself is absolutely astounding to me.

I was able to break the script down to a more "basic" form with only a slight modification of the "GraphicMeter" function.

Essentially all I did was get the object's Maximum HitPoints and it's Current Hit points, derive a percentage from that and pass that as the "fPercentage" parameter to the function.

The function itself I modified by removing the oPC parameter (as I had no use for it as far as my simple needs were concerened)
and changing all of the "SendMessageToPC(oPC,"

to: "SpeakString("

In the end, I have a "Damage" meter that appears above the calling object.

I have tested it with placeables and with creatures. It works flawlessly.

I have considered something like this in the past, but the task always seemed to be somewhat daunting everytime I looked into it.

It would have taken me many a sleepless night to get to this point.

I cannot thank you enough for this. Even though you've stated that there is more to come, you have already set me on the right track by intoducing the concept to me in a scripted form.

Thank you.

Posted by CAP 9fires at 2009-11-01 17:18:11    
I appreciate you comments and the vote.

I shall reiterate that this is simply a demonstration of one function, it is not intended to be a 'system'. I leave it to you to create whatever you like from the function.

As stated above in the description of the demo mod, it is intended to be a simple demonstration and that a more comprehensive CAP package is enroute and will include what it is you're really looking for my friend.


_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by jdeavila at 2009-11-01 16:35:41    Voted 7.00 on 11/01/09
Um..used the module you provided..thanks for that, but..I find although it shows us what this script can do - not anything impresive. From the average joes position this script will mean absolutely nothing..only for those with scripting skills will this do something. Why not produce something most on the vault who have NO SKILL in SCRIPTING can use. Why not produce several EXAMPLES of this script in USEFUL instances..i.e. Can you make one that one can add to a module that like Orlanders Realistic System shows "thirst, hunger, and fatigue" using the same bar-like example for this mining - NOW "THAT" would be useful and much appreciated. Where you can script all three bars poping up every hour to show where one is in those areas of hunger, thirst, and fatigue...with all penalties included for when one reaches bars that perhaps start to turn red to show your Pc is at a critical level before he/she expire...now that would be cool. Perhaps include in the script too where if one eats [object tag here] or drinks [object tag here] then bars are replenished and the same for RESTING where the bars for fatique are then replenished. That would be AWESOME!..and also another script for holding ones breath underwater too.

The mining example really did not show me much except a bunch of bars the whole time that rarely moved and we are not told for what purpose they are there for. I looked at the script and all it told me is that upon so much damage either one or two or three gems fall ..nice like the ATS crafting system (lots of potential for this script)but in PRACTICAL terms for MOST people here..not useful. YOu should have put in the mod some sort of explanation as to what to expect...just my two cents - really great script...I will give you a 10 if you can produce those script I mention above....but for now..it is useless to me :(

10 for the hard work
8 for making a module (listening to those of us on the vault)
6 for NO explanation as to what to expect in the module
4 for it being useless (no read me also)as a ready to use out-of-the-box script.

total score = 7

To be adjusted if those other areas are fixed...thanks
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by CAP 9fires at 2009-11-01 12:09:58    
Yes, as a matter of fact I can. And yes, I will.
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by jdeavila at 2009-11-01 11:59:29    Voted 7.00 on 11/01/09
Dude...can you please give an example or load a module demonstrating to those of us "simple-types" what this can be used for. It would be nice of you to do this - thanks. I would love to have a: "Hunger, Thirst, Stamina and Tolerance levels or how long a PC can hold thier breath..." put into my mod like Orlanders system does but without all the other stuff...this would be a great way to showcase this script by making a mod demo - can you do this?
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

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 Tutorials


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