按A键快进对话那里,“先建立一个并行事件”是在哪里建呢?
對話會翻一頁的問題的两个解决方法那里,我按照教程改了脚本,但没有效果??
在当前地图随便一格建?
是说每个地图里都要建一个?
#==============================================================================
# ■ Window_Message
#------------------------------------------------------------------------------
# 显示文章的信息窗口。
#==============================================================================
class Window_Message < Window_Selectable
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
super
# 渐变的情况下
if @fade_in
self.contents_opacity += 24
if @input_number_window != nil
@input_number_window.contents_opacity += 24
end
if self.contents_opacity == 255
@fade_in = false
end
return
end
# 输入数值的情况下
if @input_number_window != nil
@input_number_window.update
# 确定
if Input.trigger?(Input::C)
$game_system.se_play($data_system.decision_se)
$game_variables[$game_temp.num_input_variable_id] =
@input_number_window.number
$game_map.need_refresh = true
# 释放输入数值窗口
@input_number_window.dispose
@input_number_window = nil
terminate_message
end
return
end
# 显示信息中的情况下
if @contents_showing
# 如果不是在显示选择项中就显示暂停标志
if $game_temp.choice_max == 0
self.pause = true
end
# 取消
if Input.trigger?(Input::B)
if $game_temp.choice_max > 0 && $game_temp.choice_start > 0
$game_temp.choice_max = 0
$game_temp.choice_start = 99
$game_system.map_interpreter.index=$game_system.map_interpreter.index - 2
while($game_system.map_interpreter.list[$game_system.map_interpreter.index].code == 401)
$game_system.map_interpreter.index=$game_system.map_interpreter.index - 1
end
else
$game_system.map_interpreter.index=$game_system.map_interpreter.index - 1
while($game_system.map_interpreter.list[$game_system.map_interpreter.index].code == 401)
$game_system.map_interpreter.index=$game_system.map_interpreter.index - 1
end
end
$scene = Scene_Menu.new
end
# 确定
if Input.trigger?(Input::C)
if $game_temp.choice_max > 0
$game_system.se_play($data_system.decision_se)
$game_temp.choice_proc.call(self.index)
end
terminate_message
end
return
end
# 在渐变以外的状态下有等待显示的信息与选择项的场合
if @fade_out == false and $game_temp.message_text != nil
@contents_showing = true
$game_temp.message_window_showing = true
reset_window
refresh
Graphics.frame_reset
self.visible = true
self.contents_opacity = 0
if @input_number_window != nil
@input_number_window.contents_opacity = 0
end
@fade_in = true
return
end
# 没有可以显示的信息、但是窗口为可见的情况下
if self.visible
@fade_out = true
self.opacity -= 48
if self.opacity == 0
self.visible = false
@fade_out = false
$game_temp.message_window_showing = false
end
return
end
end
end
class Interpreter
def index
return @index
end
def index=(index)
@index = index
end
def list
return @list
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |