Skip to content

Instantly share code, notes, and snippets.

Avatar
🔭

Rafael Ungar Silvyre

🔭
View GitHub Profile
@Silvyre
Silvyre / [AD&D 2E] Wild Magic
Created Dec 17, 2015
@{truelevel} is the number of Wild Mage class levels possessed by the caster.
View [AD&D 2E] Wild Magic
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 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?|
No,
/r [[ (?{Magic + Skill + Modifiers})d6>5cs>5sdk?{Force} ]] - [[ [Spirit's Defense Test] [[?{Force} * ?{Test}]]d6>5cs>5sd ]] = Net Hits:
/w gm [``***Spirit:***`` Push the Limit?](!
/desc The spirit spends a point of Edge [Rating ?{Spirit's Edge Rating|1}] to Push the Limit... and got [[ ?{Spirit's Edge Rating}d6>5cs>5sdk1337! ]] extra hits!) [``***Spirit:***`` Second Chance?](!
/desc The spirit spends a point of Edge to reroll [[?{Dice to reroll|1}]] dice... and got [[ ?{Dice to reroll}d6>5cs>5sd ]] extra hits!) |
Yes,/me struggles to control th
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)
}}
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 [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 ]] ]]
@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}
@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
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) ]]
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 [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]])]] ]]