I'm not sure what is causing the slow activation, but it may be that the rules part of the puzzlescript is too complicated.
I checked the rules through the hack link, oh jeez- Now I see how you implemented the final mechanic... I mean, if you got no plans on changing it any time soon there's no need to touch it