Skip to content

Instantly share code, notes, and snippets.

View Parmeisan's full-sized avatar

Laura Parmeisan

  • Canada
View GitHub Profile
@Parmeisan
Parmeisan / Batch Edit
Created April 2, 2014 18:53
Roll20 - Batch Edit
var parm_batch = parm_batch || {};
parm_batch.debugging = false;//true;//
parm_batch.speak_as = "Batch-Edit";
parm_batch.whisper = "";
parm_batch.brush = [];
on("chat:message", function(msg)
{
var ns = parm_batch;
@Parmeisan
Parmeisan / Deck Utilities
Last active November 18, 2017 04:12
Roll20 - Deck Utilities
var parm_deck_util = parm_deck_util || {};
parm_deck_util.debugging = false;//true;//
parm_deck_util.speak_as = "Deck-Util";
parm_deck_util.whisper = "";
parm_deck_util.deck;
parm_deck_util.rtable;
on("chat:message", function(msg)
{
@Parmeisan
Parmeisan / Macro Parameters
Last active February 10, 2021 16:20
Roll20 - Macro Parameters
// Purpose: Allows you to automatically fill in macro variables, from chat or from another macro.
// Usage: #MacroName(param1,param2)
// Do NOT include a space after MacroName and before the (. If you do that, Roll20 intercepts it
// before sending it to the chat, and there's nothing I can do to help you. :)
var parm_macro_params = parm_macro_params || {};
// Interrupts all chat messages to check for macros.
on("chat:message", function(msg)
"Page id: -JIjGqeZev9HB5rcJjv4"
"Comparing arrays:"
["-JHmkUEVLtCKu6vCFxtT"]
["-JHmkUEVLtCKu6vCFxtT","-JIjGi-23xpbsUXQMkhw"]
"New:-JIjGi-23xpbsUXQMkhw"
"Moving -JIjGi-23xpbsUXQMkhw to hand."
{"name":"Angreal - Well","avatar":"https://s3.amazonaws.com/files.d20.io/images/3499705/HEPFrdn2JGgMwycqu8bTqw/med.png?1395584000","_deckid":"-JIjDXFy-WlTpDfC1Ggu","_type":"card","_id":"-JIjGi-23xpbsUXQMkhw"}
"Creating card-token--JIjGi-23xpbsUXQMkhw-id"
"https://s3.amazonaws.com/files.d20.io/images/3499705/HEPFrdn2JGgMwycqu8bTqw/med.png?1395584000"