Coder Social home page Coder Social logo

derpenstein69 / automated-conditions-5e Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thatlonelybugbear/automated-conditions-5e

0.0 0.0 0.0 356 KB

A small module for Foundry VTT and Dnd5e game system, which uses dnd5e Hooks to add the correct config options for Rolls for the most common 5e conditions.

License: MIT License

JavaScript 100.00%

automated-conditions-5e's Introduction

Automated Conditions 5e

Latest Version Foundry Core Compatible Version Dnd5e System Compatible Version

ko-fi

Total Download Count Latest Release Download Count Forge Installs

Description

A small module for Foundry and Dnd5e which uses dnd5e system Hooks to add the correct config options for Rolls, trying to automate the most common Dnd5e Conditions.

Rolling with Core, will indicate the correct button to press, on Attack Rolls, Damage Rolls, Saving Throws, Ability Checks and Skill Checks, according to the 5e ruleset. Fast Forwarding the rolls (holding SHIFT) will roll with advantage/disadvantage or when needed critical damage correctly.

Dnd5e Conditions supported

  • Blinded: Disadvantage on attacks and grants advantage to attack from others
  • Exhaustion 1: Disadvantage on ability checks (and skill checks as a result)
  • Exhaustion 2: no changes
  • Exhaustion 3: Disadvantage on attacks and saving throws
  • Exhaustion 4: no changes
  • Exhaustion 5: no changes
  • Frightened: Disadvantage on ability checks and attack rolls;
  • Invisible: Advantage on attacks and grants Disadvantage to attacks by others
  • Paralyzed: Auto fail (-99) strength/dexterity saves and attacker within 5ft of the creature deals critical damage
  • Petrified: Grants Advantage on attacks by others, auto fail strength/dexterity saves
  • Poisoned: Disadvantage on attacks and ability checks
  • Prone: Disadvantage on attacks, grants advantage on attacks by others if within 5ft, otherwise grants disdvantage
  • Restrained: Disadvantage on attacks and dexterity saves, grants advantage on attacks by others
  • Stunned: Auto fail strength/dexterity saves, grants advantage on attacks by others
  • Unconscious: Auto fails strength/dexterity saves, grants advantage on attacks by others, crit if hit within 5ft ++ Prone

Settings added for:

  • Armor automation (default off)
    • Ability Checks, Saves and Attack Rolls for (STR || DEX) based rolls, if the Actor is not proficient in the equipped suit of Armor.
    • Imposes disadvantage on Stealth checks when the relevant property of the Armor is selected.
    • From dnd5e v3.1.2 onwards, any Equipment type Item can impose stealth disadvantage too, not only Armor.
  • Range automation (default off)
    • Attacking with a ranged weapon at long range imposes disadvantage on the roll (Long Range).
    • Attacking with a ranged weapon, when an enemy is adjacent, imposes disadvantage on the roll (Nearby Foe).
    • Attacking with a ranged weapon at a distance longer than the long range, imposes a fail on the roll (Out of Range).
    • Crossbow Expert: Ignores Nearby Foes with
      • A flag on the Actor flags.automated-conditions-5e.crossbowExpert | Override | 1 or
      • An Item named Crossbow Expert.
    • Sharpshooter: No disadvantage when shooting at long range with
      • A flag on the Actor flags.automated-conditions-5e.sharpShooter | Override | 1 or
      • An Item named Sharpshooter.
  • Show AC5e tooltips for both Roll Dialog and Chat messages or any combination of these (default both)
  • Exhaustion automation (default on)
    • If you want to not automatically process Exhaustion conditions uncheck this. Doing so will allow for other exhaustion modules to alter exhaustion automation or your own rules (eg Alternative Exhaustion 5e).
  • Encumbrance automation (default off)
    • Dnd5e v3.x system offers a setting for Encumbrance rules. If that is set to Variant, and you turn this AC5e setting on, ability checks, attack rolls, and saving throws that use Strength, Dexterity, or Constitution will have disadvantage.
  • Targeting options (default From source only)
    • When 0 or more than 1 targets are selected, AC5e will not be able by default to calculate correctly advantageMode/damageMode as this is done based on the first of the game.user.targets only. There is now a setting for the GM to decide how AC5e will deal with targeting and rolling an Attack or Damage, or try to Use an Item that has an attack and Target any of the Individual target options in its details tab. The options are as follows:
      • From Source Only: The advantageMode/damageMode will be calculated based on effects/conditions etc on the Source actor only (default option),
      • Do nothing: No calculations whatsoever will take place,
      • Enforce targeting: Will cancel the incoming Roll or Item use, and display a warning for the user to target 1 Target (Use with caution).
  • For D&D5e v3.1
    • Added dnd5e.preRollConcentration hook to deal with conditions affecting concentration saving throws.
      • Exhaustion 3-5 applies disadvantage.
      • Heavy Encumbrance applies disadvantage.
      • War Caster named Item applies advantage.

Compatibility

  • Core highlights the correct buttons to press depending on the conditions on attacker and target, and Fast Forwards correctly.
  • MidiQOL (saves from items are a WIP).
  • Ready Set Roll (AC5e tooltips on dual cards is a WIP).
  • Roll Groups, not tested (seems to not have issues, open an issue if you encounter any).

Credits

  • Special thanks to Zhell for using some of his code from Babonus.

Manual installation

For dnd5e v3.x, use manifest:

https://github.com/thatlonelybugbear/automated-conditions-5e/releases/latest/download/module.json

For dnd5e v2.x, use manifest:

https://raw.githubusercontent.com/thatlonelybugbear/automated-conditions-5e/dndv2/module.json

automated-conditions-5e's People

Contributors

thatlonelybugbear avatar kharmans avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.