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

character sheet roll question

in the system im currently developing a sheet for the skill rolls work a little differently then most, to roll a success you have to roll UNDER your skill +bonus or - a penelty (based on wounds and GM discretion) problem is to show a success it has to be rolled OVER a certain amount and adding a penelty or bonus to the formula doesnt seem to work as intended. the current formula i have to attempt to show a success as under (and by how much) is as follows [[/roll 1d100 - ?{bonus or penely?|0} - {@{Athletics}) > 0]] but it.....doesnt seem to give any output when a penelty is typed in
1503596787
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The success roll syntax works with rolling under target number: [[1d100<50]] For your use case this should work: [[1d100<[[?{mod|0}+@{Athletics}]] ]]
with that though it will only show how many success's it has done, i also need to be able to see how much under or over it was, because of how well or how badly the action taken was depends on that number
1503599838
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, ok, then looks like your macro is close to what you want. Your problem with the no output is that you've got mismatched brackets and a /roll command nested in your inline brackets: [[ /roll 1d100 - ?{bonus or penely?|0} - { @{Athletics} ) > 0]] should be: [[ 1d100cs<[[?{bonus or penely?|0} - (@{Athletics})]] - ?{bonus or penely?|0} - (@{Athletics}) > 0]] This however still won't do what you want. This should work for you: [[?{bonus or penely?|0} + (@{Athletics}) - 1d100cs<[[?{bonus or penely?|0} + (@{Athletics})]]cf>[[?{bonus or penely?|0} + (@{Athletics})+1]]]]
this does seem to work as intended, this system uses a odd rolling mechanic i havnt encountered before, since this is just for the alpha of the system (as we develop it) and my lack of....roll20 api knowlage i appriate your help greatly to allow the people who test it to be able to play this on roll20 
1503604727
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
np.