Skip to content

Instantly share code, notes, and snippets.

View Silvyre's full-sized avatar
👨‍💻

Rafi Ungar Silvyre

👨‍💻
View GitHub Profile
@Silvyre
Silvyre / [WFRP 1E] Standard Tests v2.3
Last active May 26, 2021 13:15
This macro contains HTML entities and therefore must be saved as an Ability. Required setup: 5 Rollable Tables (see comments below) and 10 Attributes (Cl, Dex, Fel, I, Int, Ld, M, S, T and WP). Employment and Gambling tests have been excluded.
&{template:default} {{name=**WFRP Standard Test**}} <v2.3 by Silvyre> {{@{selected|token_name}'s ?{Test|Select one:, attempt to use this macro was [[ 1t[[[d3-3]]] ]] |
Animosity, attempt to resist animosity (@{selected|Cl}) ?{Modifiers&#124;None&#44; &#124;Customize&#44; + [a modifier of] &amp;#63;{Customize&amp;#124;0&amp;#125; &#125; was [[ 1t[[[{[[{[[floor((floor(@{selected|Cl} ?{Modifiers&#125;) - d100)/29.99)+1]]&#44;-2&#125;kh1]]&#44;2&#125;kl1]]] ]] |
Bargain, attempt to bargain (@{selected|Fel}) ?{Modifiers&#124;None&#44; &#124;Charm (+10%)&#44; [using Charm] +10&#124;Haggle (+10%)&#44; [using Haggle] +10&#124;Seduction (+10%)&#44; [using Seduction] +10&#124;Customize&#44; + [a modifier of] &amp;#63;{Customize&amp;#124;0&amp;#125; &#125; was [[ 1t[[[{[[{[[floor((floor(@{selected|Fel} ?{Modifiers&#125;) - d100)/29.99)+1]]&#44;-2&#125;kh1]]&#44;2&#125;kl1]]] ]] |
Bluff, attempt to bluff (@{selected|Fel}) ?{Modifiers&#124;None&#44; &#124;Acting (+15%)&#44; [using Acting] +15&#124;Charm (+10%)&#44; [using
@Silvyre
Silvyre / [Exalted] Dice Roller
Last active December 13, 2016 04:11
A few dice roller macros for any edition of Exalted. Please see comments below.
/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 / [AD&D 2E] Wild Magic
Created December 17, 2015 13:43
@{truelevel} is the number of Wild Mage class levels possessed by the caster.
Casting Level: [[ {@{truelevel} + { [Function C:] {ceil(floor((d10cs>1cf>1 - [[11 - @{truelevel}]])/2)/.99), 0d0}k1, [Function D:] floor(d[[{12 - @{truelevel}, 10}kl1]]cs>1cf>1 / [[{7 - @{truelevel}, 2}k1]]) }k1 * [Function E:] [[d2s2f1]], 0d0}k1 ]]
Wild Surge: [[ d20>20cf0 * [[d100]] ]]
@Silvyre
Silvyre / [SR5] Summoning or Binding Test v1.0
Created March 17, 2016 21:36
This macro contains HTML entities and therefore must be saved as an Ability.
! ?{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
&{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)
}}
&{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 ]]
}}
/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 ]] ]]
@Silvyre
Silvyre / [DCC] Warrior Attack
Created November 27, 2016 20:41
Uses PowerCards. Has +LCK to damage rolls.
!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}
/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 / [Pendragon] Degrees of Success
Last active September 14, 2018 08:40
Please see comments below.
/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 ]]