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

Exploding Die

I am trying to make a macro for Cyberpunk 2020 and in this game when you roll your random die, a d10, if you roll a 10 you re-roll ONE time and add the results. Is there a function I a missing that allow a single re-roll in this case?
1388727969
Pat S.
Forum Champion
Sheet Author
Probably will require the API. I was playing around with the exploding hackmaster in trying to figure out how to make it work but I haven't yet.
1388786083
GiGs
Pro
Sheet Author
API Scripter
This works but the output isn't pretty /roll {1d10!,20d1}kl1+(whatever the score is here)
1388959513
Gauss
Forum Champion
G G , you can turn that into an inline roll and it will "pretty it up".
not following the formula or how it works.
1388968013
Pat S.
Forum Champion
Sheet Author
G G said: This works but the output isn't pretty /roll {1d10!,20d1}kl1+(whatever the score is here) the formula rolls {1d10!(exploding),20d1}kl1(keeps the lowest roll)+(the score)} but why is he needing to roll 20d1?
That is the part that is confusing me. I need a formula that rolls 1d10! but only re-rolls a single time. So if a 10 is rolled on a second time on the exploding dice it stops and no longer re-rolls. Which I do not think it can be done outside a API, but thought I would ask.
1388972434

Edited 1388983005
Gauss
Forum Champion
rpgman2013 , I like your solution. :) It caps the roll at 20 regardless of the number of rerolls above 20. Edit: Doh, I meant G G. I think I started by explaining G G's system to rpgman2013 but then switch to simply stating that I liked it and I failed to change the person I was aiming it at. LOL, thats what I get for posting in between World of Tanks matches. :)
I have tried this and it works, though it still gives me three outputs, which is annoying /r [[ {1d10!,20d1}kl1 [Die] +@{INT} [INT] +?{Skill|0} [Sk] +?{Modifier|0} [Mod] +?{Luck|0} [Lk] ]] Die: die roll 1d10 exploding, re-roll once INT: intelligence taken from character sheet Sk: skill level inputted manually Mod: any environmental modifier Lk: luck inputted manually
1388978663
GiGs
Pro
Sheet Author
API Scripter
Metroknight said: G G said: This works but the output isn't pretty /roll {1d10!,20d1}kl1+(whatever the score is here) the formula rolls {1d10!(exploding),20d1}kl1(keeps the lowest roll)+(the score)} but why is he needing to roll 20d1? Because you cant mix numbers and dice in a group: it would be great if this worked: {{1d10!(exploding),20}kl1} but it doesn't. Gauss, that was my solution! (Inspired by one of your earlier posts actually). rpgman: the three outputs you mention? Are you referring to the prompts? Why have separate prompts for Skill, Mod, Luck? The players know their skill, they know their luck, and you have told them the modifier: just let them add the total into a single ?Modifier query. I guarentee maintaining 3 separate prompts like that will get irritating before a session is complete. This allows you to highlight the roll on output: /r [[{1d10!,20d1}kl1]] +@{INT} +?{Modifier|0} Note the placement of [[ ]], inspired by Gauss's suggestion upthread.
I am not sure why there are three outputs. And yes it will get exceedingly old by the end of a session. I chose to use the three inputs because the formula is written to be used with any INT based skill they may wish to use. Modifier was just that, a Modifier. The Lk? Well that is a nebulous thing that is based off an attribute that the person may choose to use at any time. I don't know I really wanted them as separate input fields so I could go back and check each one if a roll looked "fishy".
1388983474

Edited 1388983705
Gauss
Forum Champion
rpgman2013 , that is not three outputs. The /roll command has three lines. The first line is 'what are you rolling'. The second line is the roll. The third line is the final output. Example: Command: /roll 1d20 +5 First line: rolling 1d20+5 Second line: (3)+5 Third line: = 8 However, in your example everything is in an inline section in the first line. Thus: First line: result of the inline Second line is the roll which in this case is none since it is all done already. Third line is the output which is the same as the input. Example: Command: /roll [[1d20+5]] Inline resolves to "Rolling 1d20+5 = (14)+5" which is then shown as 19 First line: rolling 19 Second line: 19 Third line: = 19 Remove the /roll and it will be just the inline roll or get rid of the inline roll (either entirely or place it just on one section)