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

Api script ColorNote

Hello, I found that code in request:&nbsp; <a href="https://app.roll20.net/forum/post/1522624/request-for-colored-text-and-box-api" rel="nofollow">https://app.roll20.net/forum/post/1522624/request-for-colored-text-and-box-api</a> But every time i try to use it, an error occur and said that hexDec is not defined.&nbsp; ReferenceError: hexDec is not defined ReferenceError: hexDec is not defined at getBrightness (apiscript.js:1409:25) at handleInput (apiscript.js:1414:29) at eval (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:151:1), &lt;anonymous&gt;:65:16) at Object.publish (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:151:1), &lt;anonymous&gt;:70:8) at /home/node/d20-api-server/api.js:1634:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) Did someone have a clue for make it work ? :v (I trying to use the last version on the topic, who can get the "Player" Color. hexdec is mentioned in the script but like the error said, it's not defined. )
1557680605
The Aaron
Roll20 Production Team
API Scripter
Try this version: <a href="https://github.com/shdwjk/Roll20API/blob/master/ColorNote/ColorNote.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/ColorNote/ColorNote.js</a>
1557698054

Edited 1557698100
Yes, it works! It's perfect, thank you! Besides, since you're here! I had seen a request about rollable tables, you answered it but that was 4 years ago and to say that there was no real solution. Would you have found a way to trigger the "Random Side" of a token linked to a rollable table without creating a message in the chat? I have a small game system that has made me create "Special" dice (with rollable tables) that I put on the field to hide from everyone's view under a "Cup". Players must guess the symbols on the dice and how many. But when I click on random side... They have the result in advance ;w; The topic in question ( <a href="https://app.roll20.net/forum/post/1261689/request-hidden-rollable-table-token-randomize" rel="nofollow">https://app.roll20.net/forum/post/1261689/request-hidden-rollable-table-token-randomize</a> )
1557698346
The Aaron
Roll20 Production Team
API Scripter
You can set a random side on a Rollable Table Token with TokenMod. You just have to be sure all the images are in a User Library and you can use this command: !token-mod --set currentside|*
Thank you! I had read the token mod Help before asking... and yet after proofreading it is in... It's so lame of me. Sorry for the inconvenience and they are great scripts o/ That thread is resolved !
1557701924
The Aaron
Roll20 Production Team
API Scripter
It's a massive help output, I keep discovering features in it, and I'm the one that wrote it!