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

Dynamic Macros? Is it possible to make a macro that calls attributes based on who runs it?

For example, a macro that calls up a characters Reflex save, based on who the active character using it is.

#Ref typed by the player currently controlling Rogue, would automatically be
/r 1d20+@{Rogue|Ref}

While if it were used by the player (Even if it was the same player controlling a different character) Druid, it would be changed to:

/r 1d20+@{Druid|Ref}

Automatically.

If that wasn't clear, I basically want for anyone to be able to type #Ref and have the system automatically look up the attribute inside the macro based on the character who used the macro.

X_x


July 21 (12 years ago)
Gauss
Forum Champion

No, what you are looking for does not *directly* exist. However, Abilities can do something like this.. Make the same ability for each character based on that character's reflex attribute. 

Example: 
Journal name: Rogue
Attribute name: Ref
Ability name: Ref
Ability body: /roll 1d20+@Ref

Typed Chat text:%Rog followed by selecting the proper highlighted Rogue|Ref ability. 
Alternately typed chat text: %{Rogue|Ref}

- Gauss

Thanks for the reply and the help therein.

Would it be possible for someone to code the functionality I'm looking for into the API?

July 21 (12 years ago)
Gauss
Forum Champion

I would post that question in the API forum. 

- Gauss