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

Charactermancer: Roll on critical table

1611857408
Abd al Rahman
KS Backer
Sheet Author
API Scripter
I am trying to implement this in a character sheet: Like many RPG-System, this one has critical hit tables. I would like to implement table roles within the character sheet. It is a rather usual D100 table. 1-10 this hapens 11-20 that happens and so on. To do this, I need to react to a dice roll. I can use of course random() from Java Script but this is not the same as a dice roll.  Any idea to accomplish this?
1611858560
Finderski
Plus
Sheet Author
Compendium Curator
So, slight clarification...Charactermancer is typically the name associated with the wizard that helps a person generate/create a character. I'm assuming you aren't talking about that, since we are talking about critical hits. If that is the case, you could just always roll a d100 and only display the result in the roll template if certain criteria are met. For that, the roll template would need to use the helper functions, probably rollGreater or rollTotal.
1611860887
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Thank you for the reply :) It is not the roll itself. I want to show a text depending on the result. Like: 20: You hit them in the face, 100: You killed him instantly. 
1611865661
Finderski
Plus
Sheet Author
Compendium Curator
There are several ways to handle this:  1. Rollable Table (would require a separate roll calling that table). If this is a sheet you plan on sharing with the community, this would require each GM to set up the rollable table in their game and it would need the same name as whatever name you give it in your roll button. 2. If you want it done at the same time as the attack roll, then build the roll as part of the Roll Template. This would still require you send the d100 roll to the roll template at the same time (for example, you could send it with something like {{Location=[[1d100]]}}. If you go with 2, you'd need to still send the d100 roll with the rest of the rest of the roll, you'd just need to use the Roll Template helper functions to display the proper information. For that, you're going to want to use the roll template helper functions . You'd just need to construct your roll template with that stuff in mind.
1611866674
Abd al Rahman
KS Backer
Sheet Author
API Scripter
I was not aware of the helper functions. Thank you very much! It does not solve all of my needs, though. In the system I am using, the player can decide if they want a reroll before the roll on the crit table happens. After the d100 they cannot reroll. But that's only a minor inconvenience.  Thank you a lot!
1611866842
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Wait... I can archive that with a button below a crit, which calls a different roll template.  Great. That really solves all my issues :)