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

Dynamic Lighting and Open doors?

1626538356

Edited 1626538432
Hi. I'm using Three of Swords / The Aaron 's SimpleDoorControls from 2015. It's an older script that works well.  I've searched around for an enhancement, to add a second dynamic light barrier for lighting/blocking a partially opened door (So a player with darkvision or a visible light source can't see behind the now-opened door) and was wondering if this has already come up here and I just missed it in the search.  If this isn't already out there, let me know if you think it should be. For now, I'm trying to enhance  The Aaron's script
I don't understand what the second dynamic light barrier is supposed to do - are you trying to create a wall that can be moved through but not seen through? And what do you mean by a 'partially' opened door? Do you want a 'door' that is open at like 45°? I'll also suggest you look at the DoorKnocker script . I used SimpleDoorControls for quite a while, and it worked well, but it takes a bit of setup and the various buttons and lines can become unlinked.  DoorKnocker does not have that problem, as everything is based on line color, so it is incredibly  easy to use.  It has features for regular doors, locked doors, secret doors, and windows (can be seen through but not moved through).
1626613668

Edited 1626694786
Thanks, Jarren. See below as an example: Top image is the DoorClosed state (This is fine). Center image is the current state. Light passes through open door. Bottom image is the future state. Light blocked by open door. Thanks for the DoorKnocker tip. I'll take a closer look at that today.
1626615906

Edited 1626615964
The Aaron
Roll20 Production Team
API Scripter
That's a nifty idea.  To get it to work will require some effort.  You'll need a 2nd path for the "opened" version.  That might lead to an ambiguity as you can't name path objects like you can door images. I'd suggest one of:  Use a specific color for the open and closed doors.  Red for closed, Green for open seems appropriate. Determine which line is which based on how much they overlap each of the door graphics. (could be ambiguous for doors that are the same size/shape/position for opened and closed graphics). Guess and provide a command to swap the lines' roles after the fact if it wasn't right.