HoneyBadger
said:
Found an interesting bug. In my !mark script, if I type !mark target skull@10, it adds a skull without a number badge. If I repeat this command, it keeps adding skulls as shown above. This also works however, for numbers less than ten. Instead of replacing the existing badge and number, it just adds a new one. So if I were to enter: !mark target skull@1 !mark target skull@2 !mark target skull@3
I would have three skulls on the token with a 1, 2, and 3 showing.
That would be a problem with your code, its a coma separated list so if you have "skull,skull,skull" then it will have 3 skulls, you need to check the list and replace it if it exists.