These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.
Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.
Here's what my bar looks like.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { MJMLElement, helpers } from 'mjml-core' | |
| import cloneDeep from 'lodash/cloneDeep' | |
| import merge from 'lodash/merge' | |
| import React, { Component } from 'react' | |
| const tagName = 'mc-section' | |
| const parentTag = ['mj-container'] | |
| const defaultMJMLDefinition = { | |
| attributes: { | |
| 'mc:hideable': null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getCardType(cardNum) { | |
| if(!luhnCheck(cardNum)){ | |
| return ""; | |
| } | |
| var payCardType = ""; | |
| var regexMap = [ | |
| {regEx: /^4[0-9]{5}/ig,cardType: "VISA"}, | |
| {regEx: /^5[1-5][0-9]{4}/ig,cardType: "MASTERCARD"}, | |
| {regEx: /^3[47][0-9]{3}/ig,cardType: "AMEX"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // Default Values | |
| var title = 'Welcome'; // What it should say on a page that it can't look up the information | |
| var url = 'http://yoururl.org'; // Your base URL | |
| var template = '00000'; //Your Template Key | |
| var org = 'Your Organization'; //Your Org's Name | |
| var chapter = '9999'; //If this is a chaptered page | |
| var description = "Our slogan"; // Default description | |
| var img = "https://www.google.com/images/srpr/logo3w.png"; //The default image |
