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

Door Knocker v1.211 - Windows

Sure thing, I'll PM you an invite.
1618732751

Edited 1618759571
Scott C. said: No worries Rholan, There's a lot in the help doc. The relevant section for you is this: Searching for Doors When you search for doors using Door Knocker, it will copy door lines to a visible layer. If a gm initiates the search hidden doors are copied and all door lines are shown on the gm layer. If a player initates the search, hidden doors are not displayed and the door lines are shown on the objects layer. How long door lines are visible for (in seconds) can be set from the settings page. !knock --search|range search:  This is the keyword that tells the script to display any nearby doors range:   Optional argument  Enter the search range, in the units of the map (e.g. feet, meters, kilometers). If you do not provide a range, it will default to the distance of a square on the map. Note that searching does not currently reveal windows due to how the window paths are encoded. This functionality is being worked on. So, to search within 10 ft (or whatever units your map uses) of a token the command would be: !knock --search|10 Thanks for your answer. I have tried in two different games and in my test game it works, but not in my real campaign! :( The differnce between both games is the grid. Inside the test game grid is turned on. Any ideas about that?
I'm also getting the error when trying to search using the DoorKnockerUI token, using a regular token seems to work without problems. Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined at getSegmentedPaths (apiscript.js:410:40) The script is wonderful regardless! Thanks a lot for it!
Hi Scot. Thank you for that great script. Most functionalities work like a charm and out of the box, at least for me. However, there seems to be an issue with "locked doors", this is door, that are obvious, but locked. I set up the map and colours using  the settings option of the generated token. When trying to open a locked door using !knock --key|open/close I need to send the command 6 or up to 9 times before said door is affected. The console shows a strange output, as if there are some other objects interacting with the closing and opening. It seems there is some  counting involved somewhere, so I doubt it has something to do with lagging. Also, this only happens with locked doors. For opening:  "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-Ldy3Ro9jXTefVZIstv6":8.470785102094613,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOgy5SBqzE-LhDpP18g":8.700978907516868,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhxzghSuqDFQKjt4S2":23.54895408972009,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOgy5SBqzE-LhDpP18g":8.700978907516868,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhxzghSuqDFQKjt4S2":23.54895408972009,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhxzghSuqDFQKjt4S2":23.54895408972009,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhxzghSuqDFQKjt4S2":23.54895408972009,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeOU7S4ZttoiVv8zGZl":102,"-LeOQF9bqcAmn78H27NZ":32,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-LdyFFIu9yFomNT0yEZM":32,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeOU7S4ZttoiVv8zGZl":102,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} "validDoors:" {"-MWmbxaR4eYbmXrok_Fs":50.24937810560445,"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyL9_-4WgJ1t0Wmsgt":88.02272433866155,"-LeOU7S4ZttoiVv8zGZl":102,"-LeNyZpd0PWE6q-R9cdJ":88,"-LeON-FvTZgRSwKh-9TS":100.23971268913334,"-MIS2VsMEpNaaeIy_Ypa":77.1253038891906,"-MIS2bSHENtQLr57iwS9":77.1253038891906,"-MHf4N3mQ2N4Xi7MWMMa":100,"-MISA_De9eGj785pyr30":75.75,"-MIAPpDsjqdeOiNhrvw4":101.13851887386922,"-MJrWj3RSyEJO6aEFtcn":94.37160589923221,"-MMavow3pjndsn5zRpWm":93.03762679690406,"-MMavpTSQcAuY69xoCpd":99.20181449953424,"-MMauuGdoPc7asrGo_BU":84.72307831990054,"-MMauvqr9desSte62-ba":46.17358552246078,"-MOMIqJRHSD240LGyVjt":44.77901568199266,"-MOhBFmV0rUBwVukm_JL":84.37446877758572,"-MOhcBTKDiSqgKvGjCEB":103.36285599769387,"-MOhtov2_8c_VQOLQRWp":65.32868352283147,"-MOhuOSdzaiQAFi2ivFM":96.91266374052316,"-MOhumEnsjK8Hbq987hA":77.69655109619606,"-MOhxyySX1qNtaS_weXP":71.5835445566353,"-MOhzF2HLzT4Zhdv1_Id":63.9271508010479,"-MOhzFqX8HPq_fnSjuE9":69.89448408849088,"-MOhzISPhb-mVClDd-h6":104.95713410721541} For Closing: "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-Ldy3Ro9jXTefVZIstv6":8.470785102094613,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgy5SBqzE-LhDpP18g":8.700978907516868,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhxzghSuqDFQKjt4S2":23.54895408972009} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgy5SBqzE-LhDpP18g":8.700978907516868,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhxzghSuqDFQKjt4S2":23.54895408972009} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LdyJEgmiWa1DiT4DsnH":18,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhxzghSuqDFQKjt4S2":23.54895408972009} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565,"-MOhxzghSuqDFQKjt4S2":23.54895408972009} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LeNFSIhmWAoUqFuq1E7":28,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LeOQ4z01NZ6qETI_ve6":42,"-LeOQF9bqcAmn78H27NZ":32,"-LdyFFIu9yFomNT0yEZM":32,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LeOQ4z01NZ6qETI_ve6":42,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665,"-MOhulYQAHt5TUcuW2cx":34.713109915419565} "validDoors:" {"-MWmbyjs-Ui5_9gxqIfc":36.459651700968195,"-LeOQ4z01NZ6qETI_ve6":42,"-MMaukInaKB5_aY5T2GZ":44.662564696876146,"-MMbUarshUDnDk-_YSyC":44.55670310783685,"-MOgyhOs9775xRsnOAGD":79.40403012442127,"-MOht2jQLCUoLdHNzDVG":44.381131337597665}
1621774088

Edited 1621774127
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm, thanks for the report Marco. There be been several other reports of delayed function that I'm looking into. That log output is actually a debug log I apparently forgot to remove. It's outputting all the doors that it found matching the criteria (in this case, locked doors that are open or closed (depending on the command) and how far they are from the triggering token.
Scott C. said: Hmm, thanks for the report Marco. There be been several other reports of delayed function that I'm looking into. That log output is actually a debug log I apparently forgot to remove. It's outputting all the doors that it found matching the criteria (in this case, locked doors that are open or closed (depending on the command) and how far they are from the triggering token. Hey man, thanks for putting so much time and effort making our games so much better! If you need some more information, let me know.
1621946574
Andreas J.
Forum Champion
Sheet Author
Translator
Wonder how hard it would be to make Door Knocker be able to create and monitor UDLPasswall instances? Another thing I thought about, is that there could be value in reorganizing the how the different door types/states are handled, as handling it with separate door type from door state , making it possible to keep/remember the door type, regardless of the current state of the door. The current structure is great, but if reorganized, could mean we could have even more combinations of different doors & their states. There are some rare situations that currently can't be done with door knocker, such as lock/unlock window, hide/reveal window visibility(AFAIK you'd need to convert between locked door <-> window to toggle visibility), which would currently "forget" the original door type. If you have a large make with a mix of unlocked& locked doors, open/closed windows, and hidden doors, currently you will loose the "original" state of the door if you change it between locked/unlocked/window. This means that at the end of a session, if you don't remember which door used to have locks, and what openings should be windows with shutters instead of closed doors, the original state of these will be lost. The is my quick take on separating type from state, which could have some good ideas, but I realized halfway through that the problem with implementing the type & state separation would explode the number of colors needed to track the various permutations. This would eventually get really crowded if you start using lots of them, but OTOH you wouldn't need to use all of them, even if they would end up being implemented. Door Knocker could by default skip assigning colors for some of the more obscures combinations, and people could then assign them if wanted. Door Types : wall - the default for DL, without the API.  door - a door without a lock secret - secret passage window - see through, but blocks movement passwall (not in Door Knocker) - blocks sight, but lets you move through it Door States , that could be independent of Door Type : open/closed no lock/has lock - whether a door type has a lock or not locked/unlocked - whether a door that has a lock is unlocked or locked reveal/hide - toggles visibility for doors. reveal/hide presence of secret doors, toggles visibility on windows , and toggles visibility on passwalls New Idea: Door/wall destruction not sure it this would be smarter to implement as a type or state, but could be a cool option that would enable terrain destruction for players through walls/doors that otherwise couldn't be interacted with. Type/State examples: windows could be used much more diversely . you could now lock/unlock windows, toggle visibility through them, and open/close, all while the game remembering it's a window, regardless if you currently can see through it or if it is unlock now.
So in a word, "Amazing" Curious, though, how possible it is to tie this in with It's A Trap? It can sometimes be a little satisfying as a DM to watch a character run around and open all the doors only to trigger a trap, themselves, just by opening the door. Maybe make a call to It's A Trap using a specified token(/trap) ID? Any thoughts? Also, if there were some way/command that would change a hidden door (line color) to an unlocked door (or just door). In my ignorance, I've no idea if the API actually selects the line dynamic lighting layer to move it to and from the map layer, and thus would be able to change its color, or if it does it some other way, but it would be useful. Granted, it's definitely a convenience "save me 7 clicks" kind of thing. Just wanted to throw these at the wall to see what sticks. Also-also, (maybe not a Door Knocker question) while I use  these door images  to show players where the top-down-view doors are (and combine them with It's A Trap to map-layer them when they discover secret doors), am I correct in assuming that it would require something like a transparent token with highlight on the token layer, or a semi-transparent image on the map layer to, instead, show something of a semicircle where a character can plainly see a door? (i.e. center a 0' radius aura token on the door so half of it shows on either side. think a semicircle welcome mat) -Agnati
1622079512
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hey Agnati, Thanks for the compliments. For mixing this with It's a Trap, it's not possible out of the box, but I think that you could probably use some of Timmaugh's meta scripts to have the command from It's a trap have a selected token that could properly trigger Door Knocker. I'll ping Timmaugh and see if he can give a more coherent walkthrough on what that might look like than I can. I'm looking at adding commands to change doors as well as to more precisely target a door/window to be manipulated. For the revealing doors with an overlay, check out the changes to the search functionality with the more recent releases of Door knocker. Instead of the imprecise aura radar of the early versions, the new search copies the DL lines to the map layer (or GM layer if the gm sends the command) for a few seconds to show where doors are.
1622174163
timmaugh
Pro
API Scripter
GM: Scott has successfully summoned a Level II Timmaugh. Everyone on the thread roll Save vs. Involuntary Jazz Hands Hey, Agnati... I had a chance to talk with Scott and he helped me understand what you're looking to do. I think SelectManager will help (it's in the 1-click). Basically, when IaT sends the command to DoorKnocker, that's one script calling another, so there won't be a selected token. SelectManager will restore that so DK can do its thing. Drop a {& select ... } syntax structure into the DK command line that IaT sends, and include the token ID of the IaT triggering token. So if you ItsATrap token has an id of -M1234567890abcdef , then your DK command line might be: !knock --push|open {& select -M1234567890abcdef } That should get you what you're looking for. If not post back with more info.
If I enter !knock --push|open/3 Will that set it so a token has to be within 2' of a door to open it? Currently tokens 5' away (1 square; 70px)  can open a door and that seems a little odd to me. I'd like them to be within arms length.
1622550500
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You'll need to use a pipe instead of a slash for the second separator, but he's that should work.
Scott C. said: You'll need to use a pipe instead of a slash for the second separator, but he's that should work. It worked! But only for me. I thought I could push out the macro to the players but I couldn't. I think that's a different issue. On another note, I can't seem to get to the "settings", take a look, <a href="https://drive.google.com/file/d/14CAHe2LIDEpVqWuSws0eZZuuMt9pY3n-/view" rel="nofollow">https://drive.google.com/file/d/14CAHe2LIDEpVqWuSws0eZZuuMt9pY3n-/view</a>
1622922163
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm, I'll check the code. I may have a gm check in for range. As for accessing settings, the journal command buttons that the UI relies on do not work when the character or handout is popped out into it's own window. You'll need to disable the auto popout from the settings tab on game.
Quick clarifying question that will tell me if I'm crazy or not... For the window functionality, does open/close/toggle only affect the visibility through the window and not movement? I was under the impression that the transparency was the permanent fixture and the open/close/toggle would allow for moving through the window.&nbsp;
In my experience it only changes the movement restriction.
Yeah, I'm having the opposite issue, it's toggling visibility as though it were a door, but movement is still restricted regardless of visibility.&nbsp;
Aha! I discovered a fix. It doesn't like to play well with pre-existing UDL windows, so I just have to delete and draw a new line of the appropriate color as designated in the Door Knocker UI settings page.&nbsp;
1623089543
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, it relies on the color to determine what to do. You could also simply select preexisting UDL windows (such as from Aaron's UDL window script) and run !knock --adapt|window &nbsp;on it to convert it to the correct color.