A couple different ways to do this maybe.
One would be to add a delayed line to the bottom of this script to change the reputation back. However that would only work for a locked version of the polymorph. If the player can cancel the effect then the hostiles will still be nice until the delay changes the reputation back.
Another way might be to use the bad guys' OnPerception script. Make it so that if the object they last perceived doesn't have a certain appearance type..then set the reputation back.
All I can think of off the top of my head.
Modifié par GhostOfGod, 04 octobre 2010 - 02:43 .