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

Essence20 Specialization dice roll

Heya. I'm trying to write a macro that'll run a standard Essence20 system dice roll, with dropdowns for the specialization dice. I've already got the base, Edge and Snag d20's working with the following code: Roll: [[?{Choose the roll type|Base,1d20|Edge,2d20kh1|Snag,2d20kl1}+?{Choose your Skill Die Type|0|1d2|1d4|1d6|1d8|1d10|1d12|2d8|3d6}]] But I can't seem to do the same when I move to the Specialization dice. I need to roll dice based on the following criteria If I choose a... d4: I roll a 1d4, and a 1d2, keep the highest of the two, and add that to the d20 roll I chose. d6: I roll a 1d6, a 1d4, and a 1d2, keep the highest of the three, and add that to the d20 roll I chose. d8: I roll a 1d8, a 1d6, a 1d4, and a 1d2, keep the highest of the four, and add that to the d20 roll I chose. d10: I roll a 1d10, a 1d8, a1d6, a 1d4, and a 1d2, keep the highest of the five, and add that to the d20 roll I chose. I don't know why, but my code breaks at the first hurdle. I read up on Nesting, but so far, none of the HTML modifications are working, and I get garbage out when I try.
1672569394

Edited 1672569604
Gauss
Forum Champion
Let me make sure I have this understood:  Query to select Base etc dice Query to select Skill dice Query to select Specialization dice?  Also, are you putting this into an Ability macro or a Collections tab macro? You cannot use HTML entities in a Collections tab macro. It will convert them to non-HTML entities and thus break them.  If that is the case, put them into an Ability macro, then call them from a Collections tab macro. Even better, use a Macro Mule to put all your macros on.
1672592143
GiGs
Pro
Sheet Author
API Scripter
have a look at this page and see if it helps <a href="https://cybersphere.me/essence-20/" rel="nofollow">https://cybersphere.me/essence-20/</a>
1672594596
timmaugh
Forum Champion
API Scripter
I don't think you have to nest that in such a way that will require HTML replacements. You just need to place your queries within the double brackets of the inline roll and connect them with + ... I'll try to put together an example when I get back to my computer, if no one else has...
Gauss said: Let me make sure I have this understood:&nbsp; Query to select Base etc dice Query to select Skill dice Query to select Specialization dice?&nbsp; Also, are you putting this into an Ability macro or a Collections tab macro? You cannot use HTML entities in a Collections tab macro. It will convert them to non-HTML entities and thus break them.&nbsp; If that is the case, put them into an Ability macro, then call them from a Collections tab macro. Even better, use a Macro Mule to put all your macros on. It'd be a Collections tab macro which, after reading the rest of your post, is probably why my HTML edits aren't working. :-) But I'm not trying to run the skill dice at the same time as the Spec dice. Essence20 runs a different rolling mechanic based on whether or not you have a specialization in effect: You roll your highest skill die, plus every other legit die below that one, take the highest of the set, and add that to the tally. Basically it's a probability flattener against bad high skill die rolls(my d12 rolled a 1, my d10 rolled a 3, but my d8 rolled a 7, so I use the d8's result) The roll code I put in my main post, is the non-specialization version, and that works fine. Far as a macro mule, I'm guessing that's what I was thinking last night as I drifted off to sleep: running a macro for each set of specialization dice, then running a separate macro that calls the appropriate dice macro? Still kinda new to writing macros at this level. :-)
1672597642

Edited 1672597695
GiGs said: have a look at this page and see if it helps <a href="https://cybersphere.me/essence-20/" rel="nofollow">https://cybersphere.me/essence-20/</a> And your site worked PERFECTLY, thanks dude. :-) I did a little tinkering with the code, to pare it down from six separate rollers, to just two: This is a Regular skill roll: It'll call for the die type, and then call for the d20 type: Base, Edge or Snag, then roll them all and return the correct final result. &amp;{template:default} {{ ?{Skill Level| d2,d2 Skill Roll=[[1d2| d4,d4 Skill Roll=[[1d4| d6,d6 Skill Roll=[[1d6| d8,d8 Skill Roll=[[1d8| d10,d10 Skill Roll=[[1d10| d12,d12 Skill Roll=[[1d12| 2d8,2d8 Skill Roll=[[2d8| 3d6,3d6 Skill Roll=[[3d6}cf0 + ?{Choose the roll type|Base,1d20|Edge,2d20kh1|Snag,2d20kl1} ]]}} And this one's the Specialized die roller, which takes the code from your site on spec dice, and adds the same Base, Edge and Snag calls. :-) &amp;{template:default} {{ ?{Skill Level?| d2,d2 Specialized Roll=[[1d2cf0| d4,d4 Specialized Roll=[[{1d2cf0 + 1d4cf0| d6,d6 Specialized Roll=[[{1d2cf0 + 1d4cf0 + 1d6cf0| d8,d8 Specialized Roll=[[{1d2cf0 + 1d4cf0 + 1d6cf0 + 1d8cf0| d10,d10 Specialized Roll=[[{1d2cf0 + 1d4cf0 + 1d6cf0 + 1d8cf0 + 1d10cf0| d12,d12 Specialized Roll=[[{1d2cf0 + 1d4cf0 + 1d6cf0 + 1d8cf0 + 1d10cf0 + 1d12cf0| 2d8,2d8 Specialized Roll=[[{1d2cf0&amp;comma; 1d4cf0&amp;comma; 1d6cf0&amp;comma; 1d8cf0&amp;comma; 1d10cf0&amp;comma; 1d12cf0&amp;comma; 2d8cf0 | 3d6,3d6 Specialized Roll=[[{1d2cf0&amp;comma; 1d4cf0&amp;comma; 1d6cf0&amp;comma; 1d8cf0&amp;comma; 1d10cf0&amp;comma; 1d12cf0&amp;comma; 2d8cf0&amp;comma; 3d6cf0 } }kh1 + ?{Choose the roll type|Base,1d20|Edge,2d20kh1|Snag,2d20kl1} ]]}}
1672600965
GiGs
Pro
Sheet Author
API Scripter
You're welcome. I'm glad it helped :)