I have an armor equipping code, in the module OnEquip script, that makes a PC uncommandable for a certain amount of time while they are equipping armor. It works as I like it to with one exception: when someone leaves/cancels polymorph, it fires for them. I'd like to stop that from happening, but I've not really been having any luck determining if someone has just left a polymorphed state. I'd also really prefer not to have to go through and modify the polymorph scripts (especially all those for shifters) to set variables or start some pseudo-heartbeat or something.
So I'm wondering if anyone has some clever ideas to either determine when a person has just left a polymorphed state or otherwise stop the script in the OnEquip event from firing based on other criteria that a recently polymorphed PC might trigger.





Retour en haut






