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

Pick Locks (Powercards plus Door Knocker)

Hello,  I am using Door Knocker and Powercards to create a new macro so my rogue characters can have more direct involvement with the VTT map. Basically the goal is to allow a rogue type character to approach a locked door, make their open lock roll, and if it succeeds the macro/powercard triggers Door Knocker to open the door.  This is how I have written it up in Powercards: !power {{ --name|@{selected|token_name} Open Locks --leftsub|Rogue Skill --rightsub|Dexterity + Level --Roll: | [[ [$Open] 1d20 + @{selected|DexterityMod} + @{selected|Level} ]]   --??  $Open  >=12  ??  api_knock|  _push|open }} I am playing Castles & Crusades so the default success roll is 12+. When I use this macro the Door Knocker (!knock) API does not activate. Anyhelp woudl be apprecaited. I hope to use this as a the basis for other rogue skills, such as find traps, remove traps, and even searching for secret doors.
1599059371

Edited 1599060593
David M.
Pro
API Scripter
I've never called a script from powercards before, but looking at the documentation here , maybe you need a double dash before "api_knock"? So like this? !power {{  --name|@{selected|token_name} Open Locks  --leftsub|Rogue Skill  --rightsub|Dexterity + Level  --Roll: | [[ [$Open] 1d20 + @{selected|DexterityMod} + @{selected|Level} ]]    --??  $Open  >=12  ??  --api_knock| _push|open }}  
I will give it a try, but I don't need the -- to use token-mod in Powercards.
one thing I see... If this is the case. You will need a space after the >= The 12 is up against it, and will cause the PC to break. Might be one reason....IDK