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

Send to Chat reaction not triggering when token moves from Gm layer to Player Layer

I have an API that drops a random stalactite from the GM Layer to the Player layer on a set turn order. 13 scattered around the map. I want the send to chat reaction to send "@{instigator_name} sees a Stalactite falling towards them. Roll a Dexterity saving throw." if the player is under the stalactite when it gets moved from the GM layer to the player Layer. At the moment the stalactite is on the GM layer and the player moves over where it is but cant see it and the send to chat is triggered. Is there a way for the player token to not trigger the stalactite token send to chat reaction when the stalactite is on the GM Layer?
1786714228
The Aaron
Roll20 Production Team
API Scripter
I think you'd have to handle that in the Mod Script, either by not adding the reaction until it gets moved to the token layer, or by having the script detect the token underneath and send the message. You could have the message issued by a Mod Script which first checks what layer the stalactite is on.