OnLockStateChanged()

Post » Thu Nov 22, 2012 5:07 pm

This event seems to get fired repeatedly.

I have a container form with this script on it: (Ignore its other shortcomings)

Spoiler

Event OnLockStateChanged()  Lock()   Game.AdvanceSkill("Lockpicking", 13.0)	 ;13 exp = master lockEndEvent

In-game when I unlock the container it starts pumping my skill up massively. Before I quit it had increased my Lockpicking from 52-71 from only picking the lock once.

My conclusions are that this event either fires continuously or the fact that I have Lock() inside this event somehow triggers it, so things become cyclic.

Thoughts? Comments? What is actually going on here?

*EDIT: Obviously I can code around this, but this is important information (if not isolated to me) and the wiki article will need to get updated to reflect this behaviour...........
User avatar
Nicola
 
Posts: 3365
Joined: Wed Jul 19, 2006 7:57 am

Post » Thu Nov 22, 2012 12:09 pm

I commented out Lock() and the Event only fires when it should.

I still regard this as a bug because the container was going from Locked > Locked, so the LockedState isn't changing.
User avatar
saharen beauty
 
Posts: 3456
Joined: Wed Nov 22, 2006 12:54 am


Return to V - Skyrim