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 ;-;

May 30 (7 years ago)

Edited May 30 (7 years ago)
Hello everyone I am an extreme noob when it comes to macros so any help would be amazing. I run a game system where I have to do stuff a little bit differently. A few of the rolls call for adding a d100 onto a skill check. So because this is d&d 5e we use this for investigation, survival, and maybe a couple others. I am trying to make some quality of life changes in the form of a macro.

Ideally it would just be a simple: /roll 1d100+(skill check aka 1d20+modifier) and give me the total result of the two rolls+modifier

Any help would be amazing. Thanks again!
May 30 (7 years ago)
Andrew C
Marketplace Creator
Are you using 5E OGL or 5E Shaped Sheet? I don't happen to know the relevant names of the things, but the modifiers will all be named and to reference those you need to put them inside @{  }

You're basically looking to have
[[1d100+1d20+?{Which Skill?| **((Skill name here))**, **((Sheet reference for modifier here**))| **((rinse and repeat))** } ]]

OGL.Im sorry, I am pretty dense. what do you mean by **((Sheet reference for modifier here**)) and rinse and repeat?
May 30 (7 years ago)

Edited May 30 (7 years ago)
Sorry I tested it and see what you mean with how it created a drop down window which is cool. The issue I am having is including the [investigation] check where the ? is in the 1d100+1d20+?.  So it can automatically pull the investigation roll and add it to a d100 roll.

Edit: Tested again doesnt seem to be adding the modifier for "investigation bonus"
May 30 (7 years ago)

Edited May 30 (7 years ago)
This should roll a 1d100 + what ever modifier you want in there. If nothing, just hit enter.

The first code is generic, the second one is specifically for investigation. You have to have a character selected for it to work.
/em rolls a D100
&{template:default} {{D100= [[1d100+1d20+?{modifier|0}]],[[1d100+1d20+?{modifier|0}]]}}


/em rolls a D100 &{template:default} {{D100= [[1d100+1d20+@{selected|investigation_bonus}]],[[1d100+1d20+@{selected|investigation_bonus}]]}}
May 30 (7 years ago)
Andrew C
Marketplace Creator

Cableguy said:

Sorry I tested it and see what you mean with how it created a drop down window which is cool. The issue I am having is including the [investigation] check where the ? is in the 1d100+1d20+?.  So it can automatically pull the investigation roll and add it to a d100 roll.

Edit: Tested again doesnt seem to be adding the modifier for "investigation bonus"

I gave you a really generic option.
I don't know what "Investigation" is as a total on the OGL sheet, but you can find it from the Attributes & Abilities tab of the Character Sheet.
You then insert the name inside @{ } and put it into the ?{  }

Blood L. said:

This should roll a 1d100 + what ever modifier you want in there. If nothing, just hit enter.

The first code is generic, the second one is specifically for investigation. You have to have a character selected for it to work.
/em rolls a D100
&{template:default} {{D100= [[1d100+1d20+?{modifier|0}]],[[1d100+1d20+?{modifier|0}]]}}


/em rolls a D100 &{template:default} {{D100= [[1d100+1d20+@{selected|investigation_bonus}]],[[1d100+1d20+@{selected|investigation_bonus}]]}}

This was perfect! Exactly what I needed. Thank you very much.Thank you as well Andrew :D