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

Macro Help

Hey there guys, I know this is a long macro, but at this point it works. The only added function I wanted to add, is if it rolls 0+ it tells you success or hit or whatnot, and if -1 or lower is say failure miss, again whatnot. What am I missing here? Offense &{template:default} {{name=?{Offensive Skill?|Blaster|Brawling|Gunnery|Heavy weapons|Lightsaber|Melee combat} Skill}} {{Roll=[[1d6!+(?{How Many Dice (D)|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14}-1)d6cs100cf0+?{Pips(+)|0|1|2|3|4}-(?{Static Defense Value?|0}?{Range Modifier?|Engaged,-5,Short,+0|Medium,+5|Long,+10|Extreme,+20}?{Cover?|None,+0|25%,+3|50%,+6|75%,+12}?{Environment?|None,+0|Light smoke/poor light,+3|Thick smoke/moonlit night,+6|Very thick/smoke complete darkness,+12}?{Scale Difference?|Character,+0|Speeder,+6|Walker,+12|Starfighter,+18})]]}}
1461714303

Edited 1461714982
Normally you would want to use  Target Number (Successes)  , but I'm not sure how it will work for such a complicated formula. Edit: Ok I played around just a little and came up with a very simplified version of what you have going on. So basically you can only have one die roll to do the target number of successes but you can put your other die roll and variables in nested brackets so the parser just sees it as the result and not a die roll.  like so  [[{1d6! - [[1d6+2]]}>0]] Hits you will get a 1 or a 0 hits, and you would have to mouse over the results to see what was all added together. 
IT specifically needs to be 0+ is a hit. I did try adding the >0 inside the brackets [[ ]] at the end. It shows >0 as though its text only. I am wondering if there is some sort of function within the "template" that is messing with this function.
Try this out: &{template:default} {{name=?{Offensive Skill?|Blaster|Brawling|Gunnery|Heavy weapons|Lightsaber|Melee combat} Skill}} {{Roll=[[{1d6!+[[(?{How Many Dice (D)|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14}-1)d6cs100cf0]]+?{Pips(+)|0|1|2|3|4}-(?{Static Defense Value?|0}?{Range Modifier?|Engaged,-5,Short,+0|Medium,+5|Long,+10|Extreme,+20}?{Cover?|None,+0|25%,+3|50%,+6|75%,+12}?{Environment?|None,+0|Light smoke/poor light,+3|Thick smoke/moonlit night,+6|Very thick/smoke complete darkness,+12}?{Scale Difference?|Character,+0|Speeder,+6|Walker,+12|Starfighter,+18})}>0]]}}
Thanks, but no, it does not work, just gives me a value of 0.
1461801388

Edited 1461801661
[[{1d6!+[[(?{How Many Dice (D)|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14}-1)d6cs100cf0]]+?{Pips(+)|0|1|2|3|4}-(?{Static Defense Value?|0}?{Range Modifier?|Engaged,-5,Short,+0|Medium,+5|Long,+10|Extreme,+20}?{Cover?|None,+0|25%,+3|50%,+6|75%,+12}?{Environment?|None,+0|Light smoke/poor light,+3|Thick smoke/moonlit night,+6|Very thick/smoke complete darkness,+12}?{Scale Difference?|Character,+0|Speeder,+6|Walker,+12|Starfighter,+18})}>0]] i.e. [[{1d6!+[[(1)d6cs100cf0]]+0-(0+0+0+0+0)}>0]] i.e. [[ { d6! + [[d6]] - etc. }>0 ]] hits The above Grouped Roll returns a value of 0 if d6! + [[d6]] - etc. resolves to be less than or equal to 0, or returns a value of (at least) 1 if d6! + [[d6]] - etc. resolves to be greater than or equal to 0. Check out: 17.4 Grouped Rolls 17.5 Grouped Roll Modifiers 17.5.2 Target Number / Successes (B,F) - CP 17.5.3 Failures (B,F) - fCP
Okay, this is what I am trying to do: input a set of values, total that group, add together another set of values, add them, subtract from the first sum. [[(1+2+3)-(1+2+3)]] = sum, if value 0+ hit, -1 or lower, miss.
1461801884

Edited 1461801897
Try: [[ {(1+2+3)-(1+2+3) + d0}>0 ]] hits. or [[ {?{Group A|1} - ?{Group B|2} + d0}>0 ]] hits.