Skip to content

Instantly share code, notes, and snippets.

@Silvyre
Last active December 18, 2017 20:20
Show Gist options
  • Save Silvyre/9a03b3555ad94c90694729ea96d18563 to your computer and use it in GitHub Desktop.
Save Silvyre/9a03b3555ad94c90694729ea96d18563 to your computer and use it in GitHub Desktop.
Please see comments below.
&{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}, {0,0}>1}kh1, {17} }kl1]] - {12,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]]), 94+{0,0}>1}kl1]] ]]
}}
— Variant style (plus Action Type and Karma) —
/em &{template:default} {{=``F````A````S````E````R````I````P``
?{Action type|Blunt Attacks, [``Blunt Attacks``](1)|Edged Attacks, [``Edged Attacks``](2)|Shooting, [``Shooting``](3)|Throwing Edged, [``Throwing Edged``](4)|Throwing Blunt, [``Throwing Blunt``](5)|Energy, [``Energy``](6)|Force, [``Force``](7)|Grappling, [``Grappling``](8)|Grabbing, [``Grabbing``](9)|Escaping, [``Escaping``](10)|Charging, [``Charging``](11)|Dodging, [``Dodging``](12)|Evading, [``Evading``](13)|Blocking, [``Blocking``](14)|Catching, [``Catching``](15)|Stun?, [``Stun?``](16)|Slam?, [``Slam?``](17)|Kill?, [``Kill?``](18)}
``Rank ?{Rank|0}`` ``Col [[ 1t[[[{{?{CS|0} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]]-column] ]]``
}} {{``Result:``= [[ 1d100cf>[[{100 - ?{Karma|0} - ({0,3,5,7}<[[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<?{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,9e3}<?{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,9e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]], {0,0}>1}kh1]]cf<[[{65 - ?{Karma} - 5 * [[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<?{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,9e3}<?{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,9e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] + 1)) / 2, 1 + {0,0}>1}kh1]]cs<[[{{95 - ?{Karma} - 5 * ([[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]] - {12,14}<[[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<?{Rank}, {0,0}>1}kh1, {17} }kl1]]), 94 - ?{Karma} + {0,0}>1}kl1, {0} }kh1]] + ?{Karma} ]]
}} [[ {{[ ]([[ {?{Action type} + {0}, {0} }=1 ]])=W: Miss, G: Hit
Y: Slam, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=2 ]])=W: Miss, G: Hit
Y: Stun, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=3 ]])=W: Miss, G: Hit
Y: Bullseye, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=4 ]])=W: Miss, G: Hit
Y: Stun, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=5 ]])=W: Miss, G: Hit
Y: Hit, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=6 ]])=W: Miss, G: Hit
Y: Bullseye, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=7 ]])=W: Miss, G: Hit
Y: Bullseye, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=8 ]])=W: Miss, G: Miss
Y: Partial, R: Hold
}} {{[ ]([[ {?{Action type} + {0}, {0} }=9 ]])=W: Miss, G: Take
Y: Grab, R: Break
}} {{[ ]([[ {?{Action type} + {0}, {0} }=10 ]])=W: Miss, G: Miss
Y: Escape, R: Reverse
}} {{[ ]([[ {?{Action type} + {0}, {0} }=11 ]])=W: Miss, G: Hit
Y: Slam, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=12 ]])=W: None, G: -2CS
Y: -4CS, R: -6CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=13 ]])=W: Autohit, G: Evasion
Y: +1CS, R: +2CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=14 ]])=W: -6CS, G: -4CS
Y: -2CS, R: +1CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=15 ]])=W: Autohit, G: Miss
Y: Damage, R: Catch
}} {{[ ]([[ {?{Action type} + {0}, {0} }=16 ]])=W: 1-10, G: 1
Y: No, R: No
}} {{[ ]([[ {?{Action type} + {0}, {0} }=17 ]])=W: Gr. Slam, G: 1 Area
Y: Stagger, R: No
}} {{[ ]([[ {?{Action type} + {0}, {0} }=18 ]])=W: En. Loss, G: E/S
Y: No, R: No
}} {{[ ]([[0]])= ``?{CS}CS`` ``?{Karma} Karma``
}}
&{template:default} ?{Ability|
Fighting, [Fighting] (@{selected|Fighting}) |
Agility, [Agility] (@{selected|Agility}) |
Strength, [Strength] (@{selected|Strength}) |
Endurance, [Endurance] (@{selected|Endurance}) |
Reason, [Reason] (@{selected|Reason}) |
Intuition, [Intuition] (@{selected|Intuition}) |
Psyche, [Psyche] (@{selected|Psyche})
} {{name=FEAT Roll
}} {{=**?{Ability}**
**Column [[ [[{?{CS|0}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {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}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]] - {12,14}<[[{{?{CS}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]]), 94+{0,0}>1}kl1]] ]]
}}
— Variant style (plus Action Type and Karma) —
/em &{template:default} ?{Ability|
Fighting, [Fighting] (@{selected|Fighting}) |
Agility, [Agility] (@{selected|Agility}) |
Strength, [Strength] (@{selected|Strength}) |
Endurance, [Endurance] (@{selected|Endurance}) |
Reason, [Reason] (@{selected|Reason}) |
Intuition, [Intuition] (@{selected|Intuition}) |
Psyche, [Psyche] (@{selected|Psyche}) |
Popularity, [Popularity] (@{selected|Popularity}) |
Resources, [Resources] (@{selected|Resources})
} {{=``F````A````S````E````R````I````P``
?{Action type|Blunt Attacks, [``Blunt Attacks``](1)|Edged Attacks, [``Edged Attacks``](2)|Shooting, [``Shooting``](3)|Throwing Edged, [``Throwing Edged``](4)|Throwing Blunt, [``Throwing Blunt``](5)|Energy, [``Energy``](6)|Force, [``Force``](7)|Grappling, [``Grappling``](8)|Grabbing, [``Grabbing``](9)|Escaping, [``Escaping``](10)|Charging, [``Charging``](11)|Dodging, [``Dodging``](12)|Evading, [``Evading``](13)|Blocking, [``Blocking``](14)|Catching, [``Catching``](15)|Stun?, [``Stun?``](16)|Slam?, [``Slam?``](17)|Kill?, [``Kill?``](18)}
``?{Ability}`` ``Col [[ 1t[[[{{?{CS|0} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]]-column] ]]``
}} {{``Result:``=[[ 1d100cf>[[{100 - ?{Karma|0} - ({0,3,5,7}<[[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<[[?{Ability} + {0}]], {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,9e3}<[[?{Ability} + {0}]], {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,9e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]], {0,0}>1}kh1]]cf<[[{65 - ?{Karma} - 5 * [[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<[[?{Ability} + {0}]], {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,9e3}<[[?{Ability} + {0}]], {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,9e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]] + 1)) / 2, 1 + {0,0}>1}kh1]]cs<[[{{95 - ?{Karma} - 5 * ([[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]] - {12,14}<[[{{?{CS} + {1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3,9e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]]), 94 - ?{Karma} + {0,0}>1}kl1, {0} }kh1]] + ?{Karma} ]]
}} [[ {{[ ]([[ {?{Action type} + {0}, {0} }=1 ]])=W: Miss, G: Hit
Y: Slam, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=2 ]])=W: Miss, G: Hit
Y: Stun, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=3 ]])=W: Miss, G: Hit
Y: Bullseye, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=4 ]])=W: Miss, G: Hit
Y: Stun, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=5 ]])=W: Miss, G: Hit
Y: Hit, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=6 ]])=W: Miss, G: Hit
Y: Bullseye, R: Kill
}} {{[ ]([[ {?{Action type} + {0}, {0} }=7 ]])=W: Miss, G: Hit
Y: Bullseye, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=8 ]])=W: Miss, G: Miss
Y: Partial, R: Hold
}} {{[ ]([[ {?{Action type} + {0}, {0} }=9 ]])=W: Miss, G: Take
Y: Grab, R: Break
}} {{[ ]([[ {?{Action type} + {0}, {0} }=10 ]])=W: Miss, G: Miss
Y: Escape, R: Reverse
}} {{[ ]([[ {?{Action type} + {0}, {0} }=11 ]])=W: Miss, G: Hit
Y: Slam, R: Stun
}} {{[ ]([[ {?{Action type} + {0}, {0} }=12 ]])=W: None, G: -2CS
Y: -4CS, R: -6CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=13 ]])=W: Autohit, G: Evasion
Y: +1CS, R: +2CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=14 ]])=W: -6CS, G: -4CS
Y: -2CS, R: +1CS
}} {{[ ]([[ {?{Action type} + {0}, {0} }=15 ]])=W: Autohit, G: Miss
Y: Damage, R: Catch
}} {{[ ]([[ {?{Action type} + {0}, {0} }=16 ]])=W: 1-10, G: 1
Y: No, R: No
}} {{[ ]([[ {?{Action type} + {0}, {0} }=17 ]])=W: Gr. Slam, G: 1 Area
Y: Stagger, R: No
}} {{[ ]([[ {?{Action type} + {0}, {0} }=18 ]])=W: En. Loss, G: E/S
Y: No, R: No
}} {{[ ]([[0]])= ``?{CS}CS`` ``?{Karma} Karma``
}}
@Silvyre
Copy link
Author

Silvyre commented Jan 7, 2017

http://i.imgur.com/2nkA5eR.jpg

Roll Highlighting Result Color
Blue White
Green Green
Yellow Yellow
Red Red
Column # Rank
0 0
1 Fe
2 Pr
3 Ty
4 Gd
5 Ex
6 Rm
7 In
8 Am
9 Mn
10 Un
11 X
12 Y
13 Z
14 1000
15 3000
16 5000
17 B

@Silvyre
Copy link
Author

Silvyre commented Jan 7, 2017

It's possible to have the macro display the name of the column instead of its number.

To achieve this, create 18 Rollable Tables with one Table Item, like so:

Table Name Table Item
0-column 0
1-column Fe
2-column Pr
3-column Ty
4-column Gd
5-column Ex
6-column Rm
7-column In
8-column Am
9-column Mn
10-column Un
11-column X
12-column Y
13-column Z
14-column 1000
15-column 3000
16-column 5000
17-column B

Then, within the macros, replace
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]] ]] or
Column [[ [[{{?{CS|0}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<[[?{Ability} + {0}]], {0,0}>1}kh1, {17} }kl1]] ]]
with
Column: [[ 1t[[[{{?{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]]-column] ]] or
Column: [[ 1t[[[{{?{CS|0}+{1,3,5,8,16,26,36,46,63,88,126,176,351,1e3,3e3,5e3}<[[?{Ability} + {0}]],{0,0}>1}kh1, {17} }kl1]]-column] ]]
Note: this is already done for the "variant style" macros.

@Silvyre
Copy link
Author

Silvyre commented Dec 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment