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 .
×
The Holiday Sale Continues! 30% OFF Select Marketplace Maps, Adventures, Rulebooks, & More!

Is there an if/then system? (aka, critical hits, extra dice, and you)

What I'm trying to do is roll 1d20+9 and 2d6+4. If the d20 is a nat 19-20, I want it to roll an additional 1d20+9 and 1d6+3 damage, but separate from the original. As a side note, is there a way for players to make their own rollable tables? Specifically, I'm trying to make a macro that pulls random descriptions. For example, "Jericho attacks the creature (with a mighty upward swing)/(by spearing his blade into its' side)/(with deft grace, avoiding it's jabs before striking through it's defenses)."
If you're willing to upgrade to mentor, there are API scripts that can conditionalize parts of your roll expression (both Extended Expressions and PowerCards 3 will do this). If not, some character sheets provide templates which are capable of conditionalizing the display of certain sections. Depending on what system you're using, the built-in character sheet may be able to do what you want. If neither of those apply, you're probably best off using the default template and the critical highlighting feature: &{template:default} {{name=Attack}} {{To Hit=[[1d20cs>19 + 9]]}} {{Damage=[[2d6 + 4]]}} {{Critical Confirm=[[1d20+9]]}} {{Critical Damage=[[1d6+3]]}} Then you can ignore the "Critical Confirm" and "Critical Damage" rows unless the roll in the "To Hit" row has a green border.
Thank you, that helps a lot! Any advice on the random sentence generator?
You can't actually randomly generate sentences, but you can store things in Roll Tables, and spit them out randomly, you could possibly string a bunch of them together and get actually random sentences, but they will be mostly gibberish. Some of the API wizards could probably do something, but you are going tol need a lot of code for very little return. This is a problem with AIs, they are lousy at small talk.
David R. said: Thank you, that helps a lot! Any advice on the random sentence generator? roll tables.... You have a few options for this with roll tables.... option 1) predefined sentences. If you have a number of predefined sentences then you simply create a single roll table that holds each sentence as a different result on the table. option 2) sentence building. Create 2 or 3 roll tables populated with different sections of sentences, then roll them all together to create a random string.
Right, I didn't actually mean random. I got the idea from an old thread, which explained the roll table random sentence generator very nicely, but as a player, I can't create/edit roll tables. Is there any alternative? Or, can my GM give me access too roll tables/a roll table? I'm hesitant to just give him something to put in the roll table, because I don't understand the coding very well, and have to test macros constantly while I'm putting them together, so I know that they're working, and I haven't fucked up.
David R. said: Right, I didn't actually mean random. I got the idea from an old thread, which explained the roll table random sentence generator very nicely, but as a player, I can't create/edit roll tables. Is there any alternative? Or, can my GM give me access too roll tables/a roll table? I'm hesitant to just give him something to put in the roll table, because I don't understand the coding very well, and have to test macros constantly while I'm putting them together, so I know that they're working, and I haven't fucked up. The Roll Table is actually pretty easy! Just type up your emotes and then ask your GM to create a table for you. Then, click Add Item, and then paste your sentences in. Then, when you want to use it, just inline rolls. For instance, if it's called Emote, you can just type [[1t[Emote]]]
So I can just have him write "sentence ending 1", "sentence ending 2", etc., name it "Sentences", and then type "/me does [[1t[Sentences]]]"?