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

Macros with no Character Sheet Template

I was experimenting a little and created a game with no character sheet template. Instead I was simply adding a few simple attributes in the Attributes and Abilities page, but I was wondering if there was a way to reference these in macros. I can't find anything in the Helps wiki and I can't figure it out myself. Is it even possible?
1515863410

Edited 1515863488
The Aaron
Pro
API Scripter
Referencing the Abilities is done with %{&lt;CHARACTER NAME&gt;|&lt;ABILITY NAME&gt;} Referencing the Attributes is done with @{&lt;CHARACTER NAME&gt;|&lt;ATTRIBUTE NAME&gt;} When you're in the context of the character (in an ability), you can omit the name of the character. Start reading around here:&nbsp;<a href="https://wiki.roll20.net/Macros#Nesting_Abilities" rel="nofollow">https://wiki.roll20.net/Macros#Nesting_Abilities</a>
Pretty simple. So, how do I reference the optional maximum entry? Do I just add max to the name of the attribute?
1515865853
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I think I've just discovered why I've had such a hard time wrapping my head around this. What Roll20 calls Attributes, D&D 5e calls Abilities. I.e. "Intelligence" is an ability in D&D, but an attribute on a Roll20 character sheet. What Roll20 calls an Ability, I just call a macro.
1515866381
The Aaron
Pro
API Scripter
To access the max, you must specify the name of the character: @{&lt;name&gt;|&lt;attribute&gt;|max} you have to use that format even in the context of a character. To keep it generic, you can use the character_name attribute: @{ @{character_name}|&lt;attribute&gt;|max} (pretty sure that works...) In Roll20 parlance, attibutes are a value storage mechanism, kind of like a variable in programming. Abilities are a collection of chat commands, with the added benefit of assuming all references are in the context of the character they are attached to, like a scopes function in programming. Macros are basically the same, but without the assumed character. (Macros can be invoked with #&lt;macro name&gt; )
Thank you.