Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> ~[Common Event in Menu]~ version 1.0, Repost since I accidently deleted the old one :(
YanXie
post Jun 7 2008, 02:05 AM
Post #1


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




Common Event in Menu

Version 1.0
Author puppeto4
Release Date 15/04/2008



Introduction

I accidently deleted my old topic on this script sad.gif , so this is to repost the old one.


Features

Enable usage of common event from the main menu


Script

Download below :

Attached File  MenuCommonEventScript.txt ( 5.79K ) Number of downloads: 243
m

Or copy from spoiler below :

[Show/Hide] MenuCommonEventScript
CODE
#============================================================================
# ** Common Event in Menu
#----------------------------------------------------------------------------
# Author  : puppeto4 (puppeto5@yahoo.com)
# Version : 1.0
# Date    : 15th April 2008
# About   : While browsing through RRR,I saw someone talking about using common
#           event in the menu,and knowing that it is easily doable,I start
#           writing this and finish in like 5 minutes.I know this would be
#           usefull to people that can't script,and eventer.
#============================================================================


#==============================================================================
# ** Puppeto
#------------------------------------------------------------------------------
#  This module defines terms and ID that are used for the common event in the
#  menu.
#==============================================================================

module Puppeto

#==============================================================================
#    Start edit here.
#------------------------------------------------------------------------------
  
  # ** Menu Screen
  # Change the value below for the text that you want for the common event name
  CommonMenu01 = "CHUTNEY"
  
  CommonMenu02 = "Popadom"
  
  CommonMenu03 = "Main Course"
  
  # ** Common Event ID for the menu
  # Change the value below to the common event ID that you want to use
  CommonMenuID01 = 001
  
  CommonMenuID02 = 002
  
  CommonMenuID03 = 003
end
#==============================================================================
# ** End of module Puppeto
#    Edit end here.
#------------------------------------------------------------------------------

#==============================================================================
# ** Scene_File
#------------------------------------------------------------------------------
#  This class performs the save and load screen processing.
#==============================================================================

class Scene_File < Scene_Base
  #--------------------------------------------------------------------------
  # * Return to Original Screen
  #--------------------------------------------------------------------------
  def return_scene
    if @from_title
      $scene = Scene_Title.new
    elsif @from_event
      $scene = Scene_Map.new
    else
      $scene = Scene_Menu.new(7)
    end
  end
end

#==============================================================================
# ** Scene_End
#------------------------------------------------------------------------------
#  This class performs game end screen processing.
#==============================================================================

class Scene_End < Scene_Base
  #--------------------------------------------------------------------------
  # * Return to Original Screen
  #--------------------------------------------------------------------------
  def return_scene
    $scene = Scene_Menu.new(8)
  end
end

#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs the menu screen processing.
#==============================================================================

class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Vocab::item
    s2 = Vocab::skill
    s3 = Vocab::equip
    s4 = Vocab::status
    s5 = Puppeto::CommonMenu01
    s6 = Puppeto::CommonMenu02
    s7 = Puppeto::CommonMenu03
    s8 = Vocab::save
    s9 = Vocab::game_end
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8, s9])
    @command_window.index = @menu_index
    if $game_party.members.size == 0          # If number of party members is 0
      @command_window.draw_item(0, false)     # Disable item
      @command_window.draw_item(1, false)     # Disable skill
      @command_window.draw_item(2, false)     # Disable equipment
      @command_window.draw_item(3, false)     # Disable status
    end
    if $game_system.save_disabled             # If save is forbidden
      @command_window.draw_item(7, false)     # Disable save
    end
  end
  #--------------------------------------------------------------------------
  # * Update Command Selection
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 7
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 7
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0      # Item
        $scene = Scene_Item.new
      when 1,2,3  # Skill, equipment, status
        start_actor_selection
      when 4      # Common Event 01
        $game_temp.common_event_id = Puppeto::CommonMenuID01
        $scene = Scene_Map.new
      when 5      # Common Event 02
        $game_temp.common_event_id = Puppeto::CommonMenuID02
        $scene = Scene_Map.new
      when 6      # Common Event 03
        $game_temp.common_event_id = Puppeto::CommonMenuID03
        $scene = Scene_Map.new        
      when 7      # Save
        $scene = Scene_File.new(true, false, false)
      when 8      # End Game
        $scene = Scene_End.new
      end
    end
  end
end



Customization

Change value on line 29, 31, 33, 37, 39, 41 to your need.

Compatibility

Won't be compatible with script that use "create_command_window" and "update_command_selection"
as this script rewrite those methods.


Screenshot

Not needed :l


DEMO

Not needed.

Installation

Copy and paste in a new script page below material section but above main


FAQ

Don't remember the old one sad.gif


Terms and Conditions

Credit to me, puppeto4.

Do not redistribute this script without my permission.


cheers,puppeto4. wink.gif




__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Tris
post Jun 13 2008, 12:20 PM
Post #2


Level 7
Group Icon

Group: Member
Posts: 97
Type: Scripter
RM Skill: Beginner




i dont really understand whats this is used for
Go to the top of the page
 
+Quote Post
   
Twilight27
post Jun 16 2008, 12:29 PM
Post #3


Level 19
Group Icon

Group: Revolutionary
Posts: 371
Type: Event Designer
RM Skill: Beginner




Maybe like, for example, to cast spells. Ever played golden sun? You could have casted psynergy skills from the menu, which would thus affect the outside world in some way.


__________________________

Fall to the power of the Emo!
We have cookies!


Notice!! Check out my topic (http://www.rpgrevolution.com/forums/index.php?showtopic=45736&st=0#entry454175) if you're interested in helping me make a script that limits the number of characters & items you use in battle AND also an item durability feature! Thanks for any help in advance!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 07:54 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker