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 .
×

API traps and /fx explode

Sorry for the newbie question....I am not a programmer. I have one of the trap API's functioning properly, when a token moves onto a trap, it auto generates a chat telling the player that he set off a trap. I'd like to add the /fx explode to it, though. Anyone know an easy way to incorporate that into my api script? Thanks in advance for the help.
1411953977
Ada L.
Marketplace Creator
Sheet Author
API Scripter
I'd don't think there's an interface in the API yet for generating /fx.
1412210535
Pat
Pro
API Scripter
If you generated a chat with /fx, wouldn't it generate over the selected token, and if you could set the API to select the token of the player walking over the trap, then fire the /fx, would that work?
1412225337

Edited 1412225456
Roger A.
Sheet Author
nope. anything sent from the api to the chat gets ignored(edit= for things like /fx at least. it was my first thought, but i tried it and it doesn't work.) so you can have the api watch for chat events and send chat events without creating an endless loop.