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 .
×

Chat button from nested macro pre determines target

I am a player, not the gm, in a game of Basic Fantasy. I'm trying to set things up for another player so that when they cast the haste spell, they can apply status markers to the tokens of their choosing.  The game has Token-Mod installed, so I created two macros on a "Macro Mule" character sheet like so: Haste spell macro:    &{template:default} {{name=**@{selected|name}** casts Haste}}  {{[Marker](%{Spell|Marker})}} Marker macro:    token-mod  --set statusmarkers|red --ids @{target|token_id} What happens is that as soon as the Haste macro is run, the Marker macro prompts for the target. Then the Haste macro displays the spell description in chat along with the chat button. However when you click the "Marker" button, the target previously selected gets the status marker. I was hoping the player who cast the spell could click the button and the a token for each creature to get hasted. 
1770093472
timmaugh
Forum Champion
API Scripter
Change the Haste macro to be this: &{template:default} {{name=**@{selected|name}** casts Haste}}  {{[Marker](~Spell|Marker)}} That is the typical formation for using an ability macro through a button... it keeps it from "expanding" into the command line, which introduces the targeting syntax.
yes, that was the solution, thank you!