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  Colored Mob Life Bar Indicators
Author  Fleshmelter
Submitted / Updated  12-19-2009 / 12-21-2009
Category  Scripting routines
Expansions  HOTU-1.69
Format  Code Only
Type  Type - Combat
Includes  Custom
Description
Using Civious's Color Meter Link

I created Life Bars for mobs... not that it's anything clever, but I thought I'd share it.

3 files that you can use to substitute on your own mobs, or merge code into your own. For this to work you will have to use custom mobs (all my mobs are), and set a string variable "NameSet" to the name of the mob.

This names the mob correctly in combat notification channel.

Note: I did not include my modified Civious's Color Meter in the erf, and you will need to change the SendMessageToPC(oPC, sBarMessage); to SetName(OBJECT_SELF, sBarMessage); in his script to make it all work.

Bug:
When mob dies it won't show final death bar at 0 in combat window, it will be at what ever hit points were left when mob died (although it will display correctly if you mouse over mob corpse).

[ Now contains Civious's Color Bar Module w/original script, too give you something to play around with, and maybe inspire you too!]

Files

NameTypeSizeDownloads
MobLifebars.rarMobLifebars.rar
Submitted: 12-19-2009 / Last Updated: 12-21-2009
rar32.38Kb113
Updated with rafhot's addition (thanks!), and includes Civious's original module. Still if you enjoy it don't forget to vote for Civious's Color Bars as they were instrumental in providing this!
SCORE OUT OF 10
9.88
8 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

Lifebars!


More Lifebars!


Still More Lifebars!!


Are we done yet!





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

Posted by maddogfargo at 2011-03-09 20:55:46    Voted 10.00 on 03/09/11
This is FANTASTIC - exactly what I needed!

I was trying to find a way to show an Energy Level for a custom system I was working on for a conversion project. This wouldwork perfectly and if the ratio is tweaked right will allow meto increase a player's energy reserves based on levelup options!

Posted by jdeavila at 2009-12-31 00:09:20    Voted 9.75 on 12/20/09
I have been waiting for Orlanders system of forever and a day..woo hoo!!!..thanks for the heads up. But I still would like a stand-alone HTF..I hope you will still make one.
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by jdeavila at 2009-12-28 15:24:18    Voted 9.75 on 12/20/09
Thanks..would be cool if you did one up and put it on the vault.
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by Fleshmelter at 2009-12-28 11:50:17    
I'll take a look at it, but I make no promises =)
_________________________
PW Action Server:
| Chaosgate |


Posted by jdeavila at 2009-12-27 23:27:31    Voted 9.75 on 12/20/09
Hey Fleashmelter..do you think you can come up with a HTF system you can post..using the suggestion I pose above (see the link above)
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by Fleshmelter at 2009-12-23 18:02:42    
Awesome thanks for the vote, glad you were able to fix it to your liking too =)

I'm sure others can get use from that little tidbit too.
_________________________
PW Action Server:
| Chaosgate |


Posted by GhostOfGod at 2009-12-22 23:47:58    Voted 9.50 on 12/22/09
This is awesome! The stuff people are still coming up with for NWN.
One tiny suggestion though. If the name of the creature is short sometimes the life meter shows up on the same line. Or if the name is really long then part of the name shows up with the meter on the second line etc..It's a bit annoying.
So I changed what you had slightly by adding in a line break ("\n") so that the meter skips down to the line after the name. Like so:

string sBarMessage = sLabel + " :" + "\n" + sForeBar + sBackBar;

Thank you very much for posting this.

Posted by Civious at 2009-12-21 07:29:43    Voted 10.00 on 12/21/09
Forgot to vote

BTW, I just looked at it and the modified code is in the erf...most likely it automatically included it in your export due to the fact it is an include file.

If you want to just copy my code and include it as a seperate script go ahead ;) The way it is now it will overwrite the original script.

Posted by Civious at 2009-12-21 07:20:05    Voted 10.00 on 12/21/09
Nice, good to see an application I wasn't expecting :)


Posted by olcottr at 2009-12-21 03:18:28    Voted 10.00 on 12/21/09
This could be very useful for those mods where the modmaker makes weird mobs (like the Rose of Eternity series).

Posted by jdeavila at 2009-12-20 21:03:54    Voted 9.75 on 12/20/09
@Gryphyn - nice site..I checked it out.

...do you think you (or anyone else) can post your scripts for the HTF on the vault..I am sure MANY would love that...it would be awesome if you could. Or if you can't because you have integrated it into your PW with some other scripts already and don't have a seperate set of scripts for this then can you make some? I am just looking for a HTF system stand alone to integrate into my PW using the same bars as you do in the same manner.
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by Gryphyn at 2009-12-20 14:52:37    
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 Saduj at 2009-12-20 14:16:02    Voted 10.00 on 12/20/09
Great stuff ! Makes combat more intuitive for sure :)
_________________________
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 jdeavila at 2009-12-20 13:29:32    Voted 9.75 on 12/20/09
@Fleshmelter..nice..EXACTLY what I am looking for..can you provide a link to his site or e-mail?..that would be really cool..thanks.
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by jdeavila at 2009-12-20 11:12:52    Voted 9.75 on 12/20/09
Can you do something like this for say a Thrist & Hunger & Fatigue (needed rest) - system like Orlandar had in his realistic system? This is cool..can you make a script system that would take all that into account?
_________________________
Imtherealthing

CCP (The Community Creature Project)

The TRIAD

Posted by Fleshmelter at 2009-12-20 03:32:56    
@rafhot
Awesome, that'll make it nice and more user friendly for those that have large numbers of mobs or use stock bioware ones.

@Gryphyn
I have always like the HTF systems, and the graph bar has always been on my mind when I first saw it used in the HTF system. Glad to see you still hard at work on it!
_________________________
PW Action Server:
| Chaosgate |


Posted by rafhot at 2009-12-19 21:33:50    Voted 10.00 on 12/19/09
very cool idea

i have made some changes in the on spawn code to allow set variable automatic in any char on spawn so no need to setup one by one

//Mob Lifebar OnSpawn///////////////////////////////
object oMob = OBJECT_SELF;
string sNome = GetName(OBJECT_SELF, FALSE);//rafhot
SetLocalString(oMob, "NameSet", sNome);//rafhot
string oName = GetLocalString(oMob, "NameSet"); // string variable needs to be set on mob to name mob properly.
int iHP = GetCurrentHitPoints(oMob);
int iMaxHP = GetMaxHitPoints(oMob);
CIV_ColorBar(iHP, oMob, oName, 1, 3, FALSE, iMaxHP);
////////////////////////////////////////////////

Posted by Fleshmelter at 2009-12-19 19:29:49    
I wouldn't say there's anymore spam than normal, it just stands out more because of the color bars.

If you notice it doesn't add anymore info, just changes the name of the mob to reflect it's overall health.

But thanks for the vote!
_________________________
PW Action Server:
| Chaosgate |


Posted by ShaDoOoW at 2009-12-19 17:25:38    Voted 5.00 on 12/19/09
Guess its first realy useable idea for that scripted statusbar. And although idea is great, implementation makes combat log very spammed.
_________________________
[Boost System] [Door System] [Devastating Critical Immunity] [HIPS remake] [Circle Kick Mode] [1.69 Full 2da Source]

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 Original Hakpaks


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