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

Player Interaction with Map

Now, I have no actual coding experience so I am more asking if this type of thing exists in some way shape or form.  Just looking for some insight. I've been playing around with letting players control the map by moving tokens to different layers as well as deleting them. For example, unlocking a door deletes the lighting layer line for the door.  On the token layer, players would have to be able to interact with a Token Macro.  If the value supplied is greater than or equal to the value, the line is deleted.  My thought would be to assign a  numerical  value to the Lighting layer line token (the DC of the lock pick).  Another example would be perception checks for secret doors.  There is a red S on the GM layer and a Lighting line on the lighting layer.  A user interacts with a token macro in a room and enters a value (perception roll) and if that value is greater than or equal to the DC of the secret door, move the red S from the GM layer to the Token layer and delete the line on the Lighting layer.
1555527582
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Look at the script Matt's Doors. I think it can do most of what you are asking.  This is the thread link (It's an oooold script). The final code is on Page 2. There might be newer code? It's a Trap! might be able to do this as well (It's available int he drop down, but I don't use it and can't vouch for it) I use SimpleDoorControl myself, but it's pretty much just open/close. Much easier to set up.
These are some great places to start, thanks.