scn OptionsSCPTInt bMessageBoxInt iButtonBegin GameMode If bMessageBox Set iButton to GetButtonPressed If (iButton == -1) Return Else Set bMessageBox to 0 If (iButton == 0) ElseIf (iButton == 1) ElseIf (iButton == 2) ElseIf (iButton == 3) ElseIf (iButton == 4) ElseIf (iButton == 5) ElseIf (iButton == 6) ElseIf (iButton == 7) ElseIf (iButton == 8) ElseIf (iButton == 9); Back to main menu StartQuest OptionsQUST StopQuest Options2QUST EndIf EndIf Else ShowMessage Options2MESG Set bMessageBox to 1 EndIfEnd;===============================================Begin MenuMode 1001 If (FOSE == -1) Return Else If bMessageBox If IsKeyPressed 18; 'E' Out Con_CloseAllMenus Set bMessageBox to 0 StopQuest Options2QUST ElseIf IsKeyPressed 48; 'B' Back Con_CloseAllMenus Set bMessageBox to 0 StartQuest OptionsQUST StopQuest Options2QUST EndIf EndIf EndIfEndI've also posted about this http://www.gamesas.com/bgsforums/index.php?act=post&do=edit_post&f=46&t=1065590&p=15481203&st=0 and am convinced it's not the script as the vanilla console command, CloseAllMenus, exhibits the same issue. Any help or ideas about how to get this to work or how to trick the engine would be much appreciated. Thanks.
scn OptionsSCPTInt bMessageBoxInt iButtonBegin GameMode If bMessageBox Set iButton to GetButtonPressed If (iButton == -1) Return Else Set bMessageBox to 0 If (iButton == 0) ElseIf (iButton == 1) ElseIf (iButton == 2) ElseIf (iButton == 3) ElseIf (iButton == 4) ElseIf (iButton == 5) ElseIf (iButton == 6) ElseIf (iButton == 7) ElseIf (iButton == 8) ElseIf (iButton == 9); Back to main menu StartQuest OptionsQUST StopQuest Options2QUST EndIf EndIf Else ShowMessage Options2MESG Set bMessageBox to 1 EndIfEnd;===============================================Begin MenuMode 1001 If (FOSE == -1) Return Else If bMessageBox If IsKeyPressed 18; 'E' Out Con_CloseAllMenus Set bMessageBox to 0 StopQuest Options2QUST ElseIf IsKeyPressed 48; 'B' Back Con_CloseAllMenus Set bMessageBox to 0 StartQuest OptionsQUST StopQuest Options2QUST EndIf EndIf EndIfEndI've also posted about this http://www.gamesas.com/bgsforums/index.php?act=post&do=edit_post&f=46&t=1065590&p=15481203&st=0 and am convinced it's not the script as the vanilla console command, CloseAllMenus, exhibits the same issue. Any help or ideas about how to get this to work or how to trick the engine would be much appreciated. Thanks.
Begin OnActivateShowMessage DummyMsgMenuTapKey 45 ;for example...End
Begin MenuMode 1001 If (FOSE == -1) Return Else If bMessageBox If IsKeyPressed 18; 'E' Out Con_CloseAllMenus HiddenActivatorRef.Activate ;<<<=+=+= Set bMessageBox to 0 StopQuest Options2QUST ElseIf IsKeyPressed 48; 'B' Back Con_CloseAllMenus HiddenActivatorRef.Activate ;<<<=+=+= Set bMessageBox to 0 StartQuest OptionsQUST StopQuest Options2QUST EndIf EndIf EndIfEnd
Begin OnActivateShowMessage DummyMsgMenuTapKey 45;for example...EndWhenever you do your Con_CloseAllMenus, activate your hidden activator: