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

Shadowrun macro with an on/off switch for edge

1438394893

Edited 1438397662
I would like to put in something to have it query me about edge in my roll. Thus far I have [[(@{Caleb|agility} +@{Caleb|Automatics} +?{positives} -?{negatives})d6?{edge|!})skh@{Caleb|PLimit}>5]] Its not returning any rolls or glitches, it in fact returns nothing. When the edge section is removed, it runs fine. Id rather not have a duplicate macro for edge if I can avoid it. any advice?
I would guess it is in the section ?{positives} -?{negatives})d6 A query ?{} with no option for a choice isnt valid. What, by example, are you attempting a result to look like? d6? I am guessing should have some sort of math symbol between the 6 and the ?
1438396727

Edited 1438398146
When I take out the ?{edge|!}, it functions normally The ?{positives} -?{negatives} are for modifiers, but I did forget to open a second () wrapped around the edge query.       *closing that () changed nothing, and I added a |0 into the positive and the negative queries.* Id like the edge query to return only a ! so that the dice will explode. If I put in a choice of 1! then it will be d61! I was hoping I wouldn't need a math symbol btwn the 6 and the ? because Im interrupting the standard ending of the dice roll already(which is normally, "sort, keep highest") to try to sneak in the edge question. Corrected is  [[(@{ C aleb|agility}+@{Caleb|Automatics}+?{Positive Modifiers |0 }-?{Penalty |0 })d6? ({@Caleb|edge|1!}) skh@{Caleb|Plimit}>5]]
Here's a simply binary switch for edge: [[(@{Caleb|agility} +@{Caleb|Automatics} +?{positives} -?{negatives} + ?{edge|0}*@{Caleb|edge})d6![[?{edge|0}*6]]skh[[@{Caleb|PLimit} + ?{edge|0}*100]]>5]]