#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
super
# 光标右
if Input.repeat?(Input::RIGHT)
$game_system.se_play($data_system.cursor_se)
@index += 1
#----------------------------
if $game_party.actors[@index].state?(狀態id)
@index += 1
end
#----------------------------
@index %= $game_party.actors.size
end
# 光标左
if Input.repeat?(Input::LEFT)
$game_system.se_play($data_system.cursor_se)
@index += $game_party.actors.size - 1
#----------------------------
if $game_party.actors[@index].state?(狀態id)
@index -= 1
end
#----------------------------
@index %= $game_party.actors.size
end
# 设置活动块坐标
if self.actor != nil
self.x = self.actor.screen_x
self.y = self.actor.screen_y
end
end
#--------------------------------------------------------------------------
# ● 开始选择角色
#--------------------------------------------------------------------------
def start_actor_select
# 生成角色箭头
@actor_arrow = Arrow_Actor.new(@spriteset.viewport2)
#----------------------------
if $game_party.actors[@actor_index].state?(狀態id)
if @actor_index == 0
@actor_arrow.index = 1
elsif @actor_index == $game_party.actors.size - 1
@actor_arrow.index = @actor_index - 1
end
else
@actor_arrow.index = @actor_index
end
#----------------------------
# 关联帮助窗口
@actor_arrow.help_window = @help_window
# 无效化角色指令窗口
@actor_command_window.active = false
@actor_command_window.visible = false
end
以下引用stella于2008-2-27 13:00:33的发言:
测试了一下,当待命角色是队伍中的2号和3号角色时,2号可以跳过去,3号就跳不过去了,而且按左键回来就都能选得到。。Arrow_Actor里面也要把 @index 全部改成@actor_index ??
[本贴由作者于 2008-2-27 13:03:41 最后编辑]
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |