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

Questions about using macros with target number dice

So I'm playing a WHFRP 2e game and want to make a macro that is like the character sheet roll but allows me to add in modifiers.

/roll 1d100<@{Selected|BallisticSkill} +?{Modifier|0}
doesn't seem to work and it also gets rid of the success or failure pop-up.

Anyone know how to do this?
July 18 (9 years ago)
Finderski
Sheet Author
Compendium Curator
Try: 

/roll 1d100<[[@{Selected|BallisticSkill} +?{Modifier|0}]]
July 19 (9 years ago)

Edited July 19 (9 years ago)

Finderski said:

Try: 

/roll 1d100<[[@{Selected|BallisticSkill} +?{Modifier|0}]]

This doesn't roll at all unfortunately


EDIT: Nevermind got it going
July 19 (9 years ago)

Edited July 19 (9 years ago)
Does this roll?
/roll 1d100<[[ @{Selected|BallisticSkill} + [[?{Modifier|0}]] ]]
If not, what's the value of BallisticSkill, and what's the Modifier you're inputting?
July 19 (9 years ago)
Finderski
Sheet Author
Compendium Curator

Evan said:

Finderski said:

Try: 

/roll 1d100<[[@{Selected|BallisticSkill} +?{Modifier|0}]]

This doesn't roll at all unfortunately

I'm assuming you had a token selected? Without that it won't roll, but that formula worked for me... :-/
Nah we mostly don't use tokens in this game since theatre of mind is usually sufficient.

So I started with
/roll 1d100<[[@{Selected|BallisticSkill} +?{Modifier|0}]]


Then I tried it with
/roll 1d100 < [[?{Modifier|0}+@{Selected|BallisticSkill}]]
and it worked
then I switched it back

I think I accidentally copied yours instead of modifying mine so it still said "selected" instead of my character's name

Silvyre said:

Does this roll?
/roll 1d100<[[ @{Selected|BallisticSkill} + [[?{Modifier|0}]] ]]
If not, what's the value of BallisticSkill, and what's the Modifier you're inputting?

This one also works.

Also do you know if I can make it say Success or Failure again?
July 19 (9 years ago)

Evan said:

Silvyre said:

/roll 1d100<[[ @{Selected|BallisticSkill} + [[?{Modifier|0}]] ]]

Also do you know if I can make it say Success or Failure again?

This /roll should output '0 Successes' or '1 Successes'—is this not your experience?
Nope it no longer outputs the number of successes.  I'm not linked to tokens but I wouldn't think that would matter.
July 19 (9 years ago)
Did you replace 'selected' with the name of your Character?
I did because it wasn't rolling before that.  Now it rolls and properly adds up the target number it just doesn't announce successes.
July 19 (9 years ago)
Would you mind posting a screenshot of the macro's output in the Text Chat?
July 19 (9 years ago)
Remove the spaces before and after the inequality sign
That did it thanks so much!