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!]
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!
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
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
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:
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
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
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
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
@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);
////////////////////////////////////////////////