Page 1 of 1

CSBuild question: Monster hitpoints?

Posted: Tue Mar 04, 2003 8:17 pm
by Gambit37
In CSBuild, the dialog box for modifying generators states that the monster's hitpoints are calculated using this formula:

(HPM ? HPM : LEM) * BHP + random (BHP / 4 + 1)

While I understand the second part, could you please explain to us non-programmers what the first part (HPM ? HPM : LEM) means? I am not familiar with this syntax.

Thanks!

Re: CSBuild question: Monster hitpoints?

Posted: Tue Mar 04, 2003 9:49 pm
by Paul Stevens
You ain't supposed to understand easily! We
programmers like to have our secrets. Otherwise
people would discover that we are not so smart
after all.

That syntax means:
if HPM is non-zero then use HPM else use LEM

In this instance it means if the monster's HitPointMultiplier
is non-zeo use it. Else use the LevelExperienceMultiplier.