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

New World of Darkness (nWoD) API Scripts

1381604648
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
I've updated my New World of Darkness API scripts . There are currently three scripts. Status Tracker: Is a simple script that updates the hungry/starving/exhausted statuses automatically based on the token’s bars, by placing a status icon on the token. Damage Tracker : Places damage status icons based on API commands. It also updates those attributes on a character sheet and automatically applies wound penalties. Auto Sheet: Is designed for the new God Machine Chronicle and Strix Chronicle rules updates. The script adds all of the attributes, skills, other traits, and useful macros for the selected template. Currently only set up for mortal and vampire. Please let me know if you have any comments, questions, or concerns. Special thanks to Brian, whose fluffy wings !fly script I shameless stole in order to create the Damage Tracker. Thanks also to Honey Badger and Riley D for answered questions for me when I hit a wall.
I'm sure it's me but I get this error when trying to use the Auto Sheet TypeError: Cannot read property 'id' of undefined at evalmachine. :83:73 at Function._.each._.forEach (/home/symbly/www/d20-api-server/sandcastle/node_modules/underscore/underscore.js:81:22) at CheckAddAttr (evalmachine. :82:7) at Sandbox. (evalmachine. :56:9) at eval ( Any guidance appreciated.
1381701309

Edited 1381701324
Lithl
Pro
Sheet Author
API Scripter
Isembard, I suspect this error is being caused by line 49 in the Auto Sheet script; try changing the line to "else {oCharName = oParts[0];}"
1381706993

Edited 1381709493
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Isembard, I just tried the code by copying it into a new game and it worked for me. You have to use the !sheet command on an existing character. Meaning that you have to have added the character in the journal and then apply the !sheet command to that character's name exactly. I don't have any error checking for the character not existing, so that's something I overlooked. If my suggestion doesn't work do you think you could give me a more detailed walkthrough of the steps you're taking before using the !sheet command so I can try and recreate your trouble? Edit: I updated the script to include error detection for trying to apply the attributes to a non-existent or misspelled character. It should return an error message if that's the case. Please let me know if this doesn't make things more clear or doesn't solve the problem.
Stephen K. Thanks for the reply. I'm not sure if I was half asleep when I first tried this. But have tried again and it worked perfectly. This is a great script and very helpful. Thanks
1381786597
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Isembard, I'm very glad you found it useful. If you can think of ways to improve it or different tools that would be useful to the mechanics or setting, I'd love to hear about them.