0 of 0

File information

Last updated

Original upload

Created by

Lance Botelle

Uploaded by

LanceBotelle

Virus scan

Safe to use

Tags for this mod

Documentation

Readme

View as plain text

Hitpoint Bars By Lance Botelle v1.1 & OPTIONAL OC DEMO v1.0
===========================================================

This is just a "quick" release of my Hitpoint Bar system for creatures in NWN2. There are no detailed instructions for implementation and a basic degeree of understanding scripting for NWN2 is required by the builder to use this.

OPTIONAL FILE (OC DEMO)
=======================

I have included an "override" folder that uses the OC scripts with my HP Bars enabled. Simply use this override folder with the OC to enable HP Bars. (Not Fully Tested!) It
uses a streamilned version of the code, not using any switch system. If you are using this optional file, then you can ignore the original file (for builders) and also ignore the rest of this ReadMe.txt.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BUILDERS INFORMATION (NON DEMO v1.1 ONLY)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SEFS/IMAGES
===========

The "LB HP Effects" folder contained the SEFs/Images for the hit point bars that float above the creatures heads. As I am building a campaign, this folder sits in my Campaign folder, but you may need to incorporate the folder as a HAk or Override if using any other way.

SCRIPTS (lb_hpbars.NSS)
=======================

lb_hpbars.NSS is basically a text file that you can open and copy the contents into your own script .. or copy this file into your module/campaign files.

The "LB_HPBars" script is an include file (with some example code remmed beneath) including functions you need to call to make the HP Bars work (1 is essential and 2 are optional):

UpdateHPBars (Essential).... Is the main function to call to update the hitpoint bars, whether to display for the first time on an encounter or when the creature is damaged.

ForceUpdateHPBars and ClearDownHPBars (Optional) can be used to turn Hit Point Bars on or off with a toggle switch
provided by the builder.

IMPORTANT
=========

1) You MUST use .... SetGlobalInt("HPBARSSTATE", 1); .... in your module somewhere (normally in the module's OnLoad) if you do not intend to set it via a switching system.

2) RECOMMEND YOU ADD THE FOLLOWING LINES TO A CREATURES DEATH SCRIPT (TO ENSURE BAR REMOVAL ON DEATH):-

// REMOVE ANY BARS ANYWAY (DIRECT TO DEATH BYPASS DAMAGE)
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_100");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_90");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_80");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_70");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_60");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_50");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_40");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_30");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_20");
RemoveSEFFromObject(OBJECT_SELF, "alb_hp_10");


CREDIT
======

Please remember to include my name in your credits if you can. (I know how hard is to remember everyone who helped though. ;) )

Thanks for using.
Lance Botelle.