Door opening

1492554192
Hey all, I am very sure there are many topics covering this but I am looking for some pointers on open/close door scripts as I cant get anything to work.  Its not made easy that I cant actually understand some of the guide I am reading due to being fairly new to roll20 and not having a scripting background in any way whatsoever!  I don't want anything fancy, just to be able to open/close individual doors and preferably the light path too? Anyone offer any help? Ty
1492557527
The Aaron
Pro
API Scripter
Can you link the instructions you're following? Maybe we can clairify them for you?
1492596888
Hey The Aaron, I have had a go with the two below, the first one has far more in it than i need (just want to beable to quickly swop the open and close door tile and the dynamic lighting path).  I was falling down at the first hurdle really since I was not sure where to put the script and the tiles?  I added the script as a new Macros in the right hand bar and then put the open and close doors on the token layer.  I tried to link them but nothing appeared to happen with I called the command.  It also makes reference to a command icon, which i took to just mean 'any icon' that i would use for controlling the door? https://app.roll20.net/forum/post/636123/script-do... https://gist.github.com/goblinHordes/6894547 Thanks Ty
1492600402
The Aaron
Pro
API Scripter
No problem.  Installing API scripts happens on the Game Management page.  In the Settings menu, there is an entry for API Scripts. See:  https://wiki.roll20.net/Game_Management#API_Script.. Of those two, I've not used the CommandDoors one.  Matt's Door Script is by far the most popular on the forum.  I've made a few minor tweaks to it to make it a bit more robust, but I've not actually set it up.   1) To create your Door token, it uses a Rollable Table Token.  To to the Collections tab on the side bar in game and go down to the bottom and create a Rollable Table (call it something like Doors).  Add 2 items to it, one for the door when closed and another for when it's open. (you can add as many doors as you like here, and choose them later).  When you have your images in there, click the Token button next to the Rollable Table listing to create a Rollable Table Token.  The token must be named "Door" initially. See: https://wiki.roll20.net/Collections#Creating_a_Rol... 2) Create the Switch token.  This can be any token you want.  It will be visible to the players and used by them and you to manipulate the door.  It must be named 'Switch'.  Double click the token to bring up the token properties.  The bars are used for various things, but at a minimum, you need bar 3 to be 0 / 1 .  0 is the index of the closed door in the Rollable Table Token, 1 is the index of the open door. (feel free to swap those if you put the open door first)  The index number starts at 0 and counts up. 3) Draw a line on top of the door token where you want the dynamic lighting drawn. 4) Link them by selecting all 3 and running !DoorLink  (type it in the chat) Now you should be able to select the switch and run: !DoorOpen !DoorClose to manipulate the door. Hope that helps!  Read through his post a few times after reading the above and make sure I didn't miss anything. 
1492635332
You my friend are a gentleman!  Thank makes more sense and I have mostly managed to get it working.  Its not currently swapping the door tiles, it moves the dynamic lighting layer and allows tolkens to see past, but the graphic remains as a closed door. Thanks you again! :) Ty
1492637183
The Aaron
Pro
API Scripter
Oh!  You have to use images that are in a user library.  If you drag them out of the Marketplace, it won't be able to switch them.
1492637258
yeah, i have them in their, i uploaded them myself? I can flip manually but just not getting it to do it on its own?
1492637773
The Aaron
Pro
API Scripter
If you wanna PM me an invite and GM me, I'll take a look at it for you. =D
1492712084
Thank you Aaron, you have been most helpful indeed, much kudos and gratitude to you! :D
1492712719
The Aaron
Pro
API Scripter
No worries!  Happy Rolling!