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

Creating API button to prompt for character name AFTER button is clicked

1519138121
GiGs
Pro
Sheet Author
API Scripter
I just discovered if you have a macro to create an API button in this form [Roll XP](!KAPutil --@{selected|character_name} --XP)  It hard-codes the character you selected when you created the macro. The same problem with Target. I wanted to create a generic button in chat, that each of my players could click and it would take their character name when they click it. I know I can edit the script to get the id of the clicker, so this isn't a gamestopper. I was just wondering if there's a way through the normal macro tools, to trigger a selected or target action when the button is clicked, not when the button is created.
1519139098

Edited 1519139110
Encode the @ @
1519141303
GiGs
Pro
Sheet Author
API Scripter
aha, html replacements to the rescue . Thanks, Kyle.