1 question (well... 2 to be exact)

This is a discussion on 1 question (well... 2 to be exact) within the A Brief History of Cprogramming.com forums, part of the Community Boards category; how do you calculate HP from constitution?
how do you calculate mana from intelligence?
show me your way(s).
i'm doing ...

others keep them entirely seperate. for example, a character can get mana + ( int / 2 ) mana per level, and intelligence only gives percent chance to cast spells or something, so if a character starts with a D&D 14 intelligence, they get 7 extra mana per level and have, say 80% chance to cast spells of their own level, and a higher % for every level lower.

its entirely up to you how you want your game to be played, and whether attributes will increase over time like most MMORPGs or stay the same, like D&D.

Is this a serious question? Just wondering. If it is then you simply scane the whole file and count the number of newline characters. Since a newline character is the same as any other character it is the same as finding the number of accurances of any character. Simply go through the whole thing and count the number of newline characters.
Of course someone will come along and show how inefficient this is and devise a replacement.