Messagebox Problems

Post » Thu Aug 21, 2014 5:15 am

I haven't actually done any scripting with messageboxes in Skyrim yet, so I've been having some problems creating one. It works kind of. I've got a text option in my MCM, and when you select it, it will set a var - which I've declared correctly. Once you leave the MCM after selecting this, a messagebox will pop up with three options. House Count, Horse Count, and Exit. This is for my mod http://www.nexusmods.com/skyrim/mods/57239/?, so you can add your own compatibility for mod-added horses and houses.

This is the script I have, if you need more explanation of what's supposed to happen I can give you that, but I figure there's probably a problem with my script that some of you guys can figure out. It's an excerpt from my MCM. The issues so far are that once you've chosen the Go back option, Exit no longer works, and if you've chosen the Exit option on anything other than the first messagebox, it just goes back to the first messagebox. Script:

Spoiler
Event OnSelectST()	If ShowCompMes == 0		SetTextOptionValueST("Exit MCM")		ShowCompMes = 1		Utility.Wait(0.5)		SetTextOptionValueST("Add Compatibility")		Int Button1 = ChangeCountMes.Show()		If Button1 == 0			Int Button2 = ChangeCountHouseMes.Show()			If Button2 == 1 				Game.IncrementStat("Houses Owned", 1)				Button1 = ChangeCountMes.Show()			ElseIf Button2 == 2				Game.IncrementStat("Houses Owned", -1)				Button1 = ChangeCountMes.Show()			ElseIf Button2 == 3				Button1 = ChangeCountMes.Show()			ElseIf Button2 == 4				;do nothing			EndIf		ElseIf Button1 == 1			Int Button3 = ChangeCountHorseMes.Show()			If Button3 == 1 				Game.IncrementStat("Horses Owned", 1)				Button1 = ChangeCountMes.Show()			ElseIf Button3 == 2				Game.IncrementStat("Horses Owned", -1)				Button1 = ChangeCountMes.Show()			ElseIf Button3 == 3				Button1 = ChangeCountMes.Show()			ElseIf Button3 == 4				;do nothing?			EndIf		ElseIf Button1 == 2			;do nothing		EndIf		ShowCompMes = 0	EndIfEndEvent 

Thanks for any help you can offer.

User avatar
Heather beauchamp
 
Posts: 3456
Joined: Mon Aug 13, 2007 6:05 pm

Return to V - Skyrim