Jump to content

Recommended Posts

Introduction

Using this script you can make it so that when the menu is called, a switch is turned on instead. You can still open the menu by using a [Open Menu Screen] event call. You can use the switch to create a common event in place of the menu, or anything else you want.

Script

 

#==============================================================================
# › Switch Menu ‹
#------------------------------------------------------------------------------
# Using this script you can make it so that when the menu is called, a
# switch is turned on instead. You can still open the menu by using a
# [Open Menu Screen] event call. You can use the switch to create a common
# event in place of the menu, or anthing else you want.
#------------------------------------------------------------------------------
# by Zerbu
#==============================================================================

$imported = {} if $imported.nil?
$imported["SwitchMenu"] = true

#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
module SwitchMenu
  #============================================================================
  # ♦ Switch ID ♦
  #----------------------------------------------------------------------------
  # Set the switch you want turned on~
  #============================================================================
  SWITCH_ID = 1
  #---
end
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# » Scene_Map
#==============================================================================
class Scene_Map
  #----------------------------------------------------------------------------
  # » overwrite method: call_menu
  #----------------------------------------------------------------------------
  def call_menu
	$game_switches[SwitchMenu::SWITCH_ID] = true
	@menu_calling = false
  end
  #---
end

 



Example
SwitchMenu.png?t=1328320520

Edited by Zerbu

Share this post


Link to post
Share on other sites

That seems pretty simple, but really effective.

 

I assume that this could be done for other menu's as well (as long as I don't screw it up), if I can, this could fix a lot of problems I have had with eventing before.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted