I have a custom Wild Magic surge table for a campaign I'm running and I was looking for a way to integrate it into r20. I stumbled upon this thread in which Pyromanci made a surge API for the "Net Libram of Random Magical Effects". I copied pyromanci's API to test it and it worked great, so I went through and tried to alter it to my table. I know pretty much nothing about coding, so unsurprisingly it is coming up with an error that says the following: SyntaxError: Unexpected token , That said, the only changes I made besides the effects text was reducing the table down to 600 from 10,000 and changing one line near the end of the script from var roll = randomInteger(10000); to var roll = randomInteger(600); Besides that, I've gone through and made sure all of the formatting is identical. Though I'm more than willing to accept that I'm futzing with super complicated stuff I have no real means of understanding, I figured I may just be missing something simple. Any ideas? (I would post my version of the code, but I'm not really sure how to do that : p)