GingahNinja47 Posted August 7, 2014 Share Posted August 7, 2014 I got a request to add the Crescent Rose to Skyrim. I'm making it so that equipping it in Scythe Form adds the spell "Gun Form," which you can equip to your power button and use to switch to Gun Mode. Equipping it in Gun Mode does the same but for Scythe Form. Problem is none of my scripts seem to be working and I can't figure out why. Script attached to Scythe Form Weapon Scriptname CrescentRoseScythe extends ObjectReference SPELL Property CrescentRoseToGunForm AutoEvent OnEquipped(Actor akActor) if (akActor == Game.GetPlayer()) Game.GetPlayer().AddSpell(CrescentRoseToGunForm, false) endifEndEventEvent OnUnEquipped(Actor akActor) if (akActor == Game.GetPlayer()) Game.GetPlayer().RemoveSpell(CrescentRoseToGunForm) endifEndEvent Script attached to the Gun Form Weapon Scriptname CrescentRoseGun extends ObjectReference SPELL Property CrescentRoseToScytheForm AutoEvent OnEquipped(Actor akActor) if (akActor == Game.GetPlayer()) Game.GetPlayer().AddSpell(CrescentRoseToScytheForm, false) endifEndEventEvent OnUnEquipped(Actor akActor) if (akActor == Game.GetPlayer()) Game.GetPlayer().RemoveSpell(CrescentRoseToScytheForm) endifEndEvent Script attached to the Scythe Form Spell (the one that should be added when you equip the Gun Form Weapon) Scriptname CrescentRoseChangeToScythe extends ObjectReference SPELL Property CrescentRoseToScytheForm AutoWEAPON Property CrescentRoseScytheForm AutoWEAPON Property CrescentRoseGunForm AutoEvent OnSpellCast(Form akSpell) if (akSpell == CrescentRoseToScytheForm) Game.GetPlayer().AddItem(CrescentRoseScytheForm) Game.GetPlayer().RemoveItem(CrescentRoseGunForm) endifEndEvent Script attached to the Gun Form Spell (the one that should be added when you equip the Scythe Form Weapon) Scriptname CrescentRoseChangeToGun extends ObjectReference SPELL Property CrescentRoseToGunForm AutoWEAPON Property CrescentRoseScytheForm AutoWEAPON Property CrescentRoseGunForm AutoEvent OnSpellCast(Form akSpell) if (akSpell == CrescentRoseToGunForm) Game.GetPlayer().AddItem(CrescentRoseGunForm) Game.GetPlayer().RemoveItem(CrescentRoseScytheForm) endifEndEvent Any help would be much appreciated! Link to comment Share on other sites More sharing options...
Sjogga Posted August 7, 2014 Share Posted August 7, 2014 Are they compiled? Link to comment Share on other sites More sharing options...
lofgren Posted August 7, 2014 Share Posted August 7, 2014 The first two scripts look fine, but the last two should extend activemagiceffect and the event you want is OnEffectStart(Actor akTarget, Actor akCaster). Link to comment Share on other sites More sharing options...
GingahNinja47 Posted August 8, 2014 Author Share Posted August 8, 2014 Okay, so do you have any idea why the spell isn't added when I equip the item? Link to comment Share on other sites More sharing options...
GingahNinja47 Posted August 8, 2014 Author Share Posted August 8, 2014 Also Sjogga Yes, they are compiled. Link to comment Share on other sites More sharing options...
Mattiewagg Posted August 8, 2014 Share Posted August 8, 2014 You've probably already thought of this but... Have you filled all the properties? Link to comment Share on other sites More sharing options...
GingahNinja47 Posted August 8, 2014 Author Share Posted August 8, 2014 I had. Also, it now works perfectly! All of the scripts! And I have no idea why the first 2 decided to start working, because all I did was fix the other 2, but hey, I'll take it! Thanks to Sjogga and Matthiaswagg for replying and HUGE thanks to lofgren for helping me get the scripts running! Now, if you'll excuse me, I have some modelling to finish. Link to comment Share on other sites More sharing options...
Recommended Posts