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

API Scripts not Functioning

1586884140
joeuser
Pro
API Scripter
Pro User, tried Combat Master, Token-Mod, and It's a Trap. Nothing appears to work. I get init messages in the API console but using commands like !cmaster in Chat windows returns nothing? I have tried deleting and re-adding scripts with no success. Any advice? Thx much.
1586884509
The Aaron
Roll20 Production Team
API Scripter
Can you screenshot the API Console output below the scripts when you restart the the API (save a script) and when you've run a few commands?
1586884738
joeuser
Pro
API Scripter
Updated: It's a Trap appears to work but nothing else.
1586884773
joeuser
Pro
API Scripter
Will do.
1586885580
joeuser
Pro
API Scripter
It signed out and re-logged in. It appears that the Token-Mod works from the Chat window but not in macros. I have included some of the console from these tests. User error?
1586886028
The Aaron
Roll20 Production Team
API Scripter
Possibly. What is the contents of your macros?  The ! Needs to be the first character on a line or it won't work. 
1586886373
joeuser
Pro
API Scripter
Here is a macro I "borrowed" on one of the forums for setting conditions. &{template:default} {{name=@{selected|character_name} is Blinded.}} {{description= You are blinded! You cannot see and automatically fail any ability check that requires sight. You have disadvantage on attack rolls. Attack rolls against you have advantage!}}!token-mod –set statusmarkers|!bleeding-eye
1586887559
The Aaron
Roll20 Production Team
API Scripter
Try this: &{template:default} {{name=@{selected|character_name} is Blinded.}} {{description= You are blinded! You cannot see and automatically fail any ability check that requires sight. You have disadvantage on attack rolls. Attack rolls against you have advantage!}} !token-mod --set statusmarkers|!bleeding-eye
1586888099
joeuser
Pro
API Scripter
i see the differences, Aaron, thank you very much.
1586889365
The Aaron
Roll20 Production Team
API Scripter
No problem!