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
on('ready', function() { | |
jrl_initiative_timer = setInterval(function() { | |
var c = Campaign(); | |
var pre_turnorder = c.get('turnorder'); | |
if (!pre_turnorder) { | |
return; | |
} |
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
/* | |
The One Ring Dice Monger for Roll20 | |
By Michael Heilemann ([email protected]) | |
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: |
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
/* | |
The One Ring weary-state setter for Roll20 API | |
By Michael Heilemann ([email protected]) | |
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: |
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
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}). |