Skip to content

Instantly share code, notes, and snippets.

View Silvyre's full-sized avatar
👨‍💻

Rafi Ungar Silvyre

👨‍💻
View GitHub Profile
&{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 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
@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]] ]]