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

[Help] 5e skill check macro

Im trying to create a very basic macro script for skill checks in 5e dnd without having to create a macro for each PC individually. Sorry if this is posted in the wrong section
February 16 (10 years ago)
There should be a way to write it something like (but this is not correct) [[1d20+@skill_athletics_total]]
February 16 (10 years ago)
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Khanga, I'm moving your question to Specific Use because the macros aren't intrinsically tied to the API.

To answer your question:
You want to use the selected qualifier and have tokens on your tabletop that are linked to characters.
/em @{selected|token_name} makes a History([[1d20+@{selected|history}]]) check.
Thank you, I pasted that code to test it and it keeps referencing the selected character along with another which remains constant.
February 16 (10 years ago)
The Aaron
Pro
API Scripter
Are you saying that the token_name portion and the history portion come from different characters?
the first name which is the varying(not the selected tokens name) appears to originate from whomever im speaking as.
February 16 (10 years ago)

Edited February 16 (10 years ago)
Gen Kitty
Forum Champion
Try /emas instead of /em. This is a GM-only command.
its still prefacing the command with the name of whatever character im speaking as even after that
Problem solved. It was not being declared as a token action.
now to figure out how to make a macro that uses the ability score modifier off the 5e character sheets now that I have actual skill checks sorted out.
February 17 (10 years ago)
Gen Kitty
Forum Champion
https://wiki.roll20.net/DnDNext_Character_Sheet#Using_attributes.2Frolls_from_the_sheet_in_your_own_macros