E
enso785d ago
could you use these hooks to change things like advantage/bonuses?
C
Calego785d ago
that's the theory As with all hooks, it's only synchronous operations, but itssomething
E
enso785d ago
interesting... I've always been semi-interested in midi/dae methods to automate those kind of bonuses, but it seemed like too much overhead for my relatively few use cases. this might seem like an approach that's more my speed
C
Calego785d ago
tossed together example:
No description
C
Calego785d ago
But more in depth example might involve a module which stores additional flags on the Actor like 5e's existing special traits, and checks the actor for such a flag, then adjusts rollData accordingly. more-hooks-5e library is definitely my battle-testing-grounds for what I'm hoping to pitch to core, so always happy to hear your use cases 🙂 (all my recent tiny combat modules have been powered by the existing post-hooks, only now getting to the pre-'s)
K
kaelad784d ago
insert plug: might I recommend the Advantage Reminder module, it adds support for all the advantage/disadvantage flags that Midi defines but without having to use Midi.
W
Wasp784d ago
Very nice!
Want results from more Discord servers?
Add your server
More Posts
JSON.stringify jankI discovered that the problem is JSON.stringify, not parselayersTIL about CSS Layers. https://developer.mozilla.org/en-US/docs/Web/CSS/@layer ```css @layer utilitiHitDice hooks MRI just added my first merge request 😄 <https://gitlab.com/foundrynet/dnd5e/-/merge_requests/495>advantage shennaneginsdevmode extension brainstormhttps://github.com/mdn/webextensions-examples/tree/master/devtools-panelsSaving Functions as module settings@wasp I remember you asked about saving functions as settings (which quickly turned into stringifyinnew consumable typesTried adding localization strings for some new consumable types, but keep getting this ("`DND5E.Consspell-compendium-5e alpha1Overriding onDropItem & onSortItemYou'd override them in your sheet class.getter & setter wrapper for settingsI'm trying to use a getter & setter pair as an interface for `game.settings.get` and `game.settings.scrollable tab contentsIt is possible, and you're firmly in the css and DOM structure side of development with this line ofJr devI'm cleaning out my bookmarks and accidentally came back to this article. Potentially useful startinHTCPackage: `hero-creation-tool`System Specific CSSI'm not 100% about this, but it is worth watching out that your solution doesn't actually end up beiadvancement-wipCommander register apitalking about permissions, im working on the registering api for the Commander, and I wanted to ask Azgaars Blurry MapHey all. I'm taking a look at my importer for Azgaar's Fantasy Map Generator and wondering how I canccjmk overlaybut for what I wanted I think I *needed* to append it there so that I can overlay the whole screencliits very very early alpha demoMonarch APIAlright, adventurous ones: I have a Beta version of Monarch with the new components API! Manifest: