Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#56B6C2",
"properties": {
"style": "agnoster_short",
/**
* Allows a user to quickly roll a high number of attack and damage rolls for a weapon.
* Paste as a script macro, select token (or have an actor assigned as your character), run macro
* D&D5e only
* @author cole#9640
* @version 1
*/
async function main() {
if (!actor) {
@schultzcole
schultzcole / drawings-to-walls.js
Last active May 5, 2022 13:31
A macro script to convert polygonal drawings to walls
/**
* @author cole#9640
* @version 2
* Converts all selected rectangular and polygonal drawings to walls.
*/
let drawings = canvas.drawings.controlled;
drawings = drawings.map(drawing => {
switch (drawing.data.type) {
case "f":