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 .
×

Help with API macro intergration on Pathfinder char sheet

So I have a lot of API scripts that do not seem to work or integrate with the Pathfinder character sheet. All the code seems right but I get no output. As an example if I use !condition API script with variable bonuses to STR and Fort save the condition icon appears on the character icon but does not update the buff on the characters sheet so the buff has to be tracked manually. Is there a way to get this to show correctly on the sheet so I do not have to manually track buffs and effects on characters? In the same vein, if I have the !summon API script running and say a player wants to summon a spiritual weapon I can get that to summon no problem but cannot get it to summon when the player actually activates the spell. Aka the spell is a macro on his bar he clicks and it shows in the dialogue box as the spell spiritual weapon but, then he has to click another macro I made for him to summon the icon. Is there a way to integrate the !summon with the %{selected|} of the character sheet? Thanks for all the help! Vistcoatis
1487358122

Edited 1487359073
vÍnce
Pro
Sheet Author
Are you testing with the  beta sheet ? (latest build  here , warning:WIP)  The live version does not have the code necessary to take advantage of the last API update/additions Riley made( New API Update: Sheet Worker Support in API Scripts, Speed Improvements ). And I believe that the API scripts need to include setWithWorker...?  Which is part of the new update. Until recently sheet workers would not recognize the API interaction per se.  We have added code onto the beta which recognizes API events so that the sheet workers could run their routines/functions as needed.  So now you can trigger conditions, buffs, and such from the API just as if a player had interacted with the sheet. Update: added a little more info.
1487361005
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Just to make sure it's clear even though Vince already said it, even though the beta version of the sheet will allow API triggering of the sheetworker, the API script in question still has to be updated to use the new setwithworker function to trigger this.