Okay I know the title makes little to no sense but let me explain.
I'm making a point and click/visual novel style game using vx ace because I literally don't have the funds for a new software, so because of this a lot of the time I push the boundaries of the software, but this time I can't seem to figure it out, but I also don't fully believe it's possible.
I'm using a laundry list of scripts, but the important ones are Shaz's Super Simple Mouse System ( https://forums.rpgmakerweb.com/index.php?threads/amaranths-super-simple-mouse-system-for-ace.17829/ ) and Regendo's Menu Screen while Message.
I can't find a link anymore, but here's the code:
Using these scripts, and I'm willing to use as many as needed, I want to make it so I can click on an event that will bring up the normal menu, and one that brings up a save menu while another event is displaying a message. I have everything working as intended, except I can't get it to work while a message is being displayed. I don't think there's any way around this, but I figured I'd ask anyway. Any info is appreciated and I can give more info if needed. Thank you!
I'm making a point and click/visual novel style game using vx ace because I literally don't have the funds for a new software, so because of this a lot of the time I push the boundaries of the software, but this time I can't seem to figure it out, but I also don't fully believe it's possible.
I'm using a laundry list of scripts, but the important ones are Shaz's Super Simple Mouse System ( https://forums.rpgmakerweb.com/index.php?threads/amaranths-super-simple-mouse-system-for-ace.17829/ ) and Regendo's Menu Screen while Message.
I can't find a link anymore, but here's the code:
Ruby:
#===================================
# MenuScreen While Message (MSWM)
#===================================
# by bStefan aka. regendo
# by request from AABattery
# : http://www.rpgmakervxace.net/index.php?/user/608-aabattery/
# please give credit if used
# for use with RMVX ACE
#===================================
# Call Scene_Menu while a message
# : is being displayed
#===================================
# implement over Main
#===================================
# customize:
# : add Scenes you don't want the
# : script to happen to NOCALLMENU
# : (like Scene_Battle, which would
# : be really annoying)
#===================================
module Regendo
unless @scripts
@scripts = Hash.new
def self.contains?(key)
@scripts[key] == true
end
end
@scripts["Menu_during_Message"] = true
module Menu_during_Message
#=======
#CONFIG
#=======
NOCALLMENU = [Scene_Battle] #scenes in which call_menu shall not work.
BUTTON = Input::B #which button will trigger the menu?
end
end
class Window_Message < Window_Base
BUTTON = Regendo::Menu_during_Message::BUTTON
NOCALLMENU = Regendo::Menu_during_Message::NOCALLMENU
alias update_old update
def update
update_old
call_menu if Input.trigger?(BUTTON) && !forbidden_scene_by_regendo
end
def call_menu
Sound.play_ok
SceneManager.call(Scene_Menu)
Window_MenuCommand::init_command_position
end
def input_pause
self.pause = true
wait(10)
case BUTTON
when Input::B
Fiber.yield until Input.trigger?(:C)
when Input::C
Fiber.yield until Input.trigger?(:B)
else
Fiber.yield until Input.trigger?(:B) || Input.trigger?(:C)
end
Input.update
self.pause = false
end
def forbidden_scene_by_regendo
return false unless NOCALLMENU
NOCALLMENU.any? do |scene|
SceneManager.scene_is?(scene)
end
end
end
Using these scripts, and I'm willing to use as many as needed, I want to make it so I can click on an event that will bring up the normal menu, and one that brings up a save menu while another event is displaying a message. I have everything working as intended, except I can't get it to work while a message is being displayed. I don't think there's any way around this, but I figured I'd ask anyway. Any info is appreciated and I can give more info if needed. Thank you!