@command_window = Window_Command.new(192, [s1, s2, s3, "公共事件", "移动到某地图"])
def update
# 更新命令视窗
@command_window.update
# 按下 C 键的情况下
if Input.trigger?(Input::C)
# 命令视窗的游标位置的分歧
case @command_window.index
when 0 # 新的游戏
command_new_game
when 1 # 读取进度
command_continue
when 2 # 结束游戏
command_shutdown
when 3
$game_system.map_interpreter.setup($data_common_events[公共事件ID].list, 0)
$game_system.map_interpreter.update
when 4
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 停止 BGM
Audio.bgm_stop
# 重置测量游戏时间用的画面计数器
Graphics.frame_count = 0
# 产生各种游戏物件
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
# 设定初期同伴位置
$game_party.setup_starting_members
# 设定初期位置的地图
$game_map.setup(地图ID)
# 主角向初期位置移动
$game_player.moveto(地图X, 地图Y)
# 更新主角
$game_player.refresh
# 执行地图设定的 BGM 与 BGS 的自动切换
$game_map.autoplay
# 更新地图 (执行并行事件)
$game_map.update
# 切换地图画面
$scene = Scene_Map.new
end
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |