I'm having a strange issue that I've never had before with Message box choices. When I activate the object that the script applies to in game and pick a choice in the message box, nothing happens, but to get the script to run, I have to activate the object again before I get the desired response from the choice I've made. The script works, but I have to activate the object twice which is a bot of an odd issue that I've never had before. I was wondering if someone may have a solution to this?
Spoiler
scn aaArenaMatchTabletScript
short Button
short ShowMessage
begin OnActivate
if ShowMessage == 0
MessageBox "What match would you like to start?" "Daedra Match" "End Match"
set ShowMessage to 1
endif
if ShowMessage == 1
set Button to GetButtonPressed
if ( button == 0 )
ArenaDremora1Ref.moveto ArenaCreature1Marker
ArenaClannfear1Ref.moveto ArenaCreature2Marker
ArenaScamp1Ref.moveto ArenaCreature3Marker
ArenaGate1Ref.lock 100
ArenaGate2Ref.lock 100
set ShowMessage to 0
elseif ( button == 1 )
ArenaDremora1Ref.resurrect
ArenaClannfear1Ref.resurrect
ArenaScamp1Ref.resurrect
ArenaDremora1Ref.moveto DaedraCellMarker1Ref
ArenaClannfear1Ref.moveto DaedraCellMarker1Ref
ArenaScamp1Ref.moveto DaedraCellMarker1Ref
ArenaGate1Ref.unlock
ArenaGate2Ref.unlock
set ShowMessage to 0
endif
endif
end
short Button
short ShowMessage
begin OnActivate
if ShowMessage == 0
MessageBox "What match would you like to start?" "Daedra Match" "End Match"
set ShowMessage to 1
endif
if ShowMessage == 1
set Button to GetButtonPressed
if ( button == 0 )
ArenaDremora1Ref.moveto ArenaCreature1Marker
ArenaClannfear1Ref.moveto ArenaCreature2Marker
ArenaScamp1Ref.moveto ArenaCreature3Marker
ArenaGate1Ref.lock 100
ArenaGate2Ref.lock 100
set ShowMessage to 0
elseif ( button == 1 )
ArenaDremora1Ref.resurrect
ArenaClannfear1Ref.resurrect
ArenaScamp1Ref.resurrect
ArenaDremora1Ref.moveto DaedraCellMarker1Ref
ArenaClannfear1Ref.moveto DaedraCellMarker1Ref
ArenaScamp1Ref.moveto DaedraCellMarker1Ref
ArenaGate1Ref.unlock
ArenaGate2Ref.unlock
set ShowMessage to 0
endif
endif
end
Thanks in advance!