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

[Help] It's a Trap Script not working

This is occuring in 2 games of mine. The 1st has had the script(and it's dependancies) installed since September or so last year. The other, I installed it all today. When I set the token with the cobweb status icon, and move a PC over it, while the token is on the GM layer, nothing happens. This script worked fine when I initially installed it(in fact I edited the script a bit to change the trap announcer, and it still worked fine).  Did something in a recent update to roll20 break something with this? Or am I doing something wrong? I'm using the cobweb status marker, the other token does not have the flight status markers enabled.
1459964422
The Aaron
Pro
API Scripter
Are you getting an error, or is it just not doing anything?
Nothing shows in the log on the script page. I'll check the console log later tonight. 
I was just able to run it with the console log, nothing happens in their when the "trap" should trigger. I get the standard load stuff, but no addition to it when I move a token over a trap.
1459998865
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Is the map you're currently moving tokens around on the active map? The script only triggers traps on the currently active map.
Stephen L. said: Is the map you're currently moving tokens around on the active map? The script only triggers traps on the currently active map.  I remember this one.. I sat there banging my head against the keyboard and couldn't figure out why it didn't work. XD
Derp. That's probably it. I'll test it when I get home from work. 
1460045866

Edited 1460045875
Ada L.
Marketplace Creator
Sheet Author
API Scripter
I'll see about updating this to work on any map since this seems to be a recurring usability issue.
1460074713
Ada L.
Marketplace Creator
Sheet Author
API Scripter
I just updated the script so that maps can trigger when you're working off of the currently active map. Its pull request is pending, but you can get it from my branch here:&nbsp;<a href="https://github.com/Cazra/roll20-api-scripts/tree/itsatrapUpdates/Its%20A%20Trap" rel="nofollow">https://github.com/Cazra/roll20-api-scripts/tree/itsatrapUpdates/Its%20A%20Trap</a>