Skip to content

Random assortment of possibly useful doodads, thingumabobs and whatchamacallits for the foundry vtt pf2e system.

License

Notifications You must be signed in to change notification settings

Symon-S/xdy-pf2e-workbench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdy-pf2e-workbench

GitHub release GitHub commits PRs Welcome GitHub contributors

GitHub all releases the latest version zip Forge installs

Translation status

This module is intended to hold a few features for the foundry vtt pf2e system that could well have been separate modules and may well be eaten by the system at some point.

My current ideas (as in, no guarantee they'll ever actually get done) can be seen here

Current features (order by setting section)

A demo video of most features: https://www.youtube.com/watch?v=WzDq2N1X07s

  • Mystification section

    • Enable NPC Mystification. Sets the name of a token on the current scene based on it's traits.
      • Numerous subsettings, for instance: if mystified by dragging it from the sidebar while holding the configured modifier key, clicking the mystify button in the token hud or using the mystify keyboard shortcut (no default set). There are several options to filter out certain types of traits. A prefix or postfix can be added to the mystified name (either a user-provided word, or one rolled on a user-provided rollable table. A sample table named "Workbench Adjectives" is included with the module and need not be imported into the world, just enter "Workbench Adjectives" - without the quotes - in the appropriate textfield). A random number can also be added after the postfix, and optionally be kept when demystifying the creature. E.g. 'Skeletal Champion' could become 'Jack the Mindless Undead Skeleton 23'. Note that player owned tokens will not be mystified.
    • Option to use the mystified name in chat messages created from that npc (actions/spells). Relies on the original actor name being present in the text. Only works if the original npc name is actually used and correctly spelled in the message.
  • Reminder section

    • Option to remind when attack is made by a token that probably can't attack (due to being unconscious / dead / defeated / has no hp / etc).
      • Suboption to allow Eidolons to attack even if they have 0 hp.
    • Option to remind when an attack is made without targeting.
    • Option to show reminder each turn that the number of actions is other than three. Handles Quickened, Slowed and Stunned.
    • Option to automatically add a reminder effect when breath weapons are used (i.e. sent to chat.) Breath weapon description must match "<p>.*can't use.*1d([46]) rounds.*</p>" or the localized equivalent for it to be recognized.
    • Hero point handler. Gives option to (using Configure Controls) add a keybind to open a dialog that can reset or add hero points for all characters, add one hero point to a random (or selected) character (on new timers only) and, most importantly, start a timer to make the dialog reappear after (by default) 60 minutes. Timer now survives refreshes. Reopen the dialog to see how much time remains (press escape to leave without changes).
      • Set number of minutes till the next time the dialog is shown.
  • Quality of Life section

    • Option to add an npc scaler feature when right clicking on an npc (This feature has been taken over from the delisted PF2e Toolbox module. Thanks DJ! At some point Avery will have the time to add it to the system, until then I'll maintain it.)
    • Option to add a quick roller button to the journal directory, enabling improvised npc rolls with no actual npc using the suggested values from the GMG (This feature has been taken over from the delisted PF2e Toolbox module. Thanks DJ!)
    • Option to hold CTRL while casting a spell to cast it as a whispered chat message. Separate option to output a separate public chat message with a Recall Knowledge button to recognize it, an optional save button and an optional trait list, unless you hold CTRL+SHIFT to entirely skip this message.
    • Option to alter the token animation speed. (Not compatible with Multi Level Tokens teleport functionality.)
  • World Automation section

    • Option to automatically move combatant that goes to 0 hp to just before the current combatant. (Normally due to the current combatant just having downed the target combatant.)
    • Enable/disable the option to autoroll damage on a hit.
    • Enable/disable the option to automatically apply persistent healing.
    • Option to automatically reduce Stunned condition at the start of the turn hidden behind option to show actions reminder each turn, which handles Quickened, Slowed and Stunned.
    • Option automatically give Unconscious if Dying is removed when at 0 hp.
    • Option to automatically increase Wounded when Dying is removed (handles the feats Bounce Back and Numb to Death. Only works for players if they themself apply the damage/healing.
    • Option to automatically increase Dying on reaching 0 hp (handles the feats Orc Ferocity , Undying Ferocity , Incredible Ferocity , Rampaging Ferocity and partial handling of Deliberate Death)
      • Suboption to increase dying by one more when damaged by an enemy's targeted critical attack.
      • Suboption to increase dying when taking damage while already dying (does not know about immunities/weaknesses/resistance, so taking 0 damage will trigger it).
      • Suboption for how to handle if the final damage was nonlethal.
    • Option to automatically remove Dying when healed to above 0 hp.
    • Option to drop all held items on becoming unconscious.
    • Option to automate the results of the dying recovery roll button being clicked. (I.e. it does not automatically roll to try recover the dying character.)
    • Option to automatically handle Massive Damage
  • Client Automation section

    • Optional settings to (if the GM allows it) automatically roll damage on a hit for strikes and/or spell attacks. Needs the PF2e system setting 'Show results on attacks and saves' to be set so that the attacker can see the result in the chat. (E.g. for non-gm use either 'Owner' or 'All'). It also rolls for damage if a miss is turned into a hit via a reroll on the chat card.
      • Strikes. On a critical success it rolls critical damage.
      • Spell attacks (incl support for heightened spells). On a critical success it rolls normal damage, use the ' double damage' button on the damage card.
      • Non-attack spells that deal damage (rolled when spell is cast, before saves, so targets need to manually apply the correct amount of damage based on save.) On a critical success it rolls normal damage, use the 'double damage' button on the damage card.
    • Optional settings to (if the GM allows it) automatically applying persistent damage, fast healing and regeneration (with an optional extra debug chat message), inspired by @Jamz' code.
    • Option to automatically reduce the Frightened condition at the end of each turn. See the included effect 'Effect: Minimum Frightened' for how to set a minimum frightened level that the module won't reduce below.
  • Variant Rules

    • Option to change the max number of hero points a character can have. (This feature has been taken over from the delisted PF2e Toolbox module. Thanks DJ!)
    • Option to allow item bonuses when using ABP.
  • House Rules

    • Option to enable Keeley's Hero Point Rule (if reroll die is 10 or less, get a +10 bonus). Courtesy of stwlam
    • Option to enable my personal house rules (currently adds saves to crit spec for flail and hamer)
    • Not yet needed option to add Ancestry Paragon feat slots (don't enable until if/when the system removes them due to not being in the remaster rules)
    • Not yet needed option to add Dual Class feat slots (don't enable until if/when the system removes them due to not being in the remaster rules)
    • REALLY experimental option to use json to potentially brick your world. (Or, see docs/housepatcher.md for more details.)
  • No section

    • Optional setting to automatically collapse chat cards with an h3 header (intended for item cards like spells, feats, items, actions, etc). Can be configured to default to collapsed or expanded.
    • Option to either expand all damage cards, or only expand new cards. If the latter, on a refresh the last three messages are expanded if they are damage cards.
    • Option to add all skill actions to the character Actions page. (This feature has been taken over from the discontinued https://github.com/jamespdaily/pf2e-sheet-skill-actions/ module. Thanks James!)
      • The module will hide any skill actions that you're currently not trained in.
      • Actions that require a feat (e.g. Bon Mot) will not show up unless you actually have the feat.
    • Option to set a custom pause text and image, as well as to move it's position to center of screen.
    • A few potentially useful internal functions have been made available for macro use. Name and simple example of each can be found below:
        resetHeroPoints: resetHeroPoints, // game.PF2eWorkbench.resetHeroPoints(1)
        addHeroPoints: addHeroPoints, // game.PF2eWorkbench.addHeroPoints(1, "ALL") OR game.PF2eWorkbench.addHeroPoints(1, _token.actor.id)
        scaleNPCToLevelFromActor: scaleNPCToLevelFromActor, // await game.PF2eWorkbench.scaleNPCToLevelFromActor(_token.actor.id, 24);
        moveSelectedAheadOfCurrent: moveSelectedAheadOfCurrent, // await game.PF2eWorkbench.moveSelectedAheadOfCurrent(await game.combat?.getCombatantByToken(_token.id).id)
        doMystificationFromToken: doMystificationFromToken, // await game.PF2eWorkbench.doMystificationFromToken(_token.id, true) OR await game.PF2eWorkbench.doMystificationFromToken(_token.id, false)
        generateNameFromTraitsFromTokenId: generateNameFromTraitsForToken, // await game.PF2eWorkbench.generateNameFromTraitsFromTokenId(_token.id)
        noOrSuccessfulFlatcheck: noOrSuccessfulFlatcheck, // await game.PF2eWorkbench.noOrSuccessfulFlatcheck(game.messages.get("messageId"))
        basicActionMacros: basicActionMacros, // await game.PF2eWorkbench.basicActionMacros()
        refocus: refocus, // await game.PF2eWorkbench.refocus()
        callHeroPointHandler: callHeroPointHandler, // await game.PF2eWorkbench.callHeroPointHandler()
  • New Keybinds in Configure Controls

    • Optional keybind to mystify a creature.
    • Optional keybind to open the Hero Point Handler.
    • Optional keybinds for executing a macro in any position on any page of the macro hotbar, whether that page is currently showing or not.
    • Optional keybind called "Add user targets" that lets the GM add token targets to other users by selecting or hovering over those tokens, pressing the keybind and choosing which user should target those tokens. Enables GMs to help players having problems with targeting.
  • Assorted other features

    • The latest versions of all V10-compatible macros from https://gitlab.com/symonsch/my-foundryvtt-macros/-/tree/main/PF2e are included in each Workbench release. They can be found in the compendium "Symon-provided macros (asymonous-benefactor-macros)", with the express permission of said asymonous^H^H^H^H^H^H^H^H^Hanonymous (and colorless) benefactor. What documentation exists can be found towards the start of the macro. If you have issues with these macros, report them here: https://gitlab.com/symonsch/my-foundryvtt-macros/-/issues
    • The compendium "PF2e Workbench Items (xdy-pf2e-workbench-items)" contains a few useful effects and items:
      • Aura effects for Aura of Despair, Bless, Inspire Courage, Inspire Defense, Protective Ward that automatically apply the effect to tokens within the aura. (Technically these not all these should be auras, but, close enough... Inspire Courage and Inspire Defense's effect can pass through walls that allow sound to pass)
      • Effect for Dirge of Doom that you can give to targets to give them frightened and not let the automated frightened removal reduce frightened below 1.
      • Effect: Minium Frightened that you can give to targets to not let the automated frightened removal reduce frightened below 1.
      • Effect that you can use to change Focus Point Maximum of a character
      • A set of effects that can be used to grant most conditions for a certain amount of time. They are named like " Effect: Condition for 1 hour (modifiable)"
    • The compendium "PF2e Workbench Macros (xdy-pf2e-workbench-macros)" contains a few macros you might find useful.
      • 'Basic Action Macros' shows a dialog with a button for most macros, with bonus and whether you're the best in the party at that action (a setting to turn this off exists). ( Thanks ApoAstolov). The five colors are denoting ranks, in order, grey=untrained, blue=trained, purple=expert, gold=master, red=legendary, with 'glow' meaning that you are the best in the party.
      • 'Refocus' shows dialog with buttons to regain 1 focus point, or 2 if the character has any of the *-focus feats, or 3 if any of the *-wellspring feats, or 2 if is a psychic. With admonition to only choose that button if one has indeed spent more than 2 or 3 focus points since the last refocus (or, for a psychic, only spent on psychic abilities.
      • 'Build Npc Spellbook Journal' that builds a journal with the contents of an npc's spell list. Courtesy of Avery (Velara).
      • 'Whirlwind Strike' performs a Whirlwind Strike around the selected token if it has the Whirlwind Strike Feat, has the effect "Reach 'aura' (Workbench)' using the first reach weapon, or failing that the first weapon of any type.
    • The compendium "PF2e Workbench Customizable Macros (xdy-customizable-macros)" contains customizable macros provided by ApoApostolov. They are intended to be customized by the user by changing the javascript code (such as by adding/removing actions, setting what actors are part of the party, etc.) They are not really supported, so, if your changes break them, you get to keep all the parts! :)
    • There are a few more compendiums included with this module with assorted utility macros and items that do not need to be imported, as indicated by their labels all ending with 'do not import'
  • Experimental features:

    • If a feature name starts with mentioning that it's experimental, use with caution. It's probably barely tested and may wreck your chat or brick your world. (No warranty expressed or implied. No user serviceable parts inside. Void where prohibited. Ei saa peittää. Do not taunt happy fun ball: https://www.youtube.com/watch?v=GmqeZl8OI2M)
  • Deprecated features (will be removed eventually):

    • (Deprecated, is in the system from pf2e 5.2.0) Option to apply Encumbered condition automatically based on current bulk when bulk changes. Note: Uses the system code which considers 5 bulk + 9 light to not exceed 5 bulk.
  • Recently removed features:

Installation

Install by either searching for xdy-pf2e-workbench in FoundryVTT's Module tab and clicking Install or by clicking the 'Install Module' button in that tab and entering the following as the Manifest URL: https://github.com/xdy/xdy-pf2e-workbench/releases/latest/download/module.json

If you want to install this module for foundry 0.89 or lower use this (unsupported) module.json link: https://github.com/xdy/xdy-pf2e-workbench/releases/download/v1.7.1/module.json

If you want to install this module for foundry 9 use this (unsupported) module.json link: https://github.com/xdy/xdy-pf2e-workbench/releases/download/v3.44.3/module.json

If you want to install this module for foundry 10 use this (unsupported) module.json link: https://github.com/xdy/xdy-pf2e-workbench/releases/download/v4.77.2/module.json

Supported pf2e-specific QOL modules

As in, I try to keep the Workbench compatible with these modules (as I use them myself). In general, if the module does something that the Workbench also does, I suggest disabling the Workbench equivalent.

I do use other modules, and will try to avoid breaking even those I don't use, but they have lower priority. (My current module list)

NOT supported modules

As in, these are broken/known to clash with the Workbench (not linking these): PF2e Sheet Skill Actions, PF2e Toolbox.

Patch Notes:

See CHANGELOG.md

Contributing

See CONTRIBUTING.md and CONTRIBUTORS.md

The Programmer's Mantra

It is by caffeine alone I set my mind in motion
It is by the beans of Java that thoughts acquire speed
The hands acquire shakes
The shakes become a warning
It is by caffeine alone I set my mind in motion
  • Help xdy stay awake long enough to add more bugs! Donate via Ko-Fi

Licenses

This module uses trademarks and/or copyrights owned by Paizo Inc., used under Paizo's Community Use Policy (paizo.com/communityuse). We are expressly prohibited from charging you to use or access this content. This module is not published, endorsed, or specifically approved by Paizo. For more information about Paizo Inc. and Paizo products, visit paizo.com.

Open Game License:

Project Licensing:

  • Everything in this project that is not covered by one of the following license exceptions is made available under the Apache License (see LICENSE).

Virtual Table Top Platform Licenses:

Asset licenses:

build-packs license:

asymonous-benefactor-macros:

  • The macros found in the asymonous-benefactor-macros pack are, with the express permission of said asymonous^H^H^H^H^H^H^H^H^Hanonymous benefactor, collected from https://gitlab.com/symonsch/my-foundryvtt-macros/-/tree/main/PF2e at build time. Attribution for the macros can normally be found inside each macro, and the source url for each macro is added at the end of the file.

"Workbench Adjectives" table is based on a list in Unique Names Generator and is provided under the MIT license

About

Random assortment of possibly useful doodads, thingumabobs and whatchamacallits for the foundry vtt pf2e system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.0%
  • Handlebars 3.1%
  • Other 0.9%