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 enhancement API

In door knocker, a door is either unlocked, locked or hidden If i open a locked door, with !knock --key|open, then the only way to close it is to reuse --key|close. But in fact, now the door is open, so the next one should be able to only push it I have not seen this functionality. It would be good to be able to change from one type to another the closest door for instance, to have better control Same for an hidden door, using reveal opens it. But may be the player only fond the hidden door but it is still locked. So when revealing a door we should be able to give the target color, either locked or unlocked. May be functionality is already here and i missed also ! :) that's why i am asking :)
1615915696
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Thanks for the suggestion JPL. I'll look into how easy the interface for something like this would be.
BTW, congrats for your API ! :)
The way you may handle in a way no big change in parameters : !knock --key|open |<unlocked> (open and unlock for next ones). This should probably becomes default behavior !knock --key|open |<locked> (open and keeps the door in locked color as today) !knock --key|close| <unlocked> I'm closing the door, but don't lock with key !knock --key|close| <locked> I'm closing the door with key, and lock the door at the same time this is if you want to do all in one raw you can also think of 3 state process     HIDDEN              KNOWN     -> only reveal --> KNOWN state     KNOWN --> the state of the door is either   LOCKED      or      UNLOCKED, for this you need key keyword     and then after you have the state when door is unlocked : it is in Open or closed status don't know if it is a good idea :)