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

[Bug] obj.set("aura1_radius", 0) acts as false, not zero...

If I set the radius to 0 and not "0", it acts as if I'm setting the aura to false... which causes it to not show up even though it should.
As a general rule of thumb, if the default value of a property is a string, you should set a string. So you should set "0" instead of 0 because the default value is "". However, I can see how in this particular case that could be confusing, so I'll see if I can fix it :-)
Cool. That makes sense and that's how I figured out what it was doing. I saw that you had an empty string for the attribute in the wiki and tried it that way. Thanks.