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

Accessing attributes of Currently Possessed (As:) character

1501521351

Edited 1501521777
Hi all, I'm trying to make some generic macros for my game, that any player can use. Right now, that looks like this: @{ selected |character_name} plays ***?{Card Name|a card}!*** To Hit: [[1d100-@{ selected |ToHit}]] vs. [[?{Base Hit Chance|80}-@{target|Target|Evade}]] for [[?{Spell's Damage|0}+?{Relevant Attribute|      POW, @{ selected |POW}|      DEX, @{ selected |DEX}|      STA, @{ selected |STA}|      FOC, @{ selected |FOC}|      HAR, @{ selected |HAR}|      WIL, @{ selected |WIL} }+?{Additional Modifiers|0}]] *?{Damage Type|Slashing|Piercing|Blunt|Fire|Wind|Earth|Water|Light|Dark|Luna}* damage! Several prompts throughout the process. Everything works fine, but as I've bolded there, it obviously only works when a token is selected . I would instead like it to automatically pull from the character you are currently possessing with the chat's As:  <character> option. So for example, it feels like there should be an option for the first line like: @{ possessed |character_name} plays ***?{Card Name|a card}!*** But despite searching for hours, and trying various things myself (@{me}, @{current}, @{as}), I can not find anything that does this. Am I just missing it, or is this not currently possible in Roll20? Thanks for your time.
1501523568
The Aaron
Pro
API Scripter
This would be possible with the API, but isn't possible with just macros currently.
I see. Bummer. Okay, well thank you for clearing that up :)
1501523814
The Aaron
Pro
API Scripter
There is some client side hackery that could be done to make such a macro easy to execute for you, but it would require setting up a Javascript Bookmarklet locally to do the inspection, which isn't something I'd try and talk players through. =D
Yeah that sounds a little beyond me. But thank you again :)