Okay, it mostly works. If I put a roll like
!heroll --d:4n
As a "Custom Action" for a Hero System character sheet, it can't figure out who invoked the command and instead relies on the current speaker settings.
For players, this is fine, as they usually only control one character each. But for the GM, this often means the OCV of the last speaker is used, instead of the OCV of the character sheet containing the invocation.
I am very new to both javascript and the Roll20 API or I might have attempted a fix.
Ideally, the best thing would be to be able to autodetect being invoked from a character sheet. Failing that, having an option like:
--as:Heritic
would greatly aid in running games.