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

HTML scripting question

when coding a HTML output for the chat, how do you remove userscript from <div class"userscript *>?
1374773596
Alex L.
Pro
Sheet Author
Emile l. said: when coding a HTML output for the chat, how do you remove userscript from <div class"userscript *>? you cant
Alex L. said: Emile l. said: when coding a HTML output for the chat, how do you remove userscript from <div class"userscript *>? you cant To further clarify, HTML that you write is first passed through a security filtering system before being displayed to other Roll20 users. One of defensive mechanisms of this filter is to add "userscript-" before any classes/IDs that you use in your HTML elements. This is to prevent you from overwriting existing elements on the page.
Brutal haha. Is the format for dice rolls available? Or would that be something that needs to be built from scratch by us? (And I definatly get the security measures)
1374784834
Alex L.
Pro
Sheet Author
Emile l. said: Brutal haha. Is the format for dice rolls available? Or would that be something that needs to be built from scratch by us? (And I definatly get the security measures) You could just copy the style and make it inline
I'm lazy, and at work, so I don't have too much free time to whip it up. But that's what I'll wind up doing. But i'm going to have to build inline and standard rolls, so it's slightly time consuming lol.
Actually I believe I did copy-over most of the dice roll formatting so that even with userscript-diceroll etc. it would work...but I haven't done it for inline rolls, yet.
Kind of a bizzare formatting I'm going for. The goal is to NOT actually roll the dice, but use an algorithim of !fake adb:+c:d,e,f.... where a is the die #, b is the die sides, c is the modifier and d,e, etc are the rigged results. Mostly usefull for GM's who poorly plan an encounter, or the rare occasion where the dice gods decide it's time to end a party. Make the players feel good about defeating the BBEG who seemed to have caught a streak of bad luck. i.e. if i were to put !fake d20:+3:2, it'd look like I rolled a 2, with a total result of 5