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

Panicked, Confused, need my hand to be held! API ignorance!

I've heard that shared API scripts are simple to put in games; they just have to be copied, pasted, and saved, and they're good to go. I'm running my first game ever on Roll20, HackMaster, and I've found a nifty API script to use. Now I, having only taken an introductory class to programming several years ago and barely passing it, have literally no idea why this script is not working. I save the script and get no errors or warnings, all seems well. I open the game and try to use the text commands that work it, and nothing happens. I am bewildered and embarrassed! I beseech thee to help me! I'm not sure if it's me or if it's the API. In any case, the API in question is located in this thread:&nbsp;<a href="https://app.roll20.net/forum/post/841127/script-second-tracker-for-hackmaster-5e/?pageforid=841127#post-841127" rel="nofollow">https://app.roll20.net/forum/post/841127/script-second-tracker-for-hackmaster-5e/?pageforid=841127#post-841127</a>
1467482934

Edited 1467483038
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hi Daniel, I don't play Hackmaster, but I thought I'd take a look at the script to see if I could spot anything. I am by no means a master scriptomancer like The Aaron, but here's what I've noticed about it. The script requires that there be at least 2 items in the turn tracker. I wasn't getting any response from the script either until I dug into the code and discovered that it simply exits if there is 1 or 0 items in the turn tracker. Also be sure that you have copied your player id into the script in the gm list variable. There are better ways to do this (and I'm sure better ways to do what the script is aiming for), but I'll leave editing the script up to better coders than me/ones that know how Hackmaster works. Hope that helps, and sorry I couldn't give more insight, Scott
Scott C. said: Hi Daniel, I don't play Hackmaster, but I thought I'd take a look at the script to see if I could spot anything. I am by no means a master scriptomancer like The Aaron, but here's what I've noticed about it. The script requires that there be at least 2 items in the turn tracker. I wasn't getting any response from the script either until I dug into the code and discovered that it simply exits if there is 1 or 0 items in the turn tracker. Also be sure that you have copied your player id into the script in the gm list variable. There are better ways to do this (and I'm sure better ways to do what the script is aiming for), but I'll leave editing the script up to better coders than me/ones that know how Hackmaster works. Hope that helps, and sorry I couldn't give more insight, Scott Ha, yes, it worked! Thank you my good man! However, I've run into another problem haha! Apparently when I add tokens to the turn order manually, nobody sees them but I. I've never had this issue before so I'm assuming it has something to do with the API script!&nbsp;
1467489974
Lithl
Pro
Sheet Author
API Scripter
Daniel said: However, I've run into another problem haha! Apparently when I add tokens to the turn order manually, nobody sees them but I. I've never had this issue before so I'm assuming it has something to do with the API script!&nbsp; Players can only see turn order entries for tokens that are on the same page as them and &nbsp;on the object layer. If you add tokens on a different page to the turnorder or you add tokens on the GM layer, players won't see them.
Brian said: Daniel said: However, I've run into another problem haha! Apparently when I add tokens to the turn order manually, nobody sees them but I. I've never had this issue before so I'm assuming it has something to do with the API script!&nbsp; Players can only see turn order entries for tokens that are on the same page as them and &nbsp;on the object layer. If you add tokens on a different page to the turnorder or you add tokens on the GM layer, players won't see them. Hahahahaha! My players couldn't see the tokens on the tracker because they were on a separate map the whole time! Thanks for all the help guys! I am going to go hang my head in shame now.
1467490982

Edited 1467491022
Gold
Forum Champion
Daniel, you could also try sending a PM on Roll20 to FeltZ the original programmer of that script and alert him to this thread with your questions. He may be happy to see it is still getting discovered and help with updating it, if needed. Great to see in this thread you are making progress!