Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 30, 2010, 18:51   #1
tezster
Rookie
 
Join Date: Mar 2010
Location: Canada
Posts: 1
tezster is on a distinguished road
CON stat as it relates to amount of HP gained/level

This is my first post - sorry if this has been covered before.

As I understand it, the higher your CON, the more HP you gain when you level. Does this mean that it's better to max out your CON stat as early as possible? Or does your max HP get re-adjusted anytime your base HP CON stat changes?
tezster is offline   Reply With Quote
Old March 30, 2010, 19:30   #2
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
Not 100% sure, but I think your max HP get changed dynamically when your CON changes - at least, that's what I recall happening when getting hit with CON-draining attacks! But I could be thinking of a variant, not Vanilla...
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old March 30, 2010, 20:48   #3
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
It doesn't matter when you get your CON bonuses; your hitpoints are recalculated on the fly.

As I recall, the way this works is that your race and class together determine your hit die, which is the die that is rolled to see how many hitpoints you get when you level up. The results of these die rolls are fixed (that is, losing/gaining experience won't reroll them). In addition to this, you get a bonus to your hitpoints based on your level and CON stat.

So let's say you're a level-10 character with a d10 hit die. You've rolled a 6, 8, 2, 4, 4, 1, 9, 6, 5, 8 for your hitpoints, giving a total of 53 hitpoints. Let's say you have a high CON score, so you get a per-level bonus to your CON of 5 hitpoints. That means that your actual hitpoints would be 53 + 5*10 = 103. Now you put on the Helm of Hammerhand and increase your CON; your new bonus is 7 hitpoints per level, so your total HP is 123. Then you encounter a Purple Mushroom Patch that completely wrecks your CON stat, leaving you with a measly 1 CON/level bonus; your new HP is only 63.

Make sense?
Derakon is offline   Reply With Quote
Old March 30, 2010, 20:54   #4
paboperfecto
Scout
 
Join Date: Dec 2009
Posts: 27
paboperfecto is on a distinguished road
I'm looking at the NPP code but I don't think the code would be different. You get a constitution bonus to your HP (as determined for each level at birth based on your hitdice - in other words when you create your character your HP bonus for each level gain is determined at that time by a random number based on how many hit dice you have) which is multiplied by your level.

Code:
MaximumHP = Sum of Hit Dice to current level + (constitution bonus * level)
In other words it doesn't matter when you get your constitution, the bonus is recalculated every time that it changes. In the NPP code the max bonus is 12.5 or 625 HP at level 50.
paboperfecto is offline   Reply With Quote
Old March 30, 2010, 21:11   #5
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
Incidentally, you'll occasionally see reference to a "life rating". This number measures how lucky you were when rolling hitdice, compared to the average, and is always expressed as X/100. A character with a d10 hitdie would get, on average, 5.5 hitpoints from hitdice per level, leaving him with 275 hitpoints from hitdice at the end of the game. The theoretical maximum would be 500 hitpoints from hitdice, and would give a life rating of (I think) 181/100. The theoretical minimum would be 50 hitpoints from hitdice, giving a life rating of 18/100. Though, note that you always get a perfect roll on hitdice for your first level, so that low value wouldn't actually be possible.

Some variants have ways to reroll your life rating, which involves rerolling your hitdice.

Half-Trolls have a d12 hitdie, and, assuming I'm reading p_class.txt correctly, warriors add 9 to that. Thus, the theoretical maximum hitpoints in Angband would be 1050 from hitdice + 625 from CON bonuses = 1675. On average, though, a Half-Troll Warrior would have 550 hitpoints from hitdice, giving 1175 total hitpoints.
Derakon is offline   Reply With Quote
Old March 16, 2013, 13:53   #6
Mondkalb
Knight
 
Mondkalb's Avatar
 
Join Date: Apr 2007
Posts: 954
Mondkalb is on a distinguished road
I'm trying to understand the HP mechanism, but ... The game displays the hit die of mages always as 0. Does that mean, it doesn't matter what race you choose regarding hit points? What die roll comes out of a zero sided die?

The only further explanation I have found is from the ability.spo file from 1996 and probably extremely outdated. ( http://ftp.sunet.se/pub/games/Angban...er/ability.spo )
Though it says there
Quote:
A 50th level character will always have a number of hit points (unadjusted
by Constitution) between 50+(150*(base HD-1))/8 and 50+(250*(base HD-1))/8.
which makes little sense - with a base HD of 1 the formula would result in maximum hit points of 50.

Last edited by Mondkalb; March 16, 2013 at 14:16.
Mondkalb is offline   Reply With Quote
Old March 16, 2013, 15:00   #7
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
A characters hit dice is the sum of the hit dice for their class and the hit dice for their race. A mage class gives no hit dice, so it would be based on the race alone.

So a human warrior gets 1d19 (10 for human, 9 for warrior) per level (plus con bonuses).

Whereas a human mage only gets 1d10 (10 for human, 0 for mage) plus con.
kaypy is offline   Reply With Quote
Old March 16, 2013, 15:39   #8
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
Meanwhile your CON gives you a bonus to HP based on your level. For example, if your CON bonus is 2 then you'd get clvl * 2 extra HP from CON. CON bonuses max out at 12.5 HP/level at 18/200.
Derakon is offline   Reply With Quote
Old March 16, 2013, 16:17   #9
Mondkalb
Knight
 
Mondkalb's Avatar
 
Join Date: Apr 2007
Posts: 954
Mondkalb is on a distinguished road
The table from the old spoiler file seems to be still correct then.
Mondkalb is offline   Reply With Quote
Old March 18, 2013, 06:01   #10
Timo Pietilš
Prophet
 
Join Date: Apr 2007
Location: Climbing up from hole I just dug.
Posts: 4,096
Timo Pietilš is on a distinguished road
Quote:
Originally Posted by kaypy View Post
A characters hit dice is the sum of the hit dice for their class and the hit dice for their race. A mage class gives no hit dice, so it would be based on the race alone.

So a human warrior gets 1d19 (10 for human, 9 for warrior) per level (plus con bonuses)..
Hm, is that 1d9 + 1d10 IE. minimum of 2 / level and biased toward average of two, or does it really add sides together and after that adds rolls so that combined it is flat 1d19. Not that it matters much, but just out of curiosity.
Timo Pietilš is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stat Gain Larvitz Vanilla 4 February 1, 2009 21:50
Stat Bonus vs Level Gain, stagnation too! Hariolor Vanilla 11 September 13, 2008 00:09
Max amount of spells? steeg1234321 Vanilla 11 April 4, 2008 14:28
Stat hacking Old Man Vanilla 1 October 12, 2007 15:13
[Un] - Prayers gained from studying beads Matthias Variants 1 June 18, 2007 16:11


All times are GMT +1. The time now is 12:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.