This script:
Begin AT_MaskScriptshort OnPCEquip;'global AT_UnknownIf ( OnPCEquip == 1 ) set AT_Unknown to 1endIf;'Originally the next block was an "else" condition, but i tried different things and ended up with two if statements instead.If ( OnPCEquip == 0 ) set AT_Unknown to 0endIfEnd AT_MaskScript
In-game with the script as-is, when the item ( type clothing ) is equipped an immediate SV on console shows the global "AT_Unknown" to equal 0.
If I comment out the second if block, AT_Unknown is set to 1 and remains that way. The problem is that I really need that variable set to 0 when the item is unequipped.
Every variation I have tried has worked out the same so far, so if anyone knows about OnPCEquip, I'd appreciate a pointer here. Thanks.