I've been attempting to investigate further, but it's only increased my confusion.
To wit: I deleted the worg character utterly, as well as every icon from every map it was on (it only had one icon on each of two maps).
I then brought a fresh worg in from the compendium, put his token on one map, and checked the stat using Fetch, from my ScriptCards script:
!scriptcard {{
--+PW:|@(Worg.npc_passive_wisdom)
}}
It's... still 42. I couldn't have changed the frikken COMPENDIUM could I? So I deleted the character (and token) again and LEFT it deleted.
SAME RESULT. 42. The character is DELETED, but the value remains.
I exitted the game. I restarted the API sandbox. I restarted the game, and reran the above script.
SAME RESULT. 42.
I suppose I could try another browser entirely, but seriously... what the hell is going on here?
If I change "Worg" to some other name, it comes back blank. As it should. Worg is the only character where I only created this "attribute".
I thought "ChatSetAttr" was setting an attribute on a character sheet. That was, you know, tied to the character sheet somehow.
But Jarren's test from above seems to indicate that I don't have an attribute. And this new test seems to indicate that I have the Zombie Value From Hell, Destined To Haunt My Game Until The End Of Time.
Questions:
- What is it that ChatSetAttr set? (See reproduction step 1, above.)
- How do I get rid of it?
- What is the recommended way to set an actual, previously-non-existing, numeric character attribute, that would show up in a token bar's drop-down list (and, apparently, display with the following syntax)?
@{Worg|npc_passive_wisdom}
(I see that ScriptCards claims to have a built-in way to set character attributes; I'm trying to decide how brave I am after this confusion.)
Apologies; Roll20 scripting is very new to me, and the every-conceivable-permutation-of-random-punctuation syntax used by ScriptCards and the various metascript addons, makes the learning curve rather... steep...
Any help wrapping my brain around this is greatly appreciated...