craxmerax Posted February 29, 2012 Share Posted February 29, 2012 I've been trying to make a spell toggleable. The one I wanted to edit was Midas' Shapeshift Wolf. I managed to make it toggleable and with no duriation, but I can't figure how to make it so that I can use the "Z" key to exit the shapeshift. As of now, I can shapeshift into a wolf, but not out of it. Hope there is an easy way to do this, but I can't seem to figure out how. Thanks in advance! Link to comment Share on other sites More sharing options...
dmjay Posted March 1, 2012 Share Posted March 1, 2012 I think you just need to add a bit to the Event OnEffectStart function in the MidasSCPTShapeShift. Make it look like this, it just switches you back to your own race if you are currently the same race as the spell changes you too. Event OnEffectStart(Actor Target, Actor Caster) if (Target == None) ; Debug.Trace("Trying to transform something that's not an actor; bailing out.", 2) return endif OrigRace = Target.GetActorBase().GetRace() if (OrigRace != PolymorphRace) Target.placeAtMe(appearExplosion) Target.SetRace(PolymorphRace) else ;change back to original Target.placeAtMe(appearExplosion) Target.SetRace(OrigRace) endif EndEvent Link to comment Share on other sites More sharing options...
craxmerax Posted March 1, 2012 Author Share Posted March 1, 2012 How do I edit the script? I can't seem to find it. Never done anything like that before. Link to comment Share on other sites More sharing options...
craxmerax Posted March 1, 2012 Author Share Posted March 1, 2012 I get these two error messages: Link to comment Share on other sites More sharing options...
porroone Posted March 1, 2012 Share Posted March 1, 2012 Thats because the script is compiled only, I think you are missing the source. Anyways if you want to script your way out of this, let me tell you its impossible to determine what key the player is pressing with papyrus. Link to comment Share on other sites More sharing options...
Recommended Posts