Thank you, kjeron. That's the menu, for the IWD2 states (all the custom states go there). To Avenger: you know, as someone who wrote it, you should probably be surprised that states over 255 work. Well, only for some functions. I have way too many unfinished mods with tp2s that I move back and forth between, it would be easier to remember just what works when if I settle down and focus on one thing. I do remember trying to use the high states for distinguishing weapon types, with some weapons putting the creature in particular states, and then I ran into the same problem with "special". When I changed the states by hand, the recognition wasn't quite happening. But they work for some other uses. Here is what I did just now to convince myself.
The Weidu patching adds the creature effect, and the value, all except choosing the right menu. The 522 spell state is called BOY, it is one of the four states added for innocents: BOY, GIRL, MAN and WOMAN. I need those distinctions for some quest work. The boys in the game got patched, and I went and edited BOYBA3.CRE to use the IWD2 menu, and its value showed BOY instead of "Unknown." I saved the file and then added this to baldur.bcs:
IF
TriggerOverride(Player1,See([ANYONE]))
CheckSpellState(LastSeenBy(Player1),BOY)
THEN
RESPONSE #1
Kill(Player1)
END
I ran the game, summoned the boy, and guess what happened. So the problem, at least for this application, is not with states but with Weidu, which somehow doesn't understand "special." I'll update it, but I doubt versions are the cause. If anybody wants to try and get custom states through, they're welcome to it. There is a workaround, which, I recall, I've used at some point: making custom spells with Set Spell State, picking the spell state by hand, and patching creatures to cast the spell on themselves instead. I'll use this again if nothing else comes up, but how are you all getting your custom states in without running into the "special"?