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 .
Advertisement Create a free account Compendium in Game, Join Today

Problem with Matt's Door Script

1602612939
Could you help me use the script properly? What I have done: 1 - I include a token with the name of swtich 2 - I include a token from a scrollable table with the name of door, item 0 of this table is the image of the closed door, item 1 is the image of the open door 3 - I include a wall path and transfer it to the token layer 4 - select the 3 tokens above 5 - type the command! DoorsLink So far everything seems to work normally but when I try to run it! OpenDoor the token wall path is transferred to the GM layer normally but the door token does not change to the open door image (index 1 in the scrollable table). Did I make a mistake in some configuration?
1602614259
ᐰndreas J.
Forum Champion
Sheet Author
Can you link to where you found this Door API? In the one-click install, there is Door Knocker by Scott C. that can be used for opening/closing doors, as well as locking unlocking them, if that is similar enough to what you intend to use.
1602615353
The link:&nbsp;<a href="https://app.roll20.net/forum/post/5019325/script-update-matts-door-script-i-made-a-few-changes-to-add-some-error-detection-of-common-problems-as-well-as-distance-checks-to-the-nearest-matching-speaking-token" rel="nofollow">https://app.roll20.net/forum/post/5019325/script-update-matts-door-script-i-made-a-few-changes-to-add-some-error-detection-of-common-problems-as-well-as-distance-checks-to-the-nearest-matching-speaking-token</a>
1602644337
Ravenknight
KS Backer
Hi Thiagor, how do you setup Bar3 on the Switch?
1602761881
yes, i had done this before. I tested another script with fewer functions than Matts Door and in this script it was necessary to drag 2 open door and closed door tokens onto the map, as I understand, in Matts Door this is not necessary because it uses a scrollable table for that, correct?&nbsp;
1602786620
Ravenknight
KS Backer
That is correct. The table pictures need to be uploaded to your library before use and not imported directly from the marketplace. Perhaps that is the problem?
1602879565
yes, i uploaded it to my library
1602977359
I managed to solve the issue of door tokens, my difficulty now is as follows, I created a character for the switch token and have the option of the Open Doors and Close Doors macro buttons, but every time I try to use the commands as a player, the following appears msg: "Players must set their 'AS' drop option to the character performing the commands" I can solve it by changing the AS: from the chat to the name of the Switch but I have to do it manually. So I had two doubts: 1 - Is it possible to change this option using a macro command? 2 - If you don't use a character token for the switch token, will the problem be solved?
1603007257
Ravenknight
KS Backer
I don't understand the problem to be honest. With my understanding of Matt's script, a player cannot open a door without having the name of their current character put in as AS. But it should be the active character, not the switch. The GM can always open any door without it.