Sign in to follow this  
Salk

Understanding CurrentHitPoints, MaxHitPoints, HitPoints, ForcePoints and CurrentForce

Recommended Posts

Hello!
 

I'm trying to figure out how the game deals with those values and I'm not sure I understand how it is supposed to work. While I understand the necessity of four fields (CurrentHP, MaxHP, CurrentFP, MaxFP), it doesn't seem the game file follows this rather logical approach and provides 5 fields instead. One may think that setting the same value for CurrentHitPoints and MaxHitPoints would result in the character having that very number in a full bar and same thing for Force Points. But no... That would have been too easy.

I'm busy editing the .utc files for the various Evil Bastila files found in unk_m44ac and I was trying to make sure the level matches with the HP and FP. Since they don't (I have tried levelling up Bastila to that very same level by giving her enough XP and the HP and FP are not the same), I wanted to edit them properly. So, as an example, Bastila at Lvl 18 should have 180 HPs and 198 FP. I insert 180 using the K-GFF editor in CurrentHitPoints, MaxHitPoints and HitPoints and 198 in CurrentForce and ForcePoints. The result is that Bastila has full bars with 216 HP and 288 FP.

Then I tried doing something different. I used 10 for CurrentHitPoints and HitPoints and 180 for MaxHitPoints. And 10 for CurrentForce and 198 for ForcePoints. The result was that Bastila now had a HP full bar of 46/46 and a partial bar of Force Points (100 / 288, if I recall the first value well enough).

Does anyone here know how those values really are calculated and which ones should be edited leaving the rest alone?


Thanks!

 

UPDATE: I think I can answer my own question here and perhaps I should just open a new topic to explain things for others that may have been wondering the same.

Apparently the values to insert in the file should be minus the bonus coming from Attributes and Feats because those ones are added by the engine to the total. I just need to figure out why the HP has three and not two fields.

  • Like 1

Share this post


Link to post
Share on other sites

I'm necroing this thread even though it's a faux pas in case anyone else (like me) is desperately trying to figure out why in the hell there are three entries for hp. So, here's for posterity:

I hope one of the greats will correct me if I'm wrong about any of this.

I believe (99% sure) that the max hp actually is the constitution modifier, and that feats are also accounted for by the Max HP value. I'll explain why.

Examples from vanilla utc files:

Bastila is a Jedi Sentinel, she is at level 3 and gets 8 vitality points per level. She also has 12 Constitution, so a modifier of +1 per lvl. Her Base HP and Current HP are both 24 (3×8) and her Max HP is 27 (+3 from CON).

Carth is a Soldier, he is at level 4 and gets 10 vitality points per level. He has 12 Constitution, so a modifier of +1 per lvl. His Base HP and Current HP are both 40 (4×10) and his Max HP is 44 (+4 from CON).

Mission is a Scoundrel, she is at level 3 and gets 6 vitality points per level. She has 12 Constitution, so a modifier of +1 per lvl. Her Base HP and Current HP are both 18 (3×6), and her Max HP is 21 (+3 from CON).

It seems clear that the Max HP value is accounting for the Constitution modifier.

Now let's look at Canderous since he has the Toughness Feat. 

Canderous is a Soldier, he is at level 5 and gets 10 vitality points per level. He has a Constitution of 14, so a modifier of +2 per lvl. His Base HP and Current HP are both 50 (5×10), however his Max HP is 65. His +2 Constitution modifier make his Max HP 60, so it seems logical that the extra 5 is coming from the Toughness feat, which is +1 per level.

The only thing that casts any doubt on this is HK-47. As a combat Droid he should get 12 vitality points per level. He joins the party at level 6, so he should have at least 72hp. But in his utc he only has 60 Base/Current HP and he has 66 Max HP. He has 10 Constitution. So these numbers line up perfectly with a level 6 Soldier with a Constitution of 10 (no modifier), but who has the Toughness feat.

If I'm correct then HK-47 should have a Base HP and Current HP value of 72 (6×12), and a Max HP value of 78 (+6 from Toughness).

I'm not sure what to make of that, as I checked the classes.2da file and the combat Droid does indeed get 12 vitality points per level, so it would seem that there was a mistake made in his utc file. Or that at some point Bioware changed the Combat Droid hitdie value in classes.2da from 10 to 12 for balance reasons, but forgot to update his utc file. HK-47 has a Strength value of 16, so our poor and innocent assassination Droid was clearly overlooked quite a bit.

The game SHOULD give him the correct HP value, as it does calculate what an NPC's health should be based on stats and modifiers and assigns that value, regardless of what is in the files (I believe) but I don't have a save with him present to confirm this. But if this irks anyone else, and even if the game does correct it, HK-47 should have Base HP/Current HP 72 and Max HP 78, and it's very easy to change with Kotor Tool or the Holocron toolset.

I think I'm right that Base HP and Current HP are what the character should have based on their class/level, and that Max HP is the Base HP + Attribute and Feat modifiers.

Again, if anyone can confirm what I've said, that would be good, if not I'll update this comment when I have definitive answers.

Sorry to necro an old thread, but I found this thread while searching for an answer to why there are 3 HP values in the utc files, and what they all meant. I couldn't find a definitive answer to this and figured all of this out myself. I thought I should share this information as a service to the community, in case anyone was trying to edit companion stats but was hesitant to do so out of fear of messing something up. I chose to post this here instead of creating a new thread because it answers the OP's question. 

I hope this information is helpful to someone.

EDIT: 

Just a small update to confirm that the information I posted above is indeed correct. Base HP and Current HP is the character's total hitpoints from the class hitdie value (in classes.2da) multiplied by the character's level. And both of these values should be the same, unless for some reason you want the character to start with less health.

And most importantly, the Max HP value is the Base HP with all modifiers from Constitution and Feats added to it.

Edited by AOD333
Update

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this