monsters hit point

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

monsters hit point

Post by Joramun »

I noticed Monster hp, unlike character hp, are not multiplied by ten internally. It is odd, I think it should be the same way for monsters and characters, especially because it avoids handling damage differently.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

Multiplying everything by ten internally was mainly to allow more resolution in the case of bonuses, regeneration, etc., and to make the stats consistent instead of having stamina being weird.

Most of the game's Lua code itself uses the more familiar "DM scale," with the multiplication of player HP by ten happening at a very late stage in the processing. So, provided you use something like do_damage instead of simply dsb_set_hp, they are already on the same scale (albeit the scale that's a factor of 10 smaller)-- it's not perfectly consistent, I admit, but I think it should be ok, and I'm not really enthusiastic about totally changing how monster hp works. :)
Post Reply