I think I've asked about this before in another thread but I can't seem to find it. I'm trying to set up a system where characters in the player party get one of a random "injury" status effects whenever they go down in combat (semi-random, anyways: with available injury status effects getting worse for each one you've already got.) This is very similar to the injury system in Dragon Age: Origins and Dragon Age II. I remember being advised that this could be done via "Death Events" that play when a combatant dies, but I can't find death events anywhere. Is that the right way to do it and if so where are Death Events?
Each combatant can override the default events in it's Battle Settings > Override Settings > Battle Animations.
For the general mechanic you can e.g. use a Random or Chance Fork node, use Check Status node to check if a status effect is already applied, etc.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
For status effects, you can control this via the effect's setup, e.g. by default effects are set up to end on the combatant's death. Check the Effect End Settings of the status effect.
They're also saved with save games, unless you disable the Save Game option on an effect.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Under "Battle System > Battle Settings > Combatant Settings > Battle Animations" I have checked "animate action" for death animation, then added an animation with a DeathEvent event. Chance 100; field disabled; turn based, active time, real time, phase all enabled; grid battles yes; used by player and ally enabled, enemy disabled. No set prefabs or audio clips, no use requirements.
The first node of the event is a debug node that is not getting called when the player character's hit points reach 0 and the battle ends in defeat. Currently the HP status has "Death On" set to "on Minimum". Checking the combatant components "Is Dead" is getting set to True when they're HP reaches 0. But the event is not firing. Any idea what could cause that?
Also, is your combatant maybe overriding the default battle animation for death?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
2) In regards to menus that display status effects: for status effects that are stackable there's a "Combined Stacked" option. But if I have that turned on how would I have it also display the number of stacks?
2) The content labels of status effect HUD elements can use text codes to show the stack count: %sc and %sc2 (only shows if more than 1 is applied)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!