Group: Revolutionary
Posts: 301
Type: Artist
RM Skill: Beginner
One Person Menu
Version: See scripts for version numbers Author: DoctorTodd Release Date: See scripts for date
Platform: Rpg Maker VX ACE
Introduction These are three versions of a one person script made by DoctorTodd. These scripts modify the default Rpg Maker VX ACE menu to fit one actor.
Version 1
Small version
Customization Allows you to determine windows location
Features
.Goes to first actor, no actor selection .Detailed status .Simple .Sprite on menu screen,
V1 Script
CODE
#=============================================================================== # # DT's One Person Menu # Author: DoctorTodd # Date (02/19/2012) # Type: (Menu) # Version: (1.0.0) (VXA) # Level: (Simple) # Email: BeaconGames2011@gmail.com # #=============================================================================== # # NOTES: 1)This script will only work with ace, you may find my VX version on # RMRK.net and the rpg maker web forums. # #=============================================================================== # # Description: A menu that is modified to work as if you are only using one # actor. # # Credits: Me (DoctorTodd) # #=============================================================================== # # Instructions # Paste above main. # #=============================================================================== # # Contact me for commercial use, other wise just credit me and don't repost # without my permission. # #=============================================================================== # # Editing begins 40 and ends on 59. # #=============================================================================== module DTOPM
#Window skin to use, place in system. WINDOW = ('Window')
#Status Window X SX = 200
#Status Window Y SY = 75
#Gold window X GX = 40
#Gold Window Y GY = 242
#Command Window X CX = 40
#Command Window Y CY = 75 end
class Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Start processing #-------------------------------------------------------------------------- def start super create_background create_command_window create_status_window create_gold_window end #-------------------------------------------------------------------------- # * Create Gold Window #-------------------------------------------------------------------------- def create_gold_window @gold_window = Window_Gold.new @gold_window.x = (DTOPM::GX) @gold_window.y = (DTOPM::GY) @gold_window.windowskin = Cache.system(DTOPM::WINDOW) @gold_window.height = 55 end #-------------------------------------------------------------------------- # * Create Status Window #-------------------------------------------------------------------------- def create_status_window @status_window = Window_MenuInfo.new((DTOPM::SX), (DTOPM::SY)) @status_window.windowskin = Cache.system(DTOPM::WINDOW) end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler(:item, method(:command_item)) @command_window.set_handler(:skill, method(:command_skill)) @command_window.set_handler(:equip, method(:command_equip)) @command_window.set_handler(:status, method(:command_status)) @command_window.set_handler(:save, method(:command_save)) @command_window.set_handler(:game_end, method(:command_game_end)) @command_window.set_handler(:cancel, method(:return_scene)) @command_window.x = (DTOPM::CX) @command_window.y = (DTOPM::CY) end end #-------------------------------------------------------------------------- # * [Item] Command #-------------------------------------------------------------------------- def command_item SceneManager.call(Scene_Item) end #-------------------------------------------------------------------------- # * [Equipment] Command #-------------------------------------------------------------------------- def command_equip @actor = $game_party.members[0] SceneManager.call(Scene_Equip) end #-------------------------------------------------------------------------- # * [Status] Command #-------------------------------------------------------------------------- def command_status @actor = $game_party.members[0] SceneManager.call(Scene_Status) end #-------------------------------------------------------------------------- # * [Save] Command #-------------------------------------------------------------------------- def command_save SceneManager.call(Scene_Save) end #-------------------------------------------------------------------------- # * [Exit Game] Command #-------------------------------------------------------------------------- def command_game_end SceneManager.call(Scene_End) end #-------------------------------------------------------------------------- # * [Skill] Command #-------------------------------------------------------------------------- def command_skill @actor = $game_party.members[0] SceneManager.call(Scene_Skill) end #=================================================================== # ** Window_MenuStatus #------------------------------------------------------------------------------ # This window displays the characters status on the menu screen. #==============================================================================
class Window_MenuInfo < Window_Base #-------------------------------------------------------------------------- # * Object Initialization # x : window X coordinate # y : window Y coordinate #-------------------------------------------------------------------------- def initialize(x, y) super(x, y, 300, 221) refresh end
class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- def self.init_command_position @@last_command_symbol = nil end #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) select_last end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands add_original_commands add_save_command add_game_end_command end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::skill, :skill, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) add_command(Vocab::status, :status, main_commands_enabled) end #-------------------------------------------------------------------------- # * For Adding Original Commands #-------------------------------------------------------------------------- def add_original_commands end #-------------------------------------------------------------------------- # * Add Save to Command List #-------------------------------------------------------------------------- def add_save_command add_command(Vocab::save, :save, save_enabled) end #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Get Activation State of Main Commands #-------------------------------------------------------------------------- def main_commands_enabled $game_party.exists end #-------------------------------------------------------------------------- # * Get Activation State of Formation #-------------------------------------------------------------------------- def formation_enabled $game_party.members.size >= 2 && !$game_system.formation_disabled end #-------------------------------------------------------------------------- # * Get Activation State of Save #-------------------------------------------------------------------------- def save_enabled !$game_system.save_disabled end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select_symbol(@@last_command_symbol) end end
Version 2
Stats Version with no sprite
Customization Allows you to determine windows location.
Features
.Goes to first actor, no actor selection .Full Status .Easy to use. .No sprite
V2 Script
CODE
#=============================================================================== # # DT's One Actor Full Status Menu # Author: DoctorTodd # Date (04/4/2012) # Type: (Menu) # Version: (1.0.1) (VXA) # Level: (Simple/Medium) # Email: Support@beacongames.com # #=============================================================================== # # NOTES: 1)This script will only work with ace. # #=============================================================================== # # Description: Removes all need for a status scene and works as if there is # only one actor. This is the official menu for Gold and Glory 2. # # Credits: Me (DoctorTodd) # #=============================================================================== # # Instructions # Paste above main. # #=============================================================================== # # Contact me for commercial use, other wise just credit me and don't repost # without my permission. # #=============================================================================== # # Editing begins 40 and ends on 59. # #=============================================================================== module DTOAFS
end #=============================================================================== # NOTE: Editing anything below without any skill will most likely give an error. #=============================================================================== class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- def self.init_command_position @@last_command_symbol = nil end #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) select_last end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 150 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands add_original_commands add_save_command add_game_end_command end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::skill, :skill, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) end #-------------------------------------------------------------------------- # * For Adding Original Commands #-------------------------------------------------------------------------- def add_original_commands end #-------------------------------------------------------------------------- # * Add Save to Command List #-------------------------------------------------------------------------- def add_save_command add_command(Vocab::save, :save, save_enabled) end #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Get Activation State of Main Commands #-------------------------------------------------------------------------- def main_commands_enabled $game_party.exists end #-------------------------------------------------------------------------- # * Get Activation State of Formation #-------------------------------------------------------------------------- def formation_enabled $game_party.members.size >= 2 && !$game_system.formation_disabled end #-------------------------------------------------------------------------- # * Get Activation State of Save #-------------------------------------------------------------------------- def save_enabled !$game_system.save_disabled end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select_symbol(@@last_command_symbol) end end #======================================================== # ** Window_MenuStatus #------------------------------------------------------------------------------ # This window displays the characters status on the menu screen. #==============================================================================
class Window_Gold < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, fitting_height(1)) refresh end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 150 end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear draw_currency_value(value, currency_unit, 4, 0, contents.width - 8) end #-------------------------------------------------------------------------- # * Get Party Gold #-------------------------------------------------------------------------- def value $game_party.gold end #-------------------------------------------------------------------------- # Get Currency Unit #-------------------------------------------------------------------------- def currency_unit Vocab::currency_unit end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh super end end
Version 3
Stats version with sprite
Customization Allows you to determine windows location and sprite.
Features
.Goes to first actor, no actor selection .Full Status .Easy to use. .Sprite Window
V3 Script
CODE
#=============================================================================== # # DT's One Actor Full Status Menu With Sprite # Author: DoctorTodd # Date (04/4/2012) # Type: (Menu) # Version: (1.0.1) (VXA) # Level: (Simple/Medium) # Email: Support@beacongames.com # #=============================================================================== # # NOTES: 1)This script will only work with ace. # #=============================================================================== # # Description: Removes all need for a status scene and works as if there is # only one actor. This is the official menu for Gold and Glory 2. # # Credits: Me (DoctorTodd) # #=============================================================================== # # Instructions # Paste above main. # #=============================================================================== # # Contact me for commercial use, other wise just credit me and don't repost # without my permission. # #=============================================================================== # # Editing begins 40 and ends on 59. # #=============================================================================== module DTOAFS
end #=============================================================================== # NOTE: Editing anything below without any skill will most likely give an error. #=============================================================================== class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- def self.init_command_position @@last_command_symbol = nil end #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) select_last end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 150 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands add_original_commands add_save_command add_game_end_command end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::skill, :skill, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) end #-------------------------------------------------------------------------- # * For Adding Original Commands #-------------------------------------------------------------------------- def add_original_commands end #-------------------------------------------------------------------------- # * Add Save to Command List #-------------------------------------------------------------------------- def add_save_command add_command(Vocab::save, :save, save_enabled) end #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Get Activation State of Main Commands #-------------------------------------------------------------------------- def main_commands_enabled $game_party.exists end #-------------------------------------------------------------------------- # * Get Activation State of Formation #-------------------------------------------------------------------------- def formation_enabled $game_party.members.size >= 2 && !$game_system.formation_disabled end #-------------------------------------------------------------------------- # * Get Activation State of Save #-------------------------------------------------------------------------- def save_enabled !$game_system.save_disabled end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select_symbol(@@last_command_symbol) end end #======================================================== # ** Window_MenuStatus #------------------------------------------------------------------------------ # This window displays the characters status on the menu screen. #==============================================================================
class Window_ActorSprite < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, 150, 80) refresh end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear @actor = $game_party.members[0] draw_actor_graphic(@actor, 60, 50) end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh super end end #============================================================================== # ** Window_Gold #------------------------------------------------------------------------------ # This window displays the party's gold. #==============================================================================
class Window_Gold < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, fitting_height(1)) refresh end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 150 end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear draw_currency_value(value, currency_unit, 4, 0, contents.width - 8) end #-------------------------------------------------------------------------- # * Get Party Gold #-------------------------------------------------------------------------- def value $game_party.gold end #-------------------------------------------------------------------------- # Get Currency Unit #-------------------------------------------------------------------------- def currency_unit Vocab::currency_unit end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh super end end
Compatibility Doesn't work with any main menu edits.
DEMO Don't need I would think.
Installation Instructions Plug n' Play?
FAQ Q. How do I get the play time window like in your picture?
A. it is a modded version of FlipelyFlip's playtime window here. I Will tell yah how to mod his script to make it fit the 2nd and 3rd menus but I will not post the script without his permission. http://www.rpgmakervxace.net/topic/768-playtime-window/
Terms and Conditions Free for non-commercial and commercial games. You must credit Doctor Todd If you use this in a commercial game he expects a free copy.
Credits Doctor Todd
Add ons 1. Animates sprite in window for version 3. Made by Mobychan credit must be given upon usage of this add on.
if @sprite_frame != 3 @sprite.src_rect.x = @sprite_frame * @sprite.src_rect.width else @sprite.src_rect.x = @sprite.src_rect.width end end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh self.contents.clear set_sprite_location(60, 18) end def update super @frames += 1 update_sprite if @frames == FRAME_DURATION end alias dis dispose unless $@ def dispose dis @sprite.dispose end end
This post has been edited by mooshra: Aug 5 2012, 06:37 PM