Equip menu help!
RGSS3 Script RequestsSure, I'm working on it. You just have to remove the parts of the script you don't need.
ok cool thank you. 😀
Is that Rukia Kuchiki as your profile picture?
Ah, no. It's a random person xD
Anyway, how do you plan on changing equipment in your survival game? You've removed the equipment changing box (the bottom one)
Anyway, how do you plan on changing equipment in your survival game? You've removed the equipment changing box (the bottom one)
Oops, i just realised yeah. i just wanna remove the stats box lol.
Where'd you like the equipment window placed, then?
I think i might just leave it at the bottom still.
EDIT: there should be some space left.
EDIT: there should be some space left.
Paste this script under Materials, above main. There are two customization options that you can change.
Code:
module EQedit # The width of the equipped items window, in pixels SlotWidth = 320 # The width of the menu (the equip/optomize/clear one). Also in pixels. ChangeEquipWidth = 160endclass Window_ECommand < Window_Command #-------------------------------------------------------------------------- # * 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 #-------------------------------------------------------------------------- def row_max return 3 end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::equip2, :equip) add_command(Vocab::optimize, :optimize) add_command(Vocab::clear, :clear) endendclass Scene_Equip #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super create_help_window#~ create_status_window create_command_window create_slot_window create_item_window end #-------------------------------------------------------------------------- # * Create Status Window #--------------------------------------------------------------------------#~ def create_status_window#~ @status_window = Window_EquipStatus.new(0, @help_window.height)#~ @status_window.viewport = @viewport#~ @status_window.actor = @actor#~ end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window wx = 0 wy = @help_window.height ww = EQedit::ChangeEquipWidth @command_window = Window_ECommand.new(wx, wy, ww) @command_window.viewport = @viewport @command_window.help_window = @help_window @command_window.x = EQedit::SlotWidth @command_window.set_handler(:equip, method(:command_equip)) @command_window.set_handler(:optimize, method(:command_optimize)) @command_window.set_handler(:clear, method(:command_clear)) @command_window.set_handler(:cancel, method(:return_scene)) @command_window.set_handler(:pagedown, method(:next_actor)) @command_window.set_handler(:pageup, method(:prev_actor)) end #-------------------------------------------------------------------------- # * Create Slot Window #-------------------------------------------------------------------------- def create_slot_window wx = 0 wy = @help_window.height ww = EQedit::SlotWidth @slot_window = Window_EquipSlot.new(wx, wy, ww) @slot_window.viewport = @viewport @slot_window.help_window = @help_window @slot_window.status_window = @status_window @slot_window.actor = @actor @slot_window.set_handler(:ok, method(:on_slot_ok)) @slot_window.set_handler(:cancel, method(:on_slot_cancel)) end #-------------------------------------------------------------------------- # * Create Item Window #-------------------------------------------------------------------------- def create_item_window wx = 0 wy = @slot_window.y + @slot_window.height ww = Graphics.width wh = Graphics.height - wy @item_window = Window_EquipItem.new(wx, wy, ww, wh) @item_window.viewport = @viewport @item_window.help_window = @help_window @item_window.status_window = @status_window @item_window.actor = @actor @item_window.set_handler(:ok, method(:on_item_ok)) @item_window.set_handler(:cancel, method(:on_item_cancel)) @slot_window.item_window = @item_window end #-------------------------------------------------------------------------- # * [Change Equipment] Command #-------------------------------------------------------------------------- def command_equip @slot_window.activate @slot_window.select(0) end #-------------------------------------------------------------------------- # * [Ultimate Equipment] Command #-------------------------------------------------------------------------- def command_optimize Sound.play_equip @actor.optimize_equipments#~ @status_window.refresh @slot_window.refresh @command_window.activate end #-------------------------------------------------------------------------- # * [Remove All] Command #-------------------------------------------------------------------------- def command_clear Sound.play_equip @actor.clear_equipments#~ @status_window.refresh @slot_window.refresh @command_window.activate end #-------------------------------------------------------------------------- # * Slot [OK] #-------------------------------------------------------------------------- def on_slot_ok @item_window.activate @item_window.select(0) end #-------------------------------------------------------------------------- # * Slot [Cancel] #-------------------------------------------------------------------------- def on_slot_cancel @slot_window.unselect @command_window.activate end #-------------------------------------------------------------------------- # * Item [OK] #-------------------------------------------------------------------------- def on_item_ok Sound.play_equip @actor.change_equip(@slot_window.index, @item_window.item) @slot_window.activate @slot_window.refresh @item_window.unselect @item_window.refresh end #-------------------------------------------------------------------------- # * Item [Cancel] #-------------------------------------------------------------------------- def on_item_cancel @slot_window.activate @item_window.unselect end #-------------------------------------------------------------------------- # * Change Actors #-------------------------------------------------------------------------- def on_actor_change#~ @status_window.actor = @actor @slot_window.actor = @actor @item_window.actor = @actor @command_window.activate endend
Wow i was totally not expecting that! 😀 thankyou very much. It works great.
Ha I thought the same thing... I just happen to be watching Bleach (again) and did a double take at that pic xD
PussiCat, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/equip-menu-help.45814/

