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  Color Meter
Author  Civious
Submitted / Updated  11-23-2009 / 01-04-2010
Category  Scripting routines
Expansions  NWN-1.69
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Forums  Link
Description
Inspired by 9fires' MPGM, this is another subroutine for sending a bar graph meter via the text channel to your players. I was intending to merely shorten up his coding but ended up starting over from scratch using a different approach.

A small demo mod is available.

Variables are:
// - iValue: The length of the "foreground" color
// - oPC: The player the message is being sent to
// - sLabel: The label that appears to the left of the meter
// - iBackground: Optional; The background color of the meter; default is black
// - iForeground: Optional; The foreground color of the meter; default is green
// - iShowNumber: Optional; Whether to show the iValue number at the end of the
// graph default is off
// - iMax: Optional; The highest value iValue can be; default is 100 used for
// percentages




Upload the erf or cut & paste the code shown

Files

NameTypeSizeDownloads
civ_colorbar.erfciv_colorbar.erf
Submitted: 11-23-2009 / Last Updated: 01-04-2010
erf4.4Kb74
--
CIV_Color_Bar.modCIV_Color_Bar.mod
Submitted: 11-23-2009 / Last Updated: 11-23-2009
mod30.45Kb82
--
SCORE OUT OF 10
10
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 (14):

Posted by Civious at 2010-01-03 05:21:17    
oops, thanks for catching that. Dark blue is wrong too. I'll update both shortly.

Posted by CAP 9fires at 2010-01-02 22:49:09    Voted 10.00 on 12/29/09
case 11 of the iBackground switch is wrong. Should read

case 11: sBackColor = STRING_COLOR_PURPLE; break;

And yeh, I dig the math, but I still prefer to calculate the percentage outside of the function.
Modified my MPGM to reflect your math, but essentially they're the same thing.

Happy TwentyTen
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by Civious at 2009-12-31 04:24:08    
Thanks Cap 9fires, it was your script that gave me most of the inspiration to do this ;)

Posted by CAP 9fires at 2009-12-29 15:13:27    Voted 10.00 on 12/29/09
Took me a while to get around to this, Civious. But I gotta say, thats purdy damned clever, I love this bit -

'string sBarMessage = sLabel + ": " + sForeBar + sBackBar;'

That never even occured to me, but damn logical.

Good job.

Cheers
_________________________
Vox Populi. Vox Dei
The Community Adventure Project

Posted by GhostOfGod at 2009-12-22 23:50:11    Voted 10.00 on 12/22/09
Awesome! Well done.

Posted by Civious at 2009-12-21 07:38:31    
Well Gryphyn's coding is quite a bit different than mine but it certainly helped. To say it's "where Civious got his stuff from" makes it sound like I ripped it off.

Posted by Gryphyn at 2009-12-20 14:53:06    
Link (that's where I haunt)
Civ took the HCR stuff (HTF) I did for TheFold and extended it a bit.
It's only a fancy 'Display' proc, which I used to replace the default HCR one(s)

Posted by Fleshmelter at 2009-12-19 02:48:44    Voted 10.00 on 12/19/09
I'm sure I'll have something come from this =) how useful it is well....anyways thanks for this clever little add.
_________________________
PW Action Server:
| Chaosgate |


Posted by Civious at 2009-11-30 07:20:05    
Thanks for the votes. I got permission from Gryphyn to release his colored meter for the HCR2 hunger/thirst/fatigue systems. I'll be releasing it soon.

Posted by Primeval Atom at 2009-11-30 03:19:30    Voted 10.00 on 11/30/09
It is very neat...

I plan to use it for a HTF & Bonus XP
an increasing meter...

Very nice indeed
Thanks
_________________________
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Rip RPG

Posted by Saduj at 2009-11-25 10:24:29    Voted 10.00 on 11/25/09
Neat!
_________________________
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 The Amethyst Dragon at 2009-11-24 21:35:21    Voted 9.50 on 11/24/09
Nice little piece of coding. I'm going to use it as an inspiration for my own scripting (since I'll be able to write my own with any options I want).
_________________________
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 Civious at 2009-11-24 15:51:42    
jdeavila: Actually one of the guys in our "group" made one for the HCR2 ruleset that is slightly different. I studied some of his code to make this and forgot to thank him...so a big thanks to Gryphyn ;) I'll ask him if he can release it, in any case we'll be using it in our PW

Posted by jdeavila at 2009-11-24 15:39:28    
Can you do something like a "Hunger, Thirst, Fatigue" script system with this?..if so can you upload one for us non-scripter types - thanks!
_________________________
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 Modules


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