There are two parts to this. Tokens being moved to the Object layer, and definition of "deathpoint".dontadow wrote:This is great. I do have a quick question. I do death a bit differently in my campaign. How do i edit the death rules (where do i go).
In my game PCS are disabled after they hit -0 and for every -10 they receive an injury. If a player has 4 injuries they are dead.
One day i want to try the whole rules, but for now I'd be satisfied with tokens not turning into obstacles once they reach -10. How do I change this to them just becoming prone and disabled indefinately?
Stopping tokens from dropping to the Object layer:
We found all the dead tokens remaining on the token layer to be cumbersome, which is why they drop to the object layer. Also, if the DM puts a list of items in the Notes field of the token, then when it drops to the object layer the players can click and easily "loot" the body.
If you want them to do something else, then the spot to make the change is in one of these routines (depending on whose HP Bars you are using):
subUpdateHPStatesBarsLGM
subUpdateHPStatesBarsAliasmask
In subUpdateHPStatesBarsLGM look for this bit of code and remove the two lines that sets the token to the object layer:
Code: Select all
...
[H, IF( isNPC() && !tDieHard ): eval(if(state.Dying, 'setLayer("object")', '0'))]
[H: state.StableHP = if(((HP + HPtemp) >= 0), 0, state.StableHP)]
[H: state.Dead = if((HP + HPtemp) <= deathpoint, 1, 0)]
[H, IF(state.Dead), CODE: {
[H: if(isNPC(), setLayer("object"), '0')]
[H: state.Dying = 0]
[H: state.Unconscious = 0]
[H: state.Prone = 0]
[H: state.StableHP = 0]
}]
[H: eval(if(state.Dead, 'removeFromInitiative()', '0'))]
...
1) D&D ... HP <= -10
2) PF ... HP <= max( -10, Constitution)
3) Creature Type (Undead, Constructs, Swarms all die at 0 hp in both systems)
In the table SysVars, row 6 has a deathpoint override for specific creature types.
Code: Select all
[{"deathPoint":"0","typeArray":["Construct","Undead"],"subtypeArray":["Swarm"]}]
Code: Select all
[
{"deathPoint":"0",
"typeArray":["Construct","Undead"],
"subtypeArray":["Swarm"]},
{"deathPoint":"-40",
"typeArray":["Humanoid"],
"subtypeArray":[""]}
]