OBSE or CS command to quit to the Main menu?

Post » Thu May 03, 2012 2:00 pm

Is there an OBSE or CS command to force the player (either from GameMode or MenuMode) to the Main Menu?
User avatar
Chelsea Head
 
Posts: 3433
Joined: Thu Mar 08, 2007 6:38 am

Post » Thu May 03, 2012 6:26 pm

I don't think so. Even All Natural uses the kill player technique to force the player to quit if they don't have the ini file installed. So as far as I know, that's the only option.
User avatar
koumba
 
Posts: 3394
Joined: Thu Mar 22, 2007 8:39 pm

Post » Fri May 04, 2012 4:52 am

I wonder if the technique used by http://tes.nexusmods.com/downloads/file.php?id=10812 would be useful to you.

As far as I understand, it simulates the keystrokes necessary to reach a certain objective while navigating thru menus. Like, in the initial menu (Continue, New, Load, etc) the spacebar/RMB automatically clicks "Continue" and, them, it clicks 'yes' to the annoying "Continue your last save game? Y/N".

I am not familiar with the details, but you might take a look.
User avatar
Rachel Eloise Getoutofmyface
 
Posts: 3445
Joined: Mon Oct 09, 2006 5:20 pm

Post » Fri May 04, 2012 1:57 am

Thanks for the reply guys. What I need it for is to force the player to return to the Main Menu after dying. Loading a game from within the game after dying crashes the game due to my Battle fatigue and injury mod. However it doesn't crash the game when loaded from the Main Menu.

I suspect that something is not cleaned-up properly from the previous game when loading from with in the game but is when loading from the Main Menu.

I may try to find a way to disable the Load Menu button instead.

To fix Battle fatgue and injuries, I need to move my tokenised script given to each actor to an iterative Quest driven script. I suspect that some inactive actor somewhere has the token still and though it shouldn't run it does. Even though I have clean-up/removal measures (actor is 5000 units away from the player, the actor dies, etc...) it doesn't catch all actors. Edit: And that fix may take a while.

Thanks, guys! Much appreciated!
User avatar
Jeff Turner
 
Posts: 3458
Joined: Tue Sep 04, 2007 5:35 pm

Post » Thu May 03, 2012 4:13 pm

This should work:

Begin Gamemodeif ( yourtrigger )    set backtomenu to 1    TapKey 1endifEndBegin Menumodeif menumode 1013 && backtomenu    ClickMenuButton "pause_background\pause_quit_button" 1013endifif menumode 1001 && backtomenu    set backtomenu to 0    ClickMenuButton "background\button_2" 1001endifEnd
User avatar
Roy Harris
 
Posts: 3463
Joined: Tue Sep 11, 2007 8:58 pm

Post » Thu May 03, 2012 8:09 pm

This should work:
Niiice! Thanks, matH!
User avatar
Harinder Ghag
 
Posts: 3405
Joined: Wed Jan 17, 2007 11:26 am


Return to IV - Oblivion