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

Getting Cron script to work with Token-mod

I'm having trouble figuring out how to make these two scripts work together. Currently, token-mod does not do anything when it has been scheduled by cron.
1546860039
The Aaron
Pro
API Scripter
Can you go into a bit more detail about what you’re trying to do?
Sure! I'm trying to add a red statusmarker to a token after a three second delay, but I can't figure out why the command below doesn't work: !cron -a 3 !token-mod --set statusmarkers|red:1 --ids @{selected|token_id}
1546885337
The Aaron
Pro
API Scripter
Do you have PlayersCanIDS turned on?  When the api executes a command, it will come in as the ALI player, which is not a GM do can’t use the --IDS argument.