Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Homebrew BRP character sheet question.

I am working on a character sheet for my Basic Roll Playing-based campaign and am trying to mark a skill roll of under 20% of the skill as a critical success. Currently I am using: <button type="roll" name="roll_Administration_Roll" value="&{template:default} {{name=@{character_name}}} {{Administration=[[1d100cs<@{Administration}cf>99]] / @{Administration}}}"/> Which marks any success as a critical.  What I want is something like this: <button type="roll" name="roll_Administration_Roll" value="&{template:default} {{name=@{character_name}}} {{Administration=[[1d100cs<(@{Administration}/5)cf>99]] / @{Administration}}}"/> ... which doesn't work at all. Does anyone know how to format this so that a roll under 1/5 of an attribute will be marked as a critical success? Thanks!
1467766411
Diana P
Pro
Sheet Author
put the calculation for the cs in a nested inline roll ie: {{Administration=[[1d100cs<[[ @{Administration}/5 ]]cf>99]] / @{Administration}}} that should force it to calculate the 1/5 administration as you want.
That looks like it would work, but when I tried it, it would always print out "1" for a result.
1467785374

Edited 1467785400
Critical Success and Fumble Points only accept non-negative integers as arguments, so you'll likely want to add a rounding function to the inline roll. e.g. {{Administration=[[ 1d100cs<[[floor(@{Administration} / 5)]]cf>99 ]] / @{Administration} }}
Thanks!  That was exactly what I needed.