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

Passive perception trigger

1485222149

Edited 1485222168
Is there a script that would work like this: PC walks down the corridor.  They come within 10' of some small mushrooms and their passive perception is good enough to notice them (15 Perc vs DC15).  I want the script to then pull the mushrooms from the GM layer to the token layer so they show up to the player with a little message box of fluff text. 2nd scenario:  Same thing but say the DC is much higher (DC25).  Players state they are making a perception check and when they roll it, because they are standing within 10' of the mushrooms and they get a 26 on their check and it triggers, again revealing the mushrooms to the PC on the token layer. Does roll20 know how to do that? 
1485222763

Edited 1485222788
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
For the 1st scenario,  It's a Trap is your ticket. There isn't currently a script that I'm aware of that does scenario 2, although I think Stephen might be working on integrating this behavior (this is total hearsay, so don't hold him to it).
1485270871
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Yes, It's A Trap will handle your first use-case right now. For the second one, it doesn't currently handle actively rolling perception rolls. Right now, that is left up to the GM to move the mushrooms to the objects layer if the players roll high enough.
1485272523

Edited 1485273702
Thanks guys,  what is the syntax for when it asks OTHER TRAPS TRIGGERED?  I put in a token name and it worked.  But I want to put in 4 tokens and have it reveal all the mushrooms when the PC triggers the first one.  I put the |  but that did not seem to work. Plus, my trap seems to make it so you have to actually walk ON TOP of it before it goes off.  Then it says, Target "player" MISS.  Like it's making an attack roll.  But I selected that it is a concealed item on the menu.  What settings do I need for it to check the passive perception of the player and then appear on the map layer with the message to the PC? I have CONCEALED ITEM, EFFECT DISTANCE 10, REVEAL WHEN SPOTTED-yes, REVEAL LAYER-map, PASSIVE SEARCH DISTANCE-10, STOPS TOKENS-none, OTHER TRAPS TRIGGERED-mushroom2 (cause I don't know how to do multiples), and in THEME SPECIFIC I have nothing checked.
1485273524

Edited 1485281635
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Thanks guys, what is the syntax for when it asks OTHER TRAPS TRIGGERED? I put in a token name and it worked. But I want to put in 4 tokens and have it reveal all the mushrooms when the PC triggers the first one. I put the | but that did not seem to work. Separate the names with commas. Plus, my trap seems to make it so you have to actually walk ON TOP of it before it goes off. Then it says, Target "player" MISS. Like it's making an attack roll. But I selected that it is a concealed item on the menu. What settings do I need for it to check the passive perception of the player and then appear on the map layer with the message to the PC? To make it behave like a concealed item instead of like a trap, set DISABLED to yes.