class Game_Event
#--------------------------------------------------------------------------
# ● 设置事件页的设置
#--------------------------------------------------------------------------
def setup_page_settings
@tile_id = @page.graphic.tile_id
@character_name = @page.graphic.character_name
@character_index = @page.graphic.character_index
if @original_direction != @page.graphic.direction
@direction = @page.graphic.direction
@original_direction = @direction
@prelock_direction = 0
end
if @original_pattern != @page.graphic.pattern
@pattern = @page.graphic.pattern
@original_pattern = @pattern
end
@move_type = @page.move_type
@move_speed = @page.move_speed
@move_frequency = @page.move_frequency
@move_route = @page.move_route
@move_route_index = 0
@move_route_forcing = false
@walk_anime = @page.walk_anime
@step_anime = @page.step_anime
@direction_fix = @page.direction_fix
@through = @page.through
@priority_type = @page.priority_type
@trigger = @page.trigger
@list = @page.list
@list.each do |eve|
if eve.code == 101
add_character_face(eve) if @character_name != "" && has_face?(eve)
end
end
@interpreter = @trigger == 4 ? Game_Interpreter.new : nil
end
#--------------------------------------------------------------------------
# ● 判断对话时的人物头像是否存在
#--------------------------------------------------------------------------
def has_face?(eve)
return true if @character_name.include?("People") && @character_name <= "People4"
return true if @character_name.include?("Actor")
return true if @character_name.include?("Evil")
return true if @character_name.include?("Spiritual")
return false
end
#--------------------------------------------------------------------------
# ● 自动添加对话时的人物头像
#--------------------------------------------------------------------------
def add_character_face(eve)
eve.parameters[0], eve.parameters[1] = @character_name, @character_index
end
end