Jump to content

minth

Member
  • Content Count

    7
  • Joined

  • Last visited

About minth

  • Rank
    Newbie

RPG Maker Information

  • RM Skill -
    Game Developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Good evening, you all. I am working in a Battle Window script and it's almost completed. But I have a problem, I want make a movable Actor Command window. Like that:. Although I have the video's script, it doesn't worked. Here the script:. After that, I also tried to use Moghunter's script, but I failed... Here the script:. Then, can you guys help me with my script? Because, I tried to modify my script countless times, but it isn't working... Here my script (I am modifying Ventwig's script):. EDIT: I already fix my problem.
  2. ♦ Alternative Menu Screen Author: minth Credits to: YesImAaron and Glasses Link to their script: https://www.rpgmakercentral.com/topic/30246-witchs-house-menu/ https://www.rpgmakercentral.com/topic/13167-simple-menu/ Features: - It has a simple design; - All the RPG commands (Item, Formation, Equip, etc., removable); - Background (removable). My script: #=============================================================================== # Alternative Menu Screen. # By: minth. # Credits to: YesImAaron and Glasses. #=============================================================================== # My script make an alternative screen. I utilized the YesImAaron and Glasses' # scripts as support for my script. # My script have all the menu options. You can delete the options that you # don´t want. # You have permission to change my script. # My script is working in 640x480 resolution. The resolution script: # # Graphics.resize_screen(640, 480). (put it in "Main") # # Don't use it if you don't want this (but you will need change some position # and size configurations). #=============================================================================== #=============================================================================== # * Changing window position #=============================================================================== module New_Menu # command window XPOS = 100 # position YPOS = 250 # position WIDTH = 450 # size end #=============================================================================== # * Creating the alternative window #=============================================================================== class Window_new_Menu < Window_HorzCommand #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y, width) @window_width = width super(x, y) end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width @window_width end #-------------------------------------------------------------------------- # * Get Digit Count (commands) #-------------------------------------------------------------------------- def col_max return 4 # if you delete some options, change that number end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list # you can change the order of the commands if you want add_command(Vocab::item, :item) add_command(Vocab::formation, :formation, formation_enabled) add_command(Vocab::skill, :skill) add_command(Vocab::equip, :equip) add_command(Vocab::status, :status) add_command(Vocab::save, :save, save_enabled) add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Get Activation State of Save #-------------------------------------------------------------------------- def save_enabled !$game_system.save_disabled end #-------------------------------------------------------------------------- # * Get Activation State of Formation #-------------------------------------------------------------------------- def formation_enabled $game_party.members.size >= 2 && !$game_system.formation_disabled end end class Scene_new_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing -> Create the command window #-------------------------------------------------------------------------- def start super create_command_window create_gold_window create_status_window # character window end #-------------------------------------------------------------------------- # * Create Commands #-------------------------------------------------------------------------- def create_command_window @command_window = Window_new_Menu.new(New_Menu::XPOS,New_Menu::YPOS,New_Menu::WIDTH) @command_window.set_handler(:item, method(:command_item)) @command_window.set_handler(:formation, method(:command_formation)) @command_window.set_handler(:skill, method(:command_personal)) @command_window.set_handler(:equip, method(:command_personal)) @command_window.set_handler(:status, method(:command_personal)) @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)) end #-------------------------------------------------------------------------- # * Create Gold Window #-------------------------------------------------------------------------- def create_gold_window @gold_window = Window_Gold.new @gold_window.x = 250 # position @gold_window.y = (Graphics.height - @gold_window.height)/ 1.45 # position end #-------------------------------------------------------------------------- # * Create Status Window (Characters) #-------------------------------------------------------------------------- def create_status_window @status_window = Window_MenuStatus.new(65, 120) # position end #-------------------------------------------------------------------------- # * [Item] Command #-------------------------------------------------------------------------- def command_item SceneManager.call(Scene_Item) end #-------------------------------------------------------------------------- # * [Skill], [Equipment] and [Status] Commands #-------------------------------------------------------------------------- def command_personal @status_window.select_last @status_window.activate @status_window.set_handler(:ok, method(:on_personal_ok)) @status_window.set_handler(:cancel, method(:on_personal_cancel)) end #-------------------------------------------------------------------------- # * [Formation] Command #-------------------------------------------------------------------------- def command_formation @status_window.select_last @status_window.activate @status_window.set_handler(:ok, method(:on_formation_ok)) @status_window.set_handler(:cancel, method(:on_formation_cancel)) end #-------------------------------------------------------------------------- # * [Save] Command #-------------------------------------------------------------------------- def command_save SceneManager.call(Scene_Save) end #-------------------------------------------------------------------------- # * [Exit Game] Command #-------------------------------------------------------------------------- def command_game_end SceneManager.call(Scene_End) end #-------------------------------------------------------------------------- # * [OK] Personal Command #-------------------------------------------------------------------------- def on_personal_ok case @command_window.current_symbol when :skill SceneManager.call(Scene_Skill) when :equip SceneManager.call(Scene_Equip) when :status SceneManager.call(Scene_Status) end end #-------------------------------------------------------------------------- # * [Cancel] Personal Command #-------------------------------------------------------------------------- def on_personal_cancel @status_window.unselect @command_window.activate end #-------------------------------------------------------------------------- # * Formation [OK] #-------------------------------------------------------------------------- def on_formation_ok if @status_window.pending_index >= 0 $game_party.swap_order(@status_window.index, @status_window.pending_index) @status_window.pending_index = -1 @status_window.redraw_item(@status_window.index) else @status_window.pending_index = @status_window.index end @status_window.activate end #-------------------------------------------------------------------------- # * Formation [Cancel] #-------------------------------------------------------------------------- def on_formation_cancel if @status_window.pending_index >= 0 @status_window.pending_index = -1 @status_window.activate else @status_window.unselect @command_window.activate end end #-------------------------------------------------------------------------- # * Return to Calling Scene #-------------------------------------------------------------------------- def return_scene SceneManager.call(Scene_Map) end end class Scene_Map < Scene_Base #-------------------------------------------------------------------------- # * Call Menu Screen in the Game #-------------------------------------------------------------------------- alias :new_call_menu call_menu def call_menu new_call_menu Sound.play_ok SceneManager.call(Scene_new_Menu) Window_MenuCommand::init_command_position end end #============================================================================== # * Status Window Configurations #============================================================================== class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # * Window Width #-------------------------------------------------------------------------- def window_width Graphics.width - 128 # size end #-------------------------------------------------------------------------- # * Window Height #-------------------------------------------------------------------------- def window_height 96 + standard_padding * 2 # size end #-------------------------------------------------------------------------- # * Get Digit Count (formation) #-------------------------------------------------------------------------- def col_max return 4 end #-------------------------------------------------------------------------- # * Informations #-------------------------------------------------------------------------- def draw_item(index) actor = $game_party.members[index] enabled = $game_party.battle_members.include?(actor) rect = item_rect(index) draw_item_background(index) draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled) end #-------------------------------------------------------------------------- # * Get Rectangle for Drawing Items (Selectable window) #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width rect.height = item_height + 72 # selectable window height rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect end end #=============================================================================== # * Create a background for menu (it will also create a background for the # save screen. If you don't want background, delete it.) #=============================================================================== class Scene_MenuBase < Scene_Base #-------------------------------------------------------------------------- # * Creating a Background #-------------------------------------------------------------------------- def create_background @background_sprite = Sprite.new @background_sprite.bitmap = Cache.picture("Menu Background") # Put your background here end #-------------------------------------------------------------------------- # * Termination Processing #-------------------------------------------------------------------------- def terminate super dispose_background end #-------------------------------------------------------------------------- # * Free Background #-------------------------------------------------------------------------- def dispose_background @background_sprite.dispose end end Screenshots: When you utilize my script, Give Credits!!
  3. minth

    Help me with my script.

    For the people that want the full script: #========================================================================= # Credits option with scrolling image. # Made by: minth. # Credits to: Rikifive and roninator2 for helping me. # --------------------------------------------------- # When you use the script, use the background with the same resolution # of the Rpg Maker Vx Ace (544x416) or the resized Rpg Maker Vx Ace (640x480). #========================================================================= class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- alias new_make_command_list make_command_list def make_command_list add_command(Vocab::new_game, :new_game) add_command(Vocab::continue, :continue, continue_enabled) add_command("Credits", :credits) add_command(Vocab::shutdown, :shutdown) end end class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def create_command_window @command_window = Window_TitleCommand.new @command_window.set_handler(:new_game, method(:command_new_game)) @command_window.set_handler(:continue, method(:command_continue)) @command_window.set_handler(:credits, method(:command_credits)) @command_window.set_handler(:shutdown, method(:command_shutdown)) end #------------------------------------------------------------------- # * [Credits] Command #-------------------------------------------------------------------------- def command_credits close_command_window SceneManager.call(Scene_Credits) end end class Scene_Credits < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing -> Start Windows #-------------------------------------------------------------------------- def start super create_all_windows end #-------------------------------------------------------------------------- # * Pre-Termination Processing -> Close Windows #-------------------------------------------------------------------------- def pre_terminate Graphics.fadeout(5) # whatever number you want end #-------------------------------------------------------------------------- # * Termination Processing -> Close Scrolling Text #-------------------------------------------------------------------------- def terminate super dispose_background # now your dispose method will be run dispose_scrolling_text # for the scrolling sprite end #-------------------------------------------------------------------------- # * Dispose Scrolling Text #-------------------------------------------------------------------------- def dispose_scrolling_text @scrolling_text.bitmap.dispose @scrolling_text.dispose end #-------------------------------------------------------------------------- # * Create All Windows #-------------------------------------------------------------------------- def create_all_windows create_text create_command_window_credits end #-------------------------------------------------------------------------- # * Create Background #-------------------------------------------------------------------------- def create_background super @background_text = Sprite.new @background_sprite.bitmap = Cache.picture("") # don't put background end #-------------------------------------------------------------------------- # * Create Scrolling Text #-------------------------------------------------------------------------- def create_text @scrolling_text = Sprite.new @scrolling_text.bitmap = Cache.picture("Credits_Image") # Put your Credits picture @scrolling_text.y = Graphics.height end #-------------------------------------------------------------------------- # * Update Scrolling Text #-------------------------------------------------------------------------- def update super @scrolling_text.y -= 1 # to move it 1 pixel UPWARDS per frame # you can change the number to change the velocity end #-------------------------------------------------------------------------- # * Call Command Window in the Credits #-------------------------------------------------------------------------- def create_command_window_credits @command_window_credits = Window_Title.new @command_window_credits.set_handler(:to_title, method(:command_to_title)) end #-------------------------------------------------------------------------- # * [Go to Title] Command in the Credits #-------------------------------------------------------------------------- def command_to_title fadeout_all SceneManager.goto(Scene_Title) end end #-------------------------------------------------------------------------- # Create a window for the credits #-------------------------------------------------------------------------- class Window_Title < Window_Command #-------------------------------------------------------------------------- # * ADD "GO BACK TO THE TITLE" #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::to_title, :to_title) end #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) update_placement self.openness = 0 open end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Update Window Position #-------------------------------------------------------------------------- def update_placement self.x = (Graphics.width - width) / 2 self.y = (Graphics.height * 1.4 - height) / 2 end end
  4. minth

    Help me with my script.

    It's working! Thank you very much! I will give credits to you guys that help me!
  5. minth

    Help me with my script.

    Ok, now, i change my script. I remove desnecessary things and change some positions. Instead a scrolling image, i made a scrolling text. But, now, i don't know how to add text. I tried already put the script: $gameMessage.add("Blah blah blah."), but it isn't working. My code: class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- alias new_make_command_list make_command_list def make_command_list add_command(Vocab::new_game, :new_game) add_command(Vocab::continue, :continue, continue_enabled) add_command("Credits", :credits) add_command(Vocab::shutdown, :shutdown) end end class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def create_command_window @command_window = Window_TitleCommand.new @command_window.set_handler(:new_game, method(:command_new_game)) @command_window.set_handler(:continue, method(:command_continue)) @command_window.set_handler(:credits, method(:command_credits)) @command_window.set_handler(:shutdown, method(:command_shutdown)) end #------------------------------------------------------------------- # * [Credits] Command #-------------------------------------------------------------------------- def command_credits close_command_window SceneManager.call(Scene_Credits) end end class Scene_Credits < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing --> Start windows #-------------------------------------------------------------------------- def start super create_all_windows end #-------------------------------------------------------------------------- # * Pre-Termination Processing --> close windows #-------------------------------------------------------------------------- def pre_terminate Graphics.fadeout(10) end #-------------------------------------------------------------------------- # * Create All Windows #-------------------------------------------------------------------------- def create_all_windows create_scroll_text_window create_command_window end #-------------------------------------------------------------------------- # * Create Background #-------------------------------------------------------------------------- def create_background super @background_text = Sprite.new @background_sprite.bitmap = Cache.picture("1280x720-pastel-blue-solid-color-background") end #-------------------------------------------------------------------------- # * Free Background #-------------------------------------------------------------------------- def dispose_background @background_sprite.bitmap.dispose @background_sprite.dispose end #-------------------------------------------------------------------------- # * Create Scrolling Message #-------------------------------------------------------------------------- def create_scroll_text_window @scroll_text_window = Window_ScrollText.new @scroll_text_window.x = 240 # whatever number you want @scroll_text_window.y = 240 # whatever number you want @scroll_text_window = $gameMessage.add("Blah blah blah.") wait_for_message end #-------------------------------------------------------------------------- # * Call Command Window in the Credits #-------------------------------------------------------------------------- def create_command_window @command_window = Window_GameEnd.new @command_window.set_handler(:to_title, method(:command_to_title)) @command_window.x = 240 # whatever number you want @command_window.y = 360 # whatever number you want end #-------------------------------------------------------------------------- # * [Go to Title] Command in the Credits #-------------------------------------------------------------------------- def command_to_title fadeout_all SceneManager.goto(Scene_Title) end end Did i do something wrong? Help.
  6. minth

    Help me with my script.

    Thank you! It's working! I will search about the mentioned script.
  7. minth

    Help me with my script.

    Good evening, that's my first time writing a script, then i don't know advanced scripts. That is my script: class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * Create Command List --> ADD #-------------------------------------------------------------------------- alias new_make_command_list make_command_list def make_command_list add_command(Vocab::new_game, :new_game) add_command(Vocab::continue, :continue, continue_enabled) add_command("Credits", :credits) add_command(Vocab::shutdown, :shutdown) end end class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Start Processing --> CALL #-------------------------------------------------------------------------- def create_command_window @command_window = Window_TitleCommand.new @command_window.set_handler(:new_game, method(:command_new_game)) @command_window.set_handler(:continue, method(:command_continue)) @command_window.set_handler(:credits, method(:command_credits)) @command_window.set_handler(:shutdown, method(:command_shutdown)) end #-------------------------------------------------------------------------- # * Create Background --> creation #-------------------------------------------------------------------------- def create_story_contents super @background_text = Sprite.new end #------------------------------------------------------------------- # * [Credits] Command #-------------------------------------------------------------------------- def command_credits close_command_window SceneManager.call(Scene_Credits) end end class Scene_Credits < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing --> START* VERY IMPORTANT #-------------------------------------------------------------------------- def start super create_command_window end #-------------------------------------------------------------------------- # * Pre-Termination Processing --> COMMAND CLOSE #-------------------------------------------------------------------------- def pre_terminate super @command_window.close end def make_command_list add_command(Vocab::to_title, :to_title) end #-------------------------------------------------------------------------- # * Create Background --> call #-------------------------------------------------------------------------- def create_background super @background_sprite.bitmap = Cache.picture("video-credits-hero") end #-------------------------------------------------------------------------- # * Create Command Window in the Credits --> CALL #-------------------------------------------------------------------------- def create_command_window @command_window = Window_GameEnd.new @command_window.set_handler(:to_title, method(:command_to_title)) end #-------------------------------------------------------------------------- # * [Go to Title] Command in the Credits #-------------------------------------------------------------------------- def command_to_title @command_window.close fadeout_all SceneManager.goto(Scene_Title) end end class Window_GameEnd < Window_Command #-------------------------------------------------------------------------- # * GO BACK TO THE TITLE --> ADD #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::to_title, :to_title) end end I did a script to add a Credits Option. I made its option in the menu and its destination. When i play the game, it works like that: The script is working smoothly, but i would want a scrolling image and change the window position. Can you guys help me with my script? Thanks for hearing me.
×
Top ArrowTop Arrow Highlighted