Custom JavaScript for Interactive Brews

Custom JavaScript for Interactive Brews

This morning, I got up with the silly idea of making my brews interactive.

The idea is to have clickable elements. For example, hit point counters, rollable formulas (3d6+4) that would change on screen when clicked. Add on top of that a save/restore feature to keep the session's state in the browser's local storage.

I can make it work locally (using the VS Code extension) with some CSS and JavaScript. I tried the same in Homebrewery, but it does not work at all. I suspect that the brew is sanitized and the JavaScript disabled. Am I correct?

What do you folks think of this idea?

u/adasmael — 13 days ago
▲ 63 r/homebrewery+1 crossposts

5e SRD Reference in Homebrewery for VS Code

I have updated the Homebrewery for VS Code extension, which allows you to edit your brews locally.

This new release introduces an SRD 5e Reference tree view listing key elements of the 5e System Reference Document (SRD), such as classes, feats, magic items, monsters, spells, etc retrieved from the D&D 5e SRD API. Clicking an item in the list adds its content to your brew.

The extension is available for free from the VS Code Marketplace.

u/adasmael — 27 days ago

"Le Mork Borg" Character Generator

I just made a single-click Mork Borg printable character sheet generator.
It runs locally on your machine w/o server as a plain HTML page.

An example is deployed here.

As you may notice, it generates sheets in French and English. I'm playing with a French-speaking team and needed to re-generate characters quickly.

EDIT: I recently added support for the English language. Feel free to try and report issues.

If someone is willing to translate, feel free; the code is open source (under the MIT license). I also accept comments and votes as motivational incentives to produce an English version. 😊

u/adasmael — 1 month ago