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.
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.
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. :)
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.
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.
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.
@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
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.
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.
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.
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.
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
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