Can't you check for a state in the tab conditions?
Are you sure it's the condition that's the problem, and not your script call? Replace it with a message and see if the message displays when the actor gets that state.
Actually, what engine are you using? Your profile says Ace, and the script call looks like an Ace call, but you've posted in Javascript/Plugin Support, which is for MV.