eleglas Posted April 10, 2010 Share Posted April 10, 2010 Hi, I'm trying to make a spell that will change my armor depending on what type I want, it does this with a message box. I have made the spell and the script, when in game the message box shows up, but when I choose an option nothing happens. Can someone tell me whats wrong will my script: SCN 000BrellaArmorSwitchX Short Button Begin ScriptEffectStart messagebox "Choose your Outfit", "Heavy Armor", "Outfit/Dress", "Underwear", "Cancel" End Begin Gamemode set button to getbuttonpressed If Button == 0 Player.Equipitem 000BrellaCuirass2 Player.Equipitem 000BrellaBoots2 Player.Equipitem 000BrellaGuantlets2 Player.Equipitem 000BrellaPauldrons2 Player.Equipitem 000BrellaSword2 Elseif Button == 1 Player.UnEquipitem 000BrellaPauldrons2 Player.UnEquipitem 000BrellaSword2 Player.Equipitem 000BrellaOutfit Player.Equipitem 000BrellaDressGlove Player.Equipitem 000BrellaDressShoes Player.Equipitem 000BrellaDressLower Elseif Button == 2 Player.UnEquipitem 000BrellaPauldrons2 Player.UnEquipitem 000BrellaSword2 Player.UnEquipitem 000BrellaGuantlets2 Player.UnEquipitem 000BrellaBoots2 Player.UnEquipitem 000BrellaDressGlove Player.UnEquipitem 000BrellaDressShoes Player.Equipitem 000BrellaBra Player.Equipitem 000BrellaThong Endif End Thanks guys, any help is appreciated! Link to comment Share on other sites More sharing options...
Pronam Posted April 10, 2010 Share Posted April 10, 2010 The script never ends. The simplest solution would be to set button to -1 at every option chosen. Link to comment Share on other sites More sharing options...
eleglas Posted April 10, 2010 Author Share Posted April 10, 2010 Tried that but it didn't work, same situation as before. Link to comment Share on other sites More sharing options...
Argomirr Posted April 10, 2010 Share Posted April 10, 2010 Perhaps you should change that GameMode block to a ScriptEffectFinish block. I don't think GameMode blocks are run in spell scripts. Also, does the player have these items in his inventory? Link to comment Share on other sites More sharing options...
eleglas Posted April 10, 2010 Author Share Posted April 10, 2010 Nope didn't work with ScriptEffectFinish or ScriptEffectUpdate. And yes I do have all the items in inventory. Link to comment Share on other sites More sharing options...
eleglas Posted April 10, 2010 Author Share Posted April 10, 2010 Come on guys, I really need help with this. Link to comment Share on other sites More sharing options...
Recommended Posts