|
  |
~[Common Event in Menu]~ version 1.0, Repost since I accidently deleted the old one :( |
|
|
|
|
Jun 7 2008, 02:05 AM
|

Because Tomorrow Will Surely Come...

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 , so this is to repost the old one.
Features
Enable usage of common event from the main menu
Script
Download below :
MenuCommonEventScript.txt ( 5.79K )
Number of downloads: 243 m
Or copy from spoiler below :
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 
Terms and Conditions
Credit to me, puppeto4.
Do not redistribute this script without my permission.
cheers,puppeto4.
__________________________
|
|
|
|
|
|
|
|
  |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
RPG RPG Revolution is an Privacy
Policy and Legal
|
|