Skip to content

Instantly share code, notes, and snippets.

View Silvyre's full-sized avatar
👨‍💻

Rafi Ungar Silvyre

👨‍💻
View GitHub Profile
@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 / [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}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] |
3, + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] |
4, + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] [4d10] |
5, + [[ {{ceil((d10cs>?{Target}cf10cf1-?{Target}+1e-2)/(10-?{Target})),2+0d0}kl1,0d0}kh1 ]] + [[ {{ceil((d10cs>?{Ta
@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