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 .
×

[Cortex Prime] - Effect Die mechanic

I'm going to be running a Cortex Prime game on Roll20 and I'm running into some difficulties finding an elegant way to handle an effect die. The variation of Cortex I'm looking at running is in the same vein as Heroic, using the option for Life Points and so damage would be rolled and not just a die complication. The damage roll from combat would use a die associated with the weapon and add to it a value derived from the attack roll. Ideally, I want to select a die that is not included in the ones that are kept for the attack roll total and re-roll it for damage.  I have been able to write a macro and program buttons in a character sheet to handle the basic Cortex roll of assembling a dice pool and keeping the 2 (or sometimes more) dice for the result. Ex: /r {1d10+3d8+2d6}kh2 giving a result like {(3)+(2+1+1)+( 5 + 4 )}= 9 . In this example, I'd want to select the d10 that rolled a 3 as the effect die and then re-roll it and adding the damage die from the weapon. So for a 1d8 weapon it'd be /r {d10+d8}  There are some other quirks with the Cortex mechanic that add some more complexity to this, such as never being able to use a 1 since it's a "spoiler".  Here is sort of the wish list of solutions: The best solution would be able to somehow pick any individual dice after they have been rolled selecting 2 for the result and 1 as the effect to be added to damage. Sometimes it's to a player's advantage not to pick the 2 highest to form their result if they could pick a very high effect die. That might not be easily workable. I don't have a lot of JS experience, so I don't feel up to writing a script just yet.  Assuming that picking individual dice is overly complicated, it would be nice to have the roll keep the two highest as the roll result and then select the highest remaining die type to re-roll adding to damage. Again, I haven't seen any commands that recognize the die type after the roll.  A workable solution could be to keep the two highest for the roll result and just pass the roll of the 3rd highest to the damage (or pass the highest and use the next 2 for the result) but I haven't been able to find how to pass the value of a completed roll on to a secondary roll. Using a standard macro / character sheet roll (not inline) that displays the value the dice rolled and identifying the effect die you want to use and entering a new roll using it. This is the current plan barring any neat new macros. A separate but somewhat overlapping issue is the spoilers. All 1s need to be excluded from any selection for results and effect. Sometimes the keep 2 roll that I've setup will keep a 1 as it's the only available die, and that shouldn't occur in Cortex. It would also be nice for a character sheet roll inline if it returned the number of spoilers. I think this is possible, I just haven't had a chance to tackle this part yet, since the 1s leap out in a standard roll and it's easy to deduct 1 if they get selected.  The standard rolls are certainly workable and the incorrect results they might throw up or the few times a player might want to strategically pick an effect die should be easy enough to handle on the fly. The Cortex system does seem much more geared to using physical dice but I would like to find a more elegant solution online if possible. 
1533808403
GiGs
Pro
Sheet Author
API Scripter
You can't do any of the things you want to do with a standard macro. You are a pro user though, so you can do it with the API. It would be tricky to write the script to produce the effect you want, but you might be able to to do it with the Power Cards API. Ik now there are a few users of that script who can probably show how to do it.