
This is really my first API script. It takes the selected token(s) and sets the defined attribute to the defined value. If the token does not have an associated character, or if the attribute does not exist, it spits out an error. Simple and efficient. Working for me! I used to have a version of this that would create the attribute if it did not exist, but it was very buggy and I moved on to another script. It now spits out an error if it does not exist. To call the script, put this in chat: !attrib [attribute name]|[new attribute value] For example: !attrib hp|17 <a href="https://gist.github.com/sturtus/8222956" rel="nofollow">https://gist.github.com/sturtus/8222956</a>