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

Flight

1553113114

Edited 1553113138
Flight API reverses number order: Example:&nbsp; command !fly 10 yeilds API in question:&nbsp; <a href="https://raw.githubusercontent.com/Roll20/roll20-api-scripts/master/Flight/3.4/Flight.js" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-api-scripts/master/Flight/3.4/Flight.js</a>
1553114208
GiGs
Pro
Sheet Author
API Scripter
I believe this is related to an update roll20 did a while ago, that caused this to happen with a lot of scripts.&nbsp; You can probably fix it (untested) by manually editing this section of the script if(num) { markerStr = _.chain(num.toString().split('')) .map((d) =&gt; `${marker}@${d}`) .value() .reverse() .join(','); } to this if(num) { markerStr = _.chain(num.toString().split('')) .map((d) =&gt; `${marker}@${d}`) .value() .join(','); } Basically, just remove the .reverse line.
1553114354
The Aaron
Roll20 Production Team
API Scripter
Concur all.&nbsp; That is the appropriate fix.
Awesome thanks!