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!
CSBuild question: Monster hitpoints?
Moderator: Zyx
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- Paul Stevens
- CSBwin Guru
- Posts: 4322
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
Re: CSBuild question: Monster hitpoints?
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.
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.