๐ Roll20 Macro Guides
Get started in 2 minutes with your first macro and token action
โก Quick Start: Macro vs Token Action
Roll20 has two ways to automate your game. Here's the difference in 30 seconds:
๐ฒ Macro
Always visible in your macro bar. Works without selecting anything.
Best for: GM tools, quick rolls, effects
/roll 1d20
โ Button sits in your macro bar, click anytime
โ๏ธ Token Action
Appears when you select a token. Automatically uses that character's stats.
Best for: Attacks, saves, character abilities
/roll 1d20+@{strength_mod}
โ Button appears above your token when selected
๐ฒ Your First Macro (1 minute)
Let's create a simple "Roll d20" button that's always available:
- Click the Collections tab (folder icon) in Roll20's sidebar
- Click + Add in the Macros section
- Name it:
Roll d20 - Paste this code:
/roll 1d20
- Check "Show in Macro Bar"
- Click Save
โ Done! You now have a d20 button at the bottom of your screen. Click it anytime to roll.
"I used to type /roll 1d20 every time. Then I took a macro to the knee." ๐น
โ๏ธ Your First Token Action (1 minute)
Let's create a "Strength Check" button that automatically uses your character's stats:
- Open your character sheet
- Go to the Attributes & Abilities tab (or gear icon)
- Click + Add in the Abilities section
- Name it:
STR Check - Paste this code:
/me rolls a Strength check: [[1d20+@{strength_mod}]]
- Check "Show as Token Action"
- Click Save
โ Done! Select your token on the map โ a "STR Check" button appears above it. It automatically pulls your character's Strength modifier!
๐ When to Use Which
๐ฒ Use Macros For:
- Quick dice rolls โ d20, d100, percentile
- Rollable tables โ random encounters, loot
- NPC quick checks โ generic saves, perception
- GM announcements โ "Roll initiative!"
- Visual effects โ /fx commands
- Utility tools โ whispers, timers, reminders
Always visible in your macro bar. No token needed.
โ๏ธ Use Token Actions For:
- Attacks โ using your character's bonuses
- Saving throws โ with your modifiers
- Ability checks โ STR, DEX, etc.
- Spellcasting โ with your spell save DC
- Class features โ Rage, Sneak Attack, etc.
- Character emotes โ on-brand RP moments
Appears when you select your token. Uses your stats.
๐ก Simple rule: Macros are GM tools and quick buttons. Token Actions are character actions.
Why did the bard's macro fail? Too many {{perform}}ance issues. ๐ญ
๐ฏ Syntax Reference
The building blocks you'll see in macros:
/roll 1d20+5 โ Roll d20 plus 5
[[2d6+3]] โ Inline roll (embedded in text)
/w gm secret โ Whisper to GM only
/em waves โ Emote (italic text)
?{Bonus?|0} โ Ask user for input
@{selected|hp} โ Get selected token's HP
@{target|ac} โ Click a target, get their AC
&{template:default} โ Pretty formatted output
Common Attribute Names (D&D 5E)
strength_mod, dexterity_mod, constitution_mod
intelligence_mod, wisdom_mod, charisma_mod
ac, hp, speed, initiative_bonus
spell_save_dc, spell_attack_bonus
A wizard, a rogue, and a fighter walk into a macro bar. The cleric was still typing /roll. โช
๐ง Advanced Topics
Dropdown Menus
Let users pick from options:
?{Roll Type|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}
Combining Macros
Call other macros by name:
#AttackRoll
Abilities vs Macros (Technical)
Token Actions are actually Abilities stored on the character sheet. The difference:
// Macro (Collections tab) - needs @{selected|...}
/roll 1d20+@{selected|strength_mod}
// Ability (Character sheet) - can use direct attribute
/roll 1d20+@{strength_mod}
๐ Go Deeper: Roll20 Wiki Macro Guide has comprehensive documentation.
๐ Ready to Go?
Browse our library of ready-to-use macrosโjust copy, paste, and play!
Browse Macros โ