After a question I posed I found the above page, API: Advanced User Guide , at <a href="https://roll20.zendesk.com/hc/en-us/articles/360037772773" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037772773</a> and have begin going through it to better understand things. I would very much appreciate it if any reader could please let me know if I have stated my problem clearly or if I am talking like a babbling brook. :) Thanks in advance! I've been copying code to a script I've called "Learning.js". When I tried the code listed under A Note on Utility Functions , which uses the "distanceToPixels" function, it threw an error when compiling (I assume "compiling" is the correct term?). See: <a href="https://roll20.zendesk.com/hc/en-us/articles/360037772773#API:AdvancedUseGuide-ReactiveScripts:ListentoEvents,ModifyObjects" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037772773#API:AdvancedUseGuide-ReactiveScripts:ListentoEvents,ModifyObjects</a> Note that distanceToPixels() is used the script, but the text of the link refers to " distanceToPixelsfunction ". Not sure if that's an error. Here is a screenshot the console error message I am receiving: Here is what is listed in the Learning.js script as copied from the previous link on the API: Advanced User Guide: A Note on Utility Functions page and section: on( "change:graphic" , function ( obj ) {
obj.set({
left : obj.get( "left" ) + distanceToPixels( 5 );
});
}); And here it is on my console. I have circled a semicolon. when I remove that, my sandbox compiles correctly and things work on my desktop when I launch the game. However, see my notes following the screenshot, below: When I remove the semicolon circled in red on the above screen shot, my sandbox compiles correctly. When I launch the game, my previously written macros work correctly. However, nothing appears to happen when I move or alter a character object on the table top. My hexagons are 70 pixels across and represent 2 kilometres. The commented out script in the above screen shot worked properly made for lots of delighted amusement when I saved it previously and :) is from the first script shown on the API: Advanced User Guide in the section immediately preceding. Changing the distanceToPixels(5) to distanceToPixels(20) caused an error in compilation. So, is there some kind of error when in the link's code? I hope I have explained my question clearly. Thanks in advance, and all the best, -- Tim