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

Extremely annoying macro trouble

Okay I have an extremely annoying single use question I need a d10 and a d5 to roll as well as the rest of the macro if the d100 fails (goes above 40) and not roll it if it succeeds (goes under 40) but still continue the macro as normal. This has been very frustrating (especially since I can't use scripts) and I have exhausted all of my resources now that I am asking the forums. If you can figure out a way to do this I will be eternally grateful. (Macro below) /r d100&lt;40 ?{Grenade|Smoke,|Frag, Damage [[2d10X]]|Hallucinogen, Effect[[d10]] Rounds [[d10]][Boop](<a href="http://i.imgur.com/51NQ6Ou.png)|Fire" rel="nofollow">http://i.imgur.com/51NQ6Ou.png)|Fire</a> Bomb, [[1d10+3]] }
1449429284

Edited 1449429706
As you said, this is best handled by scripts. Here's a less-than-optimal alternative. [[ 1d100&lt;40 * ?{Grenade| Smoke, 1 ]] | Frag, [[2d10]] [Damage] ]] | Hallucinogen, [[d10]].[[d10]] [Effect.Rounds] ]] [Boop](<a href="http://i.imgur.com/51NQ6Ou.png" rel="nofollow">http://i.imgur.com/51NQ6Ou.png</a>) | Fire Bomb, [[1d10+3]] ]] }
Not possible without a roll template or api script.
Silvyre said: As you said, this is best handled by scripts. Here's a less-than-optimal alternative. [[ 1d100&lt;40 * ?{Grenade| Smoke, 1 ]] | Frag, [[2d10]] [Damage] ]] | Hallucinogen, [[d10]].[[d10]] [Effect.Rounds] ]] [Boop](<a href="http://i.imgur.com/51NQ6Ou.png" rel="nofollow">http://i.imgur.com/51NQ6Ou.png</a>) | Fire Bomb, [[1d10+3]] ]] } Why did you put all the text in brackets? This is just a broken version of the one I made. This one doesn't even add the 2 criteria that was needed in the new one. (I'm sorry if that came out rude it wasn't meant to)
1449475763

Edited 1449475972
null said: Why did you put all the text in brackets? Are you referring to inline labels ? Within an inline roll, text that is [placed within square brackets] will be ignored by the parser. Text that is not won't and will hence often break inline rolls. I did, however, drastically misinterpret your request. What I posted above was a crude way of either "hiding" or "displaying" the results of the inline rolls within your Roll Query depending on the outcome of the d100 roll. Instead, here's a crude way of either "hiding" or "displaying" the results of [[d10]] and [[d5]] depending on the outcome of the d100 roll: [[ (1 - d100&lt;40) * [[d10]].[[d5]] [d10.d5] ]]
I still don't see the point in putting the text in brackets the rolls yes but the text I don't see the point
Dude that might actually work thanks
1449476712

Edited 1449476831
Inline labels are used to annotate inline rolls; to make it easier to determine what's going on when examining an inline roll via tooltip (or even via forum post). You have [[2d10X]] up in the OP. [[2d10X + 100]] doesn't work due to the aforementioned reasons, but [[2d10[X] + 100]] does.
Yeah after messing around with it I saw that and what I did was a changeling the label to [Direction.Distance] because the roll comes out as a decimal and that explains what it is
BTW why put the 1- there?
1449477127

Edited 1449477193
Cool, I'm glad we were able to find a makeshift solution. null said: BTW why put the 1- there? (1 - d100&lt;40) resolves to 1 on a fail, and 0 on a success; it multiplies the decimal accordingly.
Now new question if I add a&nbsp;?{Modifier|0} like this [[ (1 - d100+?{Modifier|0}&lt;40) * [[d10]].[[d5]] [Direction.Distance] ]] ?{Grenade|Smoke,|Frag, [[2d10X]]|Hallucinogen, Effect[[d10]] Rounds [[d10]][Boop](<a href="http://i.imgur.com/51NQ6Ou.png)|Fire" rel="nofollow">http://i.imgur.com/51NQ6Ou.png)|Fire</a> Bomb, [[1d10+3]] } It doesn't work, Why is that?
1449477996

Edited 1449478127
N&lt;M where N, M are both numbers isn't an expression that the parser can evaluate; the Roll Query needs to be placed within a Grouped Roll . (1 - { d100+?{Modifier|0} } &lt;40)
Could you write it into the macro in a way that it works because I tried your way and fucked it up
[[ (1 - {d100+?{Modifier|0}}&lt;40) * [[d10]].[[d5]] [Direction.Distance] ]]
I still have no idea what I did wrong with that but I guess I can finish the macro now and if you guys want I can post the final result it's a macro for the grenades in only war
Completed, working Macro examples are always appreciated by the community, to use as examples and ideas for other uses :)
I was only going to add the ones I was using in the campaign should I add all of the damage dealing ones?
Well here is is I guess all you need to do is replace the 40 with your ballistics skill and ask your GM if there is a modifier positve of negitive and put that in the box when it pops up &nbsp; [[ (1 - {d100+?{Modifier|0}}&lt;40) * [[d10]].[[d5]] [Direction.Distance] ]] ?{Grenade|Smoke,|Frag, [[2d10]]|Hallucinogen, Effect[[d10]] Rounds [[d10]][Boop](<a href="http://i.imgur.com/51NQ6Ou.png)|Fire" rel="nofollow">http://i.imgur.com/51NQ6Ou.png)|Fire</a> Bomb,Damage [[1d10+3]] |anti-plant, damage [[3d10]]|Photon Flash}