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

help with SpawnDefaultToken

Hi everyone, I've started trying to get this API to work, but I'm coming across some problems and I wondered if anyone could help. I have used this macro and only the character called Sabar appears on the gridded map.  Ideally, I'd like to use this API without a grid on my map, so if anyone can tell me how to do that too, it would be great. If that's not possible then I'll just manually place the players tokens like before and there is no need to spend time helping me fix this macro.  Thanks for any help you can give! !Spawn {{ --name|Damien --offset|0,1 --bar3|@{Damien|hp}/@{Damien|hp|max} KeepLink }} !Spawn {{ --name|Sabar --offset|0,2 --bar3|@{Sabar|hp}/@{Sabar|hp|max} KeepLink }} !Spawn {{ --name|Ferun --offset|0,3 --bar3|@{Ferun|hp}/@{Ferun|hp|max} KeepLink }} !Spawn {{ --name|Baldwin --offset|0,4 --bar3|@{Baldwin|hp}/@{Baldwin|hp|max} KeepLink }} !Spawn {{ --name|Gunter --offset|0,5 --bar3|@{Gunter|hp}/@{Gunter|hp|max} KeepLink }}
1692709245
The Aaron
Roll20 Production Team
API Scripter
My guess is that Sabar is the only character whose image was uploaded to a user library rather than pulled from the marketplace.  The Mod API can only create images uploaded to a user library.  It will fail for Marketplace images.
Thanks for the reply! It wasn't that, but you reminded me that the images I created were different if made on my phone than if made on my PC. The ones made on my phone work so I can now use the macro on a grid. Do you know if There is a way of making it work without a grid? If not is there a way to toggle on and off the grid?