Skip to content

Instantly share code, notes, and snippets.

Avatar
🔭

Rafael Ungar Silvyre

🔭
View GitHub Profile
View [Car Wars] Control Roll
[[ 1d6cs0cf<[[ {1e2 - 6 + {1e3,105}<@{selected|SPD} + 5 * {115,265}<@{selected|SPD} - 1e2 * {1,3,57}=[[floor(@{selected|SPD} / 10 + 1/2) * 2 - 1]], 1e2 - 4 + 3 * {85,235}<@{selected|SPD} + 2 * {235,275}<@{selected|SPD} - 1e2 * {1,3,5,7,11,15,45,51}=[[floor(@{selected|SPD} / 10 + 1/2) * 2 - 1]], 1e2 - 6 + {35,95}<@{selected|SPD} + 2 * {145,275}<@{selected|SPD} + 3 * {145,295}<@{selected|SPD} - 1e2 * {1,3,9,11,15,21,27}=[[floor(@{selected|SPD} / 10 + 1/2) * 2 - 1]], 1e2 - 3 + 5 * {1e3,175}<@{selected|SPD} - 1e2 * {1,3,5,7,9,13,33}=[[floor(@{selected|SPD} / 10 + 1/2) * 2 - 1]], 1e2 - 3 + 5 * {1e3,205}<@{selected|SPD} - 1e2 * {1,3,5,7,9,39}=[[floor(@{selected|SPD} / 10 + 1/2) * 2 - 1]], 1e2 - 6 + floor(@{selected|SPD} / 30 - 1/2) - 1e2 * {1,2}=[[(floor(@{selected|SPD} / 10 + 1/2) * 2 - 1) % 3]], 1e2 - 5 + floor(@{selected|SPD} / 30) + {-1e3,0}=[[(floor(@{selected|SPD} / 10 + 1/2) * 2 - 1) % 3]] - {-1e3,24}>@{selected|SPD}}>[[@{selected|HC} + (?{HC mods|0}) + 1e2]] ]] ]]
View [Pokéthulhu] Ability Test
/em rolls ?{d|1|2|3}d vs. Ability ?{A|1|2|3|4|5|6|7|8|9|10|11|12}:
/r {[[ d12cs?{A}cf>[[?{A}+1]] % (?{A}+11) % (?{A}+10) % (?{A}+9) % (?{A}+8) % (?{A}+7) % (?{A}+6) % (?{A}+5) % (?{A}+4) % (?{A}+3) % (?{A}+2) % (?{A}+1) ]], [[ (?{d}/4)d12cs?{A}cf>[[?{A}+1]] % (?{A}+11) % (?{A}+10) % (?{A}+9) % (?{A}+8) % (?{A}+7) % (?{A}+6) % (?{A}+5) % (?{A}+4) % (?{A}+3) % (?{A}+2) % (?{A}+1) ]], [[ (?{d}/6)d12cs?{A}cf>[[?{A}+1]] % (?{A}+11) % (?{A}+10) % (?{A}+9) % (?{A}+8) % (?{A}+7) % (?{A}+6) % (?{A}+5) % (?{A}+4) % (?{A}+3) % (?{A}+2) % (?{A}+1) ]]}kh1
View [Earthdawn] Step Calculator
Step [[?{Step|5+4+3}]] ⇒ [[ [[{1e3, 14}<[[{?{Step}, 0}kh1 % 22]] + floor(([[{?{Step}, 0}kh1]]) / 22)]]d20! + [[{0, 1, 1, 2, 6, 10}=[[{?{Step}, 0}kh1 % 11]] - {-1, 1}=[[{?{Step}, 0}kh1]] + floor(([[{?{Step}, 0}kh1]] - 3) / 22)]]d10! + [[{0, 5, 9}=[[{?{Step}, 0}kh1 % 11]] + {1, 2}=[[{?{Step}, 0}kh1]] + floor(([[{?{Step}, 0}kh1]] - 3) / 22)]]d8! + [[{-1, 8}=[[{?{Step}, 0}kh1 % 11]] - {0, 1, 5, 6}=[[{?{Step}, 0}kh1 % 11]] + {-1, 1}=[[{?{Step}, 0}kh1]] + 1]]d[[4 + 2 * {4, 8, 9, 10}=[[{?{Step}, 0}kh1 % 11]] + 8 * ({2, 7}=[[{?{Step}, 0}kh1 % 11]] * (1 - {-1, 2}=[[{?{Step}, 0}kh1]]))]]! - [[{1, 2}=[[{?{Step}, 0}kh1]] * (3 - [[{?{Step}, 0}kh1]])]] ]]
View [WHQ] To-Hit Chart Macro
[[ [[2 + {3 - ?{Weapon Skill|1|2|3|4|5|6|7|8|9|10}, 0}kh1]] + {[[2 + [[{-1, 1}=?{Weapon Skill}]] + {?{Weapon Skill} - 7, 0}kh1]], [[3 + [[{1, 2, 2}=?{Weapon Skill}]] + {?{Weapon Skill} - 3, 0}kh1]], [[11 - 2 * {2, 2, 3, 3, 4}=?{Weapon Skill}]], [[11 - {-1, 3}=?{Weapon Skill}]]}<?{Defender's Weapon Skill|1|2|3|4|5|6|7|8|9|10} ]]
View [D&D 4E] Skill Challenge DCs
Level ?{Level|1}:
E [[ 7 + floor((?{Level} + {0, 1}<[[?{Level} % 20]] + 2 * floor(?{Level} / 20)) / 2) ]]
M [[ 11 + floor((?{Level} + {0, 1, 4, 9}<[[?{Level} % 10]] + 4 * floor(?{Level} / 10)) / 2) ]]
H [[ 18 + floor((?{Level} + {0, 1, 2, 5, 8, 9}<[[?{Level} % 10]] + 6 * floor(?{Level} / 10)) / 2) ]]
@Silvyre
Silvyre / [Exalted] Dice Roller
Last active Dec 13, 2016
A few dice roller macros for any edition of Exalted. Please see comments below.
View [Exalted] Dice Roller
/r [[ {{ceil((d10cs>?{Target|7}cf10cf1 - ?{Target} + 1e-2) / (10 - ?{Target})), 2 + 0d0}kl1, 0d0}kh1 ]] ?{Dice|
1, |
2, + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] |
3, + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] |
4, + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] [4d10] |
5, + [[ {{ceil((d10cs>?{Target&#125;cf10cf1-?{Target&#125;+1e-2)/(10-?{Target&#125;))&#44;2+0d0&#125;kl1&#44;0d0&#125;kh1 ]] + [[ {{ceil((d10cs>?{Ta
@Silvyre
Silvyre / [DCC] Warrior Attack
Created Nov 27, 2016
Uses PowerCards. Has +LCK to damage rolls.
View [DCC] Warrior Attack
!power {{
--tokenid|@{selected|token_id}
--emote|@{selected|character_name} Attacks!
--format|default
--name|Warrior Level @{selected|Level}
--leftsub|Action
--rightsub|Attack
--hroll|?{Weapon|Battleaxe, 1d10|Blackjack, 1d3|Blackjack (backstab), 2d6|Blowgun, 1d3|Blowgun (backstab), 1d5|Club, 1d4|Crossbow, 1d6|Dagger, 1d4|Dagger (backstab), 1d10|Dart, 1d4|Flail, 1d6|Garrote, 1d1|Garrote (backstab), 3d4|Handaxe, 1d6|Javelin, 1d6|Lance, 1d12|Longbow, 1d6|Longsword, 1d8|Mace, 1d6|Polearm, 1d10|Shortbow, 1d6|Short sword, 1d6|Sling, 1d4|Spear, 1d8|Staff, 1d4|Two-handed sword, 1d10|Warhammer, 1d8}
View [Ars Magica] Stress Die
/r [[ [A] 1d10<9cs0cf10 ]] * [[ [B] {2 * 1d10ro10!1=1cs1cf0, 1 + 0d0>0}kh1 ]] * [[ [C] 1 + d9cf0 ]]
[[ [[ [A] 1d10<9cs0cf10 ]] * [[ [B] {2 * 1d10ro10!1=1cs1cf0, 1 + 0d0>0}kh1 ]] * [[ [C] 1 + d9cf0 ]] ]]
View [D&D 3.5] Crafting
&{template:default} {{name=Crafting}} {{?{sp|50} sp (DC ?{DC|10})
Initial cost: [[ floor(?{sp} / 3) ]] sp
Progress: [[ (1d20cs>[[ {[[{ceil(?{sp} * 2 / ?{DC}), ?{DC}}kh1]] - ?{Modifiers|0}, 0}kh1 ]]cf>[[ {[[{ceil(?{sp} * 3 / ?{DC}), ?{DC}}kh1]] - ?{Modifiers}, 0}kh1 ]]cf<[[ {?{DC} - 1 - ?{Modifiers}, 1}kh1 ]] + ?{Modifiers}) * ?{DC} + ?{Past progress|0} ]] of [[ ?{sp} ]]
Roll highlighting:
Check < DC ⇔ [[ 1 + d0cf0cs1 ]]
Check x DC ≥ sp x 2 ⇔ [[ 2 + d0 ]]
Check x DC ≥ sp x 3 ⇔ [[ 3 + d0cf0 ]]
}}
View [James Bond 007] Tasks
&{template:default} {{name=James Bond 007 Task}} {{SC [[ ?{SC|50 * 3} ]]
Excellent (1): [[ 1 + d0cf0 ]] - [[ 1 + floor((?{SC} - 1) / 10) + d0cf0 ]]
Very Good (2): [[ 2 + floor((?{SC} - 1) / 10) + d0 ]] - [[ 2 + 2 * floor((?{SC} - 1) / 10) + d0 ]]
Good (3): [[ 3 + 2 * floor((?{SC} - 1) / 10) ]] - [[ {5 * (1 + floor((?{SC} - 1) / 10)), 98}kl1 ]]
Acceptable (4): [[ {6 + 5 * (floor((?{SC} - 1) / 10)), 99}kl1 + d0cf0cs1 ]] - [[ {[[ {?{SC}, [[ {6 + 5 * (floor((?{SC} - 1) / 10)), 99}kl1 ]]}kh1 ]], 99}kl1 + d0cf0cs1 ]]
Result: [[ 1d100<[[ {[[ {?{SC}, [[ {6 + 5 * (floor((?{SC} - 1) / 10)), 99}kl1 ]]}kh1 ]], 99}kl1 ]]cf>[[ {6 + 5 * (floor((?{SC} - 1) / 10)), 99}kl1 ]]cf<[[ 1 + floor((?{SC} - 1) / 10) ]]cs<[[ 2 + 2 * floor((?{SC} - 1) / 10) ]] ]]
(1 ⇒ success; 0 ⇒ failure)
}}