I THINK the new Custom Roll Parsing for Character Sheets will now allow me to do a proper downroll as seen in RoleMaster d100OE rolls. However, I can not really parse how to structure this. The basic structure for the roll I am modeling is an "if-then" die roll. You roll a d100!>95 & if you roll less than 6 on this roll then subtract another d100!>95 from it. After this is done, add in all the other bonuses and penalties. So I am thinking <script type="text/worker">
on('clicked:test', (info) => {
startRoll("&{template:test} {{name=Test}} {{roll1=[[ 1d100!>95-1d100!>95]]}}", (results) => {
const regularroll = dice[0]
const downroll = result
finishRoll(
results.rollId,
{
if ( regularroll < 6 ) { roll1: downroll } else { roll1: regularroll } ,
}
);
});
});
</script> What I am struggling with is: How do I add in the skill bonuses so a player can hover over and see the results in the chat window? I think it has something to do with building the button macro within a script, but I am far out to sea here.