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

Can Macros be made to reference the current character sheet?

Hi all, Is there a way that I can write ability macros that simply reference the attributes on the character sheet they are triggered from? I'm trying to setup a character sheet template (using the in built sheet) with macros built in so once the players have filled in their brawn, wits etc, the macros simply look for them and they don't need to fiddle with the macros at all. Kind regards.
1568296540
Ziechael
Forum Champion
Sheet Author
API Scripter
If they are abilities on a sheet themselves you can drop the attribute descriptor completely ( @{selected|charisma-mod} or @{target|charisma-mod} or @{Bob the Bob-Slayer|charisma-mod} becomes simply @{charisma-mod} ) and it will pull from the sheet it is run from, there is some funkiness when wanting to use the 'max' attribute but nothing to tricky. Using global macros (those found in the collections tab) you can use 'selected' or 'target' to have non-character specific macros as long as you have tokens linked to journals.
You are a star!! Thank you!!
1568298790
Ziechael
Forum Champion
Sheet Author
API Scripter
You are most welcome, just ask if there is anything else you need... the wiki contains a good chunk of info as a general start point too :)