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

Can a Sheetworker call a Macro

1478755973
Falcon
Pro
Sheet Author
I don't know javascript well enough to know if you can call a macro or input to the chat screen from inside a sheetworker call.
1478764756

Edited 1478764788
Jakob
Sheet Author
API Scripter
No. Pro-only workaround: you can have a sheet worker set an attribute, and listen for changes in that attribute via an API script (which can  send chat commands (and can call abilities, but not macros afaik)).
1478778975
Falcon
Pro
Sheet Author
Thanks Jakob.  That's too bad.  Interesting work around, though.  May have to think about that.
1478807569
Lithl
Pro
Sheet Author
API Scripter
Jakob said: an API script (which can  send chat commands (and can call abilities, but not macros afaik)). An API script can get the text of a macro just fine. You couldn't use sendChat('', '#my-macro'), but you could use sendChat('', myMacro.get('action')).