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 command list??

September 29 (8 years ago)
Forgive me if this has been asked 100 times, but I have been looking through the Wiki, on Google, and briefly on these forums and cannot seem to find any reference for what commands I can use in macros.
From the looks of things, macros are quite powerful, but how can anyone utilize them without a reference guide of what can be done with them?
Is there any kind of macro programming guide that lists available commands? This wiki article is pretty much useless without that...

Everything else about roll20 has been great, but a macro reference guide would make it even better.
September 29 (8 years ago)

Edited September 29 (8 years ago)
Lithl
Pro
Sheet Author
API Scripter
https://wiki.roll20.net/Text_Chat

/me text
/em text -- Emote

/emas name text -- Emote as "name", GM only

/as name text -- Speak as "name", GM only

/w name text -- Whisper to "name" (gm can be used to send a message to the gm, regardless of their name)

/roll expression
/r expression -- Roll dice

/gmroll expression
/gr expression -- roll dice only visible to you and the GM

/ooc text
/o text -- Speak out of character, regardless of what's selected in your "Speaking As" dropdown

/talktomyself -- Toggle talk to yourself mode. Messages you send won't be seen by anyone else or recorded in the chat log, useful for testing macros.
/talktomyself on -- Force talk to yourself mode on
/talktomyself off -- Force talk to yourself mode off

/fx type-color sourceID targetID -- Use special FX. TargetID is optional. Source and target IDs should be tokens, using @{selected|token_id} or @{target|My Label|token_id}. Type can be beam, bomb, breath, bubbling, burn, burst, explode, glow, missile, nova, or splatter. Color can be acid, blood, charm, death, fire, frost, holy, magic, slime, smoke, or water.

/desc text -- Create a description, GM only
September 29 (8 years ago)
Be sure to also check out our Dice Reference page.
October 23 (8 years ago)

Edited October 23 (8 years ago)
In case you're thinking more like what I did when I first started making macros (and even if you're not I feel someone should still put this stuff somewhere)  here's my compilation:

1) Double brackets are your best friend and work rather like normal brackets in maths, BEDMAS. They're also great when you want to highlight a number. 
Example: [[ [[1d20]]*10]]

2) Making text bold.
Example: **Example text**

3) Pulling stats from a character sheets, you can change "character_name" to any stat, to find the command hover over the stat in the character sheet. Example 1 requires you to have a token selected before you click the macro. Example 2 requires you to click on a target token after clicking the macro. Example 3 pulls a stat from a set character's sheet. 
Example 1: @{selected|character_name}
Example 2: @{target2|character_name}
Example 3 @{character name|Str-Mod}
(You can use the @{target|info} and @{selected|info} in so many ways, and multiple times for multiple targets, just add numbers after)
(Using token_name can be useful if there's no sheet for them)

4) You can make various different queries than prompt pop up boxes. There's 3 kinds I know of. Example 1 shows a box where you input a number or word for it to use. Example 2 gives them a drop down choice (the first part before the comma is what you the option will be named, the part after a comma is what that option will actually do). Example 3 is asking if you want anything after this point (on this line) to show or not (Leaving the ! in will mean the it will mute the line. Removing the ! and leaving it blank will display the line).
Example 1: ?{name of question|1}
Example 2: ?{name of question|option 1, option 1 does this|option 2, option 2 does this|option 3, option 3 does this}
Example 3: ?name of question|!} 
(Putting identical queries will make the macro prompt come up once and use the answer each time/place you used that command)

5) Put speech marks around names or text if they have spaces in them and you want them treated as one name/word in other commands
Example: /em "John Snow" dances a jig
Example: /em "@{selected|token_name}" worships the sun

Not everything by far, but most of what I use (that I can think of right now anyway). :)