Jump to content

Armor Switch Script Help


eleglas

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...