
Hi, this is my first script for roll20, so please tell me if i did something wrong, or if there is a better way to do it. :) It works only on dev server for the moment, as imgsrc is not available on prod server. The idea is to easily change tokens display image. It works like this : 1- create a token with the new image 2-select this token 3-click on "source" macro button to memorize the new image 4- select the tokens you want to modify 5- click on "target" marco button => the images of selected tokens change for the source one ! Macro "source" : !source Macro "target" : !target API script : <a href="https://gist.github.com/tontione/7693794" rel="nofollow">https://gist.github.com/tontione/7693794</a>
Next step : make a code to change all tokens with the same image by just selecting one of them. :)