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

Need help making a simple macro for 5e.

Its probably easy but i don't know anything about this stuff. I want to make a special macro for looting that would be a characters  investigation bonus + 1d100 and another that would be  arcana bonus +1d100   Basically rolling a d100 for a skill check instead of a d20. Is this possible? Im using the 5e roll20 sheet.
The roll would look like this: [[@{selected|arcana_bonus}+1d100]] What are you trying to do? Are you using a 1d100 for all die rolls, or just these two for a special situation? If you want to change all rolls to be 1d100, then you can go to the Settings tab (click on the cog on the Character Sheet page) and change the 'Core Die Roll' to be 1d100 instead of 1d20. If you just want those two rolls to be adjusted, you can do it manually if you go to the Attributes and Abilities tab, and scroll down to the relevant attribute, such as 'investigation_roll', which will look like this: @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[@{d20}+@{investigation_bonus}[Mods]@{pbd_safe}]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[@{d20}|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[@{d20}+@{investigation_bonus}[Mods]@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output} You just need to swap out the '@{d20}'s with '1d100' @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[1d100+@{investigation_bonus}[Mods]@{pbd_safe}]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d100|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d100|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d100+@{investigation_bonus}[Mods]@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output} Caveat: I'm not sure when the sheetworkers will automatically revert that attribute back to the default. Possibly at level up, or perhaps when any of the linked attributes are changed.
I don't want to change the core skill, just make this a secondary option. When the players root around looking for treasure I'll have them use the new macro, I want them to sill use their skill bonus but for it to have a wider chance of randomness than a d20.
Ah gotcha.  You can just create a custom macro then.  It should look something like this (aircoded and untested): !?{Skill?|Arcana,@{selected|arcana_bonus}|Investigation,@{selected|investigation_bonus}} ?{Die size?|20|100} &{template:simple} {{rname=Search for Treasure}} {{mod=?{Skill?}}} {{r1=[[?{Die size?}+?{Skill?}[Mods]@{selected|pbd_safe}]]}} {{query=1}} {{normal=1}} {{global=@{selected|global_skill_mod}}} @{selected|charname_output} You'll have to add in the other skill types that you would want to use, and make sure to include the relevant html entity replacements inside the queries.  I suggest putting this macro on a Macro Mule (instead of as a Collections Macro) so that you don't have to worry about the html replacements getting parsed and replaced when opening the macro .
the very first one you posted was simple and worked well, thanks!