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

Script : Door Knocker

How can i use Door knocker in a power card?  i use :  power {{ --api_knock _push|open }} it doesn work and send error : C annot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined at HandleInput (apiscript.js:1048:42)
1631548060
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Door Knocker requires a selected token, which is lost when powercards sends the door knocker command. Timmaugh's Selectmanager (part of the meta toolbox) can reinject the selection (or even force the selection to be one particular token).
Depends. What do you want it to do? The example you posted doesn't do anything except open the door (no other functions etc) so really isn't any better than !knock--push|open