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

Cant get scripts to work

1403196088

Edited 1403202903
I have been using the power cards script and I love it so I thought I'd try some other scripts for our upcoming game. I tried the auto initiative script but I can't figure out how to implement it once its installed. I read through the comments and it seems I'm the only person this dense. I also tried the Roll20 Status Tracker but I can't get it to work either. Read the thread and again I appear to be denser than the rest of you. So I guess I'm missing something painfully obvious but I'm hoping someone can please point it out to me.
1403200870
The Aaron
Roll20 Production Team
API Scripter
Are you getting any errors in the API Output Console? or is this just a matter of not knowing how to activate those scripts? Can you link to the scripts you mentioned?
Hi Aaron, I updated the post with links to the referenced scripts. I believe its a mater of me not understanding something fundamental about scripts but I don't know what. I was able to use the power cards script fine but when I try to use the other scripts nothing happens. No errors, nothing. Neither of the scripts give a "this is how to do it" tutorial or anything and honey badger had provided clear instructions so I guess its just me but I can't get my head wrapped around what I'm doing wrong. Maybe something to do with not understanding how to execute the commands from the script? I tried typing the example commands and putting them in a macro, but neither worked for me.
1403221748
The Aaron
Roll20 Production Team
API Scripter
I logged into Charles' game and checked out the scripts. The issue turned out to be how the scripts were determining who is a GM. They were looking for the '(GM)' in the msg.who. However, that text has been removed from API messages. A added my isGM() script to his scripts and changed the checks in the status tracker and initiative script to call isGM(msg.playerid) instead and they work great! (See my isGM() script here: <a href="https://app.roll20.net/forum/post/920764/script-is" rel="nofollow">https://app.roll20.net/forum/post/920764/script-is</a>... ) Additionally, the initiative script was looking for another system named MovementTracker and thrown an exception on the !CombatEnds command. I wrapped it in a try/catch with a log message. Cheers!
I've got a fairly major problem now. There's some kind of script error on the page. When I load the campaign first there is no map and moments later everything becomes unresponsive. Eventually Firefox threw up an error about a script so I ended the script but the browser never really recovers. I've tried disabling each script and all scripts but no dice. Is this something I should be contacting support with?
Okay emailed support. In the meantime, any suggestions on how to fix this would be welcome.
1403269008
The Aaron
Roll20 Production Team
API Scripter
We cleared this up. Whilst debugging, I accidentally dumped a bunch of info to the chat, and it was bogging things down. Clearing the chat history fixed the issue. =D
Thanks again Aaron. Regarding the Auto Initiative script, I have a couple of questions: 1) By default the script automatically rolls for initiative for the players and NPCs. Would it be possible to have it query me for the players rolls? If not, is it possible to have it query me on all rolls? 2) In D&D 4e all monsters of a specific type share initiative. Is it possible to have the script use this method to roll (eg, all Kobold Slingers have an initiative of 1, all Kobold Dragonshields have an initiative of 20, and all Kobold Wyrmpriests have an initiative of 7).
1403276087
The Aaron
Roll20 Production Team
API Scripter
Regarding 1) The API can't query the user for information directly, that's why we have to call api commands with the ?{Option|Default} mechanic. It could potentially whisper to you on the chat things like "What is the initiative for Todd the Destroyer?" and monitor your responses for the answers. That would be a bit of a rewrite and not something I've actually seen done before. Regarding 2) I jumped on Charles' campaign and modified the script to have that behavior. =D
And you are my hero of the day for it!
1403277880
The Aaron
Roll20 Production Team
API Scripter
;)