Skip to content

Instantly share code, notes, and snippets.

View Heilemann's full-sized avatar
🥃
"You've always been the caretaker..."

Michael Heilemann Heilemann

🥃
"You've always been the caretaker..."
View GitHub Profile
@Heilemann
Heilemann / tor-macros
Last active August 29, 2015 14:08
The One Ring Roll20 Macros
adv_attack_1
------------
/emas @{selected|token_name} attacks @{target|token_name} (TN #npc_vs_pc_defense ) with a @{selected|weapon_skill_name_1} (Damage @{selected|weapon_damage_1}, Edge @{selected|weapon_edge_1}, Injury @{selected|weapon_injury_1}, @{selected|weapon_called_shot_1}, Damage Bonus @{selected|attribute_level}).
/r 1t[lm-feat] + @{selected|weapon_rating_1}t[@{selected|bar3}] + [[@{selected|weapon_favoured_1} * @{selected|attribute_level}]] + ?{Modifier|0} > #npc_vs_pc_defense
adv_attack_1
------------
/emas @{selected|token_name} attacks @{target|token_name} (TN #npc_vs_pc_defense ) with a @{selected|weapon_skill_name_2} (Damage @{selected|weapon_damage_2}, Edge @{selected|weapon_edge_2}, Injury @{selected|weapon_injury_2}, @{selected|weapon_called_shot_2}, Damage Bonus @{selected|attribute_level}).
@Heilemann
Heilemann / wearynator.js
Last active August 29, 2015 14:00
Roll20 Wearynator for The One Ring
/*
The One Ring weary-state setter for Roll20 API
By Michael Heilemann (michael.heilemann@me.com)
Checks to see if a character's endurance drops below her fatigue, and
automatically sets the `weary` attribute to `weary` or `normal`, depending.
This is very useful particularly if you're using the TOR roll tables, as you
can then read the weary attribute of the selected token in a macro and roll
on the appropriate success die table automatically:
@Heilemann
Heilemann / tor-dice-monger.js
Last active August 29, 2015 14:00
The One Ring Dice Monger for Roll20
/*
The One Ring Dice Monger for Roll20
By Michael Heilemann (michael.heilemann@me.com)
This is an API script for Roll20.net, which checks rolls against the success
criteria of the The One Ring system, and is best used in conjunction with
the custom dice roll tables (https://wiki.roll20.net/The_One_Ring).
Basically it will try to output a valuable message about the roll's success,
and works best of supplied with a Target Number, like so:
@Heilemann
Heilemann / turnorder.js
Last active August 29, 2015 14:00
Roll20 Highlight Current Turnorder Token
on('ready', function() {
jrl_initiative_timer = setInterval(function() {
var c = Campaign();
var pre_turnorder = c.get('turnorder');
if (!pre_turnorder) {
return;
}