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

ChatSetAttr - jakob

1475602231
Falcon
Pro
Sheet Author
I am looking for whoever owns the ChatSetAttr script (currently says Jakob).  Here is my request: For some reason when I setattr a trait using the --mod command it doesn't allow for decimals.  It seems to floor everything and then subtract.  Can you add the ability to use decimals?  Thanks.
1475602710

Edited 1475602731
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
While Jakob may come by and see this post, I would recommend posting a link to this thread in the thread he created for the script as he is almost certainly following that thread. <a href="https://app.roll20.net/forum/post/3737514/slug%7D#post-3935720" rel="nofollow">https://app.roll20.net/forum/post/3737514/slug%7D#post-3935720</a>
1475604767

Edited 1475604965
Jakob
Sheet Author
API Scripter
I actually took a look at it again and it seems Javascript has a somewhat intelligent handling of numbers. So I've changed --mod to use floats instead of integers, shouldn't change anything if you use integers. If you get the newest version from my github (see Scott's link), it will be able to deal with decimals. EDIT: Forgot to mention, the 1-click version will have this feature once roll20 accepts my pull request.
1475608687
Falcon
Pro
Sheet Author
Awesome. &nbsp;Thanks Jakob. &nbsp; How quickly do they post? &nbsp;Love the API by the way.
1475610955
Jakob
Sheet Author
API Scripter
They look over the pull requests from time to time, but not very often - I would also think the devs are very busy right now with the whole Soundcloud replacement story. So don't hold your breath, the CSA v1.0 pull request has been open for 13 days now. If you need decimals in your ChatSetAttr NOW, I would suggest copying it from Github ;).