Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻

Rafi Ungar Silvyre

👨‍💻
View GitHub Profile
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} ]]
@Silvyre
Silvyre / [MSHRPG] FEAT Roll
Last active Dec 18, 2017
Please see comments below.
View [MSHRPG] FEAT Roll
&{template:default} {{name=FEAT Roll
}} {{=**Rank ?{Rank|0}**
**Column [[ [[{{?{CS|0}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] ]]** *(?{CS}CS)*
}} {{Result:=[[ 1d100cf>[[100 - ({0,3,5,7}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] * ({0,3,5,7}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] + 1) - 2) / 2 - 5 * {9,11,13,15,16,17}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]]]]cf<[[{65 - 5 * [[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] + ({12,13,14}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] * ({12,13,14}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] + 1)) / 2, 1+{0,0}>1}kh1]]cs<[[{95 - 5 * ([[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<?{Rank}, {
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 / [Pendragon] Degrees of Success
Last active Sep 14, 2018
Please see comments below.
View [Pendragon] Degrees of Success
/em rolls [[ 1d20cs<[[ {?{Stat|10} + ?{Mod|0}, 0}kh1 ]]cf=[[ {?{Stat} + ?{Mod}, 0}kh1 ]]cf>[[ {20 - (?{Stat} + ?{Mod} - 20), 20}kl1 ]] + [[ {?{Stat} + ?{Mod} - 20, 0}kh1 ]] ]] vs. [[ {?{Stat} + ?{Mod}, 20}kl1 ]]+[[ {?{Stat} + ?{Mod} - 20, 0}kh1 ]]
View [2d20] Skill Check
/r [[ {{ceil((?{Skill Check|15} - d20cs<?{Skill Check}cf<?{Focus|5}cf>20 + 1e-2) / (?{Skill Check} - ?{Focus})), {2}}kl1, {0}}kh1 ]] + [[ {{ceil((?{Skill Check} - d20cs<?{Skill Check}cf<?{Focus}cf>20 + 1e-2) / (?{Skill Check} - ?{Focus})), {2}}kl1, {0}}kh1 ]] ?{Dice Pool|
2d20, |
3d20, + [[ {{ceil((?{Skill Check&#125; - d20cs<?{Skill Check&#125;cf<?{Focus&#125;cf>20 + 1e-2) / (?{Skill Check&#125; - ?{Focus&#125;))&#44; {2&#125;&#125;kl1&#44; {0&#125;&#125;kh1 ]] |
4d20, + [[ {{ceil((?{Skill Check&#125; - d20cs<?{Skill Check&#125;cf<?{Focus&#125;cf>20 + 1e-2) / (?{Skill Check&#125; - ?{Focus&#125;))&#44; {2&#125;&#125;kl1&#44; {0&#125;&#125;kh1 ]] + [[ {{ceil((?{Skill Check&#125; - d20cs<?{Skill Check&#125;cf<?{Focus&#125;cf>20 + 1e-2) / (?{Skill Check&#125; - ?{Focus&#125;))&#44; {2&#125;&#125;kl1&#44; {0&#125;&#125;kh1 ]] |
5d20, + [[ {{ceil((?{Skill Check&#125; - d20cs<?{Skill Check&#125;cf<?{Focus&#125;cf>20 + 1e-2) / (?{Skill Check&#125; - ?{Focus&#125;))&#44; {2&#125;&#125;kl1&#44; {0&#125;&#
@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)
}}
@Silvyre
Silvyre / [SR5] Summoning or Binding Test v1.0
Created Mar 17, 2016
This macro contains HTML entities and therefore must be saved as an Ability.
View [SR5] Summoning or Binding Test v1.0
! ?{Test|Summoning, (1) attempts to ``summon``|Binding, (2) attempts to ``bind``} ?{Magic + Skill + Modifiers|6 + 3 +0} (Note: this line is hidden from the text chat.)
/me ?{Test} a ``Force ?{Force|1} spirit!``
?{Do you Push the Limit?|
No,?{Does the spirit Push the Limit?&#124;
No&#44;
/r [[ (?{Magic + Skill + Modifiers&amp;#125;)d6>5cs>5sdk?{Force&amp;#125; ]] - [[ [Spirit's Defense Test] [[?{Force&amp;#125; * ?{Test&amp;#125;]]d6>5cs>5sd ]] = Net Hits:
/w gm [``***Spirit:***`` Push the Limit?](!&amp;amp;#13;/desc The spirit spends a point of Edge [Rating ?{Spirit's Edge Rating&amp;amp;#124;1&amp;amp;#125;] to Push the Limit... and got [[ ?{Spirit's Edge Rating&amp;amp;#125;d6>5cs>5sdk1337! ]&amp;amp;#93; extra hits!) [``***Spirit:***`` Second Chance?](!&amp;amp;#13;/desc The spirit spends a point of Edge to reroll [[?{Dice to reroll&amp;amp;#124;1&amp;amp;#125;]&amp;amp;#93; dice... and got [[ ?{Dice to reroll&amp;amp;#125;d6>5cs>5sd ]&amp;amp;#93; extra hits!) &#124;
Yes&#44;/me struggles to control th