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 .
×

Tokenmod- defaulttoken doesn't work

I'm having an issue in Experimental where I cannot get the defaulttoken to save using the Tokenmod script.  I can update the token from within the token menu, but I cannot get it to update using the command... !token-mod --set defaulttoken I'm trying to use it in a macro, but it doesn't work in a macro either. Any suggestions?
1783194968
Jason M.
Pro
API Scripter
So, what exactly did you do? I just took token-mod, and did the following: Dragged a sheets token onto the board edited a token from the gear dial on the token (added a hp bar and added vision/light) With the token still selected/highlighted, ran !token-mod --set defaulttoken Deleted the token from the board Dragged it back onto the board The changes to the token remained I also tried something I suspect you might be doing: updated a sheets token on the board de-selected it ran !token-mod --set defaulttoken deleted the token dragged it back onto the board the changes didn't stick.
1783211298

Edited 1783211484
AmadeusVF
Pro
API Scripter
Jason M. said: So, what exactly did you do? I just took token-mod, and did the following: Dragged a sheets token onto the board edited a token from the gear dial on the token (added a hp bar and added vision/light) With the token still selected/highlighted, ran !token-mod --set defaulttoken Deleted the token from the board Dragged it back onto the board The changes to the token remained I also tried something I suspect you might be doing: updated a sheets token on the board de-selected it ran !token-mod --set defaulttoken deleted the token dragged it back onto the board the changes didn't stick. did you set the sandbox in experimental mode? because in that mode "!token-mod --set defaulttoken" do not work. It looks like setDefaultTokenForCharacter doesn’t work for scripts in Experimental mode. I tried using it but couldn’t get it to work, so I implemented an alternative.