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] Attribute calls, from your "chat-character" instead of selected or a specific character?

Is it possible to set the Macro to call for the Attribute from the character/sheet you're currently set "As" in the chat? Or are there no alternatives to either use "selected" or "x"? x being said character's name.
1469576589
The Aaron
Roll20 Production Team
API Scripter
There are no alternatives to using either @{selected|attribute} or @{Character Name|attribute}. What problem are your trying to solve, maybe we can come up with a clever solution?
1469585107

Edited 1469585195
There is also @{target|attribute}. Admittedly it's a variation of @{selected|attribute}, but it may be a useful distinction to some use cases.
Essentially, I was looking for a universal macro that could be used without having to select a token, and without having to use a specific character name - that way as a GM I could present the macro myself to all of my players and it'd be as easy as clicking the button, rather than having to select their token every time, and without having have them input the macro themselves.
Attribute calls that are not placed within one of tabs of a Character Window (e.g. within a field on the Character Sheet Tab or within an Ability on the Attributes & Abilities Tab ) must use a keyword to let the parser know which Character you intend to call that Attribute from (e.g. @{selected|AC}). However, Attribute calls that are placed within one of the aforementioned locations may omit a keyword (e.g. @{AC}).
Aye. I'm looking to know if there's a way for the macro to find said keyword without have it placed specifically within the macro. My original thought was that there could be a way for it to query which "character" a player was set as in the chat, but I'm assuming there isn't? And that you either have to use "Selected" or a character's name? (This is assuming that I'm not wanting to individually place an Ability onto each sheet that the players can then have a hotbar-button assigned to.)
Douglas William Bacon said: My original thought was that there could be a way for it to query which "character" a player was set as in the chat, but I'm assuming there isn't? There's no way for a macro to access that information, no. You could list a player's commonly-used character names within Roll Queries , and implement that within a macro.
1469758888
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Douglas William Bacon said: Essentially, I was looking for a universal macro that could be used without having to select a token, and without having to use a specific character name - that way as a GM I could present the macro myself to all of my players and it'd be as easy as clicking the button, rather than having to select their token every time, and without having have them input the macro themselves. Not quite as low-setup as you were looking for, but you could simply copy the macro you want your players to use into an ability on their sheet, then it needs no character name, selected, or target keywords. Set the macro to "Show in Macro Bar"; your players can then enable their macro bar and have access to the macro (along with any others they may make and set this way) whenever and wherever.
Thanks all! I guess I'll be going with what Scott C. suggested in the future.