Ze script!
SCN EchoCazadorWingsScriptShort ButtonShort Menu1Short Menu2; Color Options: Menu #1; 0 = Red; 1 = Orange; 2 = Yellow; 3 = Lime; 4 = BlueGreen; 5 = Blue; 6 = Purple; 7 = Pink; 8 = Next Menu; 9 = Close Menu; Color Options: Menu #2; 0 = White; 1 = x; 2 = x; 3 = x; 4 = x; 5 = x; 6 = x; 7 = x; 8 = Previous Menu; 9 = Close MenuBegin OnEquip ShowMessage EchoCazadorColorMENU01 Set Menu1 To 1EndBegin GameMode If Menu1 == 1 ;Menu 1 Player.UnequipItem EchoCazadorWingsRed 0 1 Player.UnequipItem EchoCazadorWingsOrange 0 1 Player.UnequipItem EchoCazadorWingsYellow 0 1 Player.UnequipItem EchoCazadorWingsLime 0 1 Player.UnequipItem EchoCazadorWingsBlueGreen 0 1 Player.UnequipItem EchoCazadorWingsBlue 0 1 Player.UnequipItem EchoCazadorWingsPurple 0 1 Player.UnequipItem EchoCazadorWingsPink 0 1 Player.UnequipItem EchoCazadorWingsWhite 0 1 Player.RemoveItem EchoCazadorWingsRed 1 1 Player.RemoveItem EchoCazadorWingsOrange 1 1 Player.RemoveItem EchoCazadorWingsYellow 1 1 Player.RemoveItem EchoCazadorWingsLime 1 1 Player.RemoveItem EchoCazadorWingsBlueGreen 1 1 Player.RemoveItem EchoCazadorWingsBlue 1 1 Player.RemoveItem EchoCazadorWingsPurple 1 1 Player.RemoveItem EchoCazadorWingsPink 1 1 Player.RemoveItem EchoCazadorWingsWhite 1 1 Set Button To getButtonPressed If Button == -1 Return ElseIf Button == 0 Player.Additem EchoCazadorWingsRed 1 1 Player.EquipItem EchoCazadorWingsRed 0 1 ElseIf Button == 1 Player.Additem EchoCazadorWingsOrange 1 1 Player.EquipItem EchoCazadorWingsOrange 0 1 ElseIf Button == 2 Player.Additem EchoCazadorWingsYellow 1 1 Player.EquipItem EchoCazadorWingsYellow 0 1 ElseIf Button == 3 Player.Additem EchoCazadorWingsLime 1 1 Player.EquipItem EchoCazadorWingsLime 0 1 ElseIf Button == 4 Player.Additem EchoCazadorWingsBlueGreen 1 1 Player.EquipItem EchoCazadorWingsBlueGreen 0 1 ElseIf Button == 5 Player.Additem EchoCazadorWingsBlue 1 1 Player.EquipItem EchoCazadorWingsBlue 0 1 ElseIf Button == 6 Player.Additem EchoCazadorWingsPurple 1 1 Player.EquipItem EchoCazadorWingsPurple 0 1 ElseIf Button == 7 Player.Additem EchoCazadorWingsPink 1 1 Player.EquipItem EchoCazadorWingsPink 0 1 ElseIf Button == 8 ShowMessage EchoCazadorColorMENU02 Set Menu1 To 0 Set Menu2 To 1 ElseIf Button == 9 Return Endif Endif If Menu2 == 1 ;Menu 2 Set Button To getButtonPressed If Button == -1 Return ElseIf Button == 0 Player.Additem EchoCazadorWingsWhite 1 1 Player.EquipItem EchoCazadorWingsWhite 0 1 ElseIf Button == 1 ;Do Nothing ElseIf Button == 2 ;Do Nothing ElseIf Button == 3 ;Do Nothing ElseIf Button == 4 ;Do Nothing ElseIf Button == 5 ;Do Nothing ElseIf Button == 6 ;Do Nothing ElseIf Button == 7 ;Do Nothing ElseIf Button == 8 ShowMessage EchoCazadorColorMENU01 Set Menu2 To 0 Set Menu1 To 1 ElseIf Button == 9 Return Endif EndifEnd
Now I know what I have posted wont work. As you can see by the large chunk of item unequipping and removal, the item is removed before the script can finish so the game crashes. As it stand, the only way I can get the script to work would be to have that long chunk copied into the "If" block for every option. That is bulky and annoying. So Im looking for a way to have a single section to run that bit of code and not crash... ideally.
Any suggestions?
