OnPCEquip

Post » Tue May 17, 2011 4:23 pm

It was my understanding that OnPCEquip would have a value of 0 unitl the item is equipped, then a value of 1 until the item is unequipped unless manually reset. Both UESP.net and MWSFD indicate this is the case. However...

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.
User avatar
Jessie Butterfield
 
Posts: 3453
Joined: Wed Jun 21, 2006 5:59 pm

Return to III - Morrowind