Got it working - thanks for the input guys...
Its basically Tom's system but with some fundamental changes:
1. The bleed damage no longer heals once you stabilize - you remain at whatever hp you were at when stabilization occurred.
2. I changed the method used to determine if a dying PC stabilized - the chance of stabilization is now a fixed 10% chance per round (as per the PHB).
3. Enemies will now loot either gold or a random inventory item (including items that are not equipped). Items in the creature inventory slots are ignored. Looters will loot gold 50% of the time and an item the remaining 50% of the time. Looters will not loot a cursed or plot item. Only creatures flagged with the variable NWR_FLAG_LOOTER, humans, humanoids, or rogues will loot a dying PC.
The code is here for anyone that wants to see it...
http://pastebin.com/V9jVydu9The next step will be to exclude certain creatures like ghouls, ghasts, etc. from the loop that prevents a creature dealing the coup-de-grace. These creatures will continue to attack a dying creature even if enemy threats are nearby.
Modifié par Pstemarie, 13 août 2012 - 01:05 .