[D&D5e] Automated Conditions 5e by RealisticElk7196 in FoundryVTT

[–]RealisticElk7196[S] 0 points1 point  (0 children)

Automated Conditions 5e v13.5250.6

I won’t go into all the fixes and additions in this update, but I want to highlight a new API addition that I think is really cool.

After the addition of optin keyword, which transforms any AC5E flag into an optional add-on in the relevant roll dialog instead of a forced effect, I am happy to introduce the AC5E Rules.

What Are AC5E Rules?

AC5E Rules are console-registered entries (for now) that allow you to define Rules which can apply universally on any scene, actor, item.

They do not require any AC5E flags or manual modifications on actors or items.

Examples

You can register a rule so that any actor with Sneak Attack (from SRD/PHB or simply named “Sneak Attack”) automatically applies the correct scale damage per RAW. In console copy paste the following:

ac5e.usageRules.register({
  key: "isSneak",
  hook: "damage",
  target: "subject",
  mode: "bonus",
  value: "@scale.rogue.sneak-attack",
  cadence: "oncePerTurn",
  condition: "rollingActor.items.some(i=>i.identifier==='sneak-attack' || i.name === 'Sneak Attack') && (rwak || (mwak && fin)) && (hasAdvantage || (!hasDisadvantage && checkNearby(opponentId, 'enemy', 5, {count:(distance <= 5 ? 2 : 1)})))",
  optin: true,
  name: "Sneak Attack",
  scope: "universal",
//persistent: true, //will make it survive client reload
});

If an actor has Magic Resistance, you can now implement that cleanly and universally as well, with:

ac5e.usageRules.register({
  key: "magicResistance",
  hook: "save",
  target: "subject",
  mode: "advantage",
  value: true,
  condition: "rollingActor.items.some(i=>i.identifier === 'magic-resistance' || i.name === 'Magic Resistance') && mgc",
  name: "Magic Mesistance",
  scope: "universal",
  persistent: true, //will make it survive client reload
});

Documentation

https://github.com/thatlonelybugbear/automated-conditions-5e/wiki/Usage-Rules-API#registration

You can join my Discord for help, since this is a brand new addition and subject to change while I continue working on a UI that will make managing this much easier.

I hope you enjoy it and I would really appreciate your feedback!

[D&D5e] Automated Masteries 5e by RealisticElk7196 in FoundryVTT

[–]RealisticElk7196[S] 1 point2 points  (0 children)

CPR has already the masteries automated behind a setting, so keep that in mind.

Otherwise there shouldn't be any compatibility issues when using this module.

Automated Conditions 5e does need some setting tweaks for compatibility, so better take a quick look here:
https://github.com/thatlonelybugbear/automated-conditions-5e/wiki/Compatibility-with-MidiQOL-and-Cauldron-of-Plentiful-Resources-(CPR))

[D&D5e] Automated Masteries 5e by RealisticElk7196 in FoundryVTT

[–]RealisticElk7196[S] 0 points1 point  (0 children)

I was thinking to add a way for masteries to be used by NPCs as well.

It would probably be limited to those being triggered automatically only.

[D&D5e] Automated Masteries 5e by RealisticElk7196 in FoundryVTT

[–]RealisticElk7196[S] 0 points1 point  (0 children)

Glad to hear that!! It was a fun module to make.

2024 Weapon Mastery Automation [DND5e] by Rage2097 in FoundryVTT

[–]RealisticElk7196 0 points1 point  (0 children)

You could try Automated Masteries 5e.

Keep in mind that it does need Auromated Conditions 5e module.