Skip to content

1.6.0

Choose a tag to compare

@Majsnic Majsnic released this 04 Nov 09:12
· 37 commits to main since this release
d589dc2

🎯 "Who takes the damage?"

During a fight, when someone rolls damage or healing, a window asks Who takes the damage? (or Who takes the heal?). One click and the HP is taken off or added.

Where the rolls come from

  • the dice tray of the Game Master Interactive Screen;
  • the roll buttons on One DnD Character Sheet;
  • Fantasy Statblocks actions (through the Dice Roller plugin).

How it works

  • Click a creature to apply the roll straight away. This works for character sheets, army groups and Cyberpunk RED armour too.
  • Several targets… lets you tick everyone caught in a Fireball and apply it to all of them at once.
  • ½ halves the damage for a successful save or resistance. You can also type any amount.
  • Nobody closes the window without changing anything.
  • The likely targets come first: a monster's damage lists the party first, and a player's damage lists the enemies first. The attacker and anyone already down go to the bottom. Healing lists the healer's own side first.
  • Attack rolls, checks and initiative rolls are ignored. If two rolls come in quickly, the second window waits for the first.
  • With the GM screen installed, rolls are taken from its roll event. Without it, Roll for Initiative reads the Dice Roller plugin itself. You never get the question twice.

New setting: Settings → Rolled damage and healing → Ask who takes rolled damage / healing (on by default).

🔌 API

New call ri.applyRoll({ total, kind: "damage" | "healing", damageType?, who?, action? }). It opens the window from another plugin or script. See API for other plugins in the README.

🐛 Fixes

  • The New combat window now shows its accent colours (hover outline and player chips).

Install / update

  • BRAT: run BRAT: Check for updates, or restart Obsidian.
  • By hand: replace main.js, manifest.json and styles.css in .obsidian/plugins/roll-initiative/ with the files below, then reload Obsidian.

Full changelog: CHANGELOG.md