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

Target Macro Fire Macro From Token

I have written a macro on a token that is a drawing object, I want my players to be able to select it with a targeting macro:  @{target|Select a Bell|bar1} When the token is selected I want it to fire a macro that is on the character sheet the token is attached to. Is this possible?
This will probably better explain it. I have 4 bells. Each bell is tied to a character sheet. Each bell has a marco called Ring. The ring macro does the following: !roll20AM --audio,play|Low (each calling a different sound) I want the players to be able to fire the ring macro without physically selecting the bell and calling on the token macro button in the top left. My ideal world is that they just click the bell and it rings.
1727638838

Edited 1727639304
Sure is, the target call can point to abilities on the sheet of the linked sheet, and you can have multiple calls for the same target - %{target|Select a Bell|ability-name}, for instance, appended to your macro, will fire ability-name on the linked sheet of the targeted token. EDIT: But firing a macro simply by clicking a token without prior setup is out of the realm of macros. Might be doable with scripts, though? EDIT2: You could even do this without a character sheet linked to the bells, by saving the macro in a token bar and calling that bar value. EDIT3: Or you could have a single character sheet with all the bells linking to the same one, and have a prefix attribute %{ in the sheet, and calling the combination of the prefix and the token name (or a token bar) to refer to an ability, as @{target|prefix}@{target|character_name}|@{target|token_name}}, with the ability containing the final macro sharing the name with the token.
Thanks, thats works great! It's been ages since I've done any intense macroing so I've forgotten how to do most of it.