Project1
标题:
有没有办法像逆转裁判一样在事件中途打开道具栏?
[打印本页]
作者:
keezhang714
时间:
2013-1-6 09:58
标题:
有没有办法像逆转裁判一样在事件中途打开道具栏?
我试过用并行处理实现“当XX键被按下时,打开道具栏”。但是这样并不能像是逆转裁判一样在会话的途中打开道具栏。
请问有没有更好的方法能实现逆转裁判一样的功能?
作者:
Sion
时间:
2013-1-6 10:52
事件——信息——物品选择处理,默认的只能选择重要物品,使用时请确保可以选择重要物品在菜单中
是可以使用的(即使使用后也没有什么效果)。
作者:
喵呜喵5
时间:
2013-1-26 20:31
本帖最后由 喵呜喵5 于 2014-8-1 18:29 编辑
#===================================
# by bStefan aka. regendo
# by request from AABattery
# : [url]http://www.rpgmakervxace.net/index.php?/user/608-aabattery/[/url]
# 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
if NOCALLMENU
a = NOCALLMENU.any? do |scene|
SceneManager.scene_is?(scene)
end
a
else
false
end
end
end
复制代码
作者:
774741359
时间:
2013-1-26 21:13
好无聊
#===============翻译=================
#来自:bStefan aka. regendo
#来自:request from AABattery
#网址:http://www.rpgmakervxace.net/index.php?/user/608-aabattery/
#如果你用VX ACE使用该脚本请给好评
#==================================================
# 当信息框显示的时候呼叫菜单
#==================================================
# 作用于Main后
#==================================================
# 定制:
# :在你不想添加场景的时候
# :脚本发生无法呼叫菜单的时候
# :比如场景战斗, 那真让人讨厌)
#==================================================
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
#==================================================
#配置
#==================================================
NOCALLMENU = [Scene_Battle] #scenes in which call_menu shall not work.
BUTTON = Input::B #which button will trigger the menu?
end
end
#==================================================
#Window_Message
#==================================================
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
if NOCALLMENU
a = NOCALLMENU.any? do |scene|
SceneManager.scene_is?(scene)
end
a
else
false
end
end
end
复制代码
作者:
xggzga117
时间:
2013-1-27 11:57
脚本看不懂……
但沙发的说法是木有错滴……
(神马?你想用回复药?我不会……)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1