Skip to content

Instantly share code, notes, and snippets.

@Lithl
Lithl / urza-abilities-effect.json
Last active August 29, 2019 23:27
A listing of Urza, Academy Headmaster's possible abilities
{
"+1": [
"Put a +1/+1 counter on each creature you control and a loyalty counter on each other planeswalker you control.",
"You may exile target creature with power 4 or greater.",
"You may destroy target creature. If you do, its controller draws two cards.",
"You may have Urza, Academy Headmaster deal 6 damage to target tapped creature.",
"You may have target creature you control fight target creature you don’t control.",
"Create two 0/3 white Wall creature tokens with defender.",
"Create a 2/2 blue Wizard creature token. Draw a card, then discard a card.",
"Create two 1/1 red Devil creature tokens with “When this creature dies, it deals 1 damage to any target.”",
@Lithl
Lithl / Armello dice.js
Created December 7, 2016 06:42
Unfinished sample of a Roll20 API script for rolling Armello-style dice. The main takeaway is from the `orderFaces` function, which changes the order of the six die faces (sword, shield, sun, moon, wyld, rot) and sets an explode point based on which of those faces should explode.
var bshields = bshields || {};
bshields.armello = (function() {
'use strict';
var version = 0.1,
commands = {
armello: function(args, msg) {
var flags = processFlags(args);
resolveCombat({pool:flags.pool[0],explodesword:flags.explodesword[0],explodesun:flags.explodesun[0],explodemoon:flags.explodemoon[0]},
{pool:flags.pool[1],explodesword:flags.explodesword[0],explodesun:flags.explodesun[0],explodemoon:flags.explodemoon[0]});