赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 631 |
最后登录 | 2014-8-25 |
在线时间 | 64 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 64 小时
- 注册时间
- 2011-5-1
- 帖子
- 33
|
#--------------------------------------------------------------------------
# ● CP条更新
#--------------------------------------------------------------------------
def refresh_cp
if @blank_window.disposed?
return
end
@blank_window.x = 128 - @info_viewport.ox
@basepic.x = 144 - @info_viewport.ox
for iii in $game_party.members + $game_troop.members
if iii.is_a?(Game_Actor)
if iii.weapon_id == 0
@cppic[iii].src_rect.set(96, 192, 24, 24)
else
icon_index = $data_weapons[iii.weapon_id].icon_index
@cppic[iii].src_rect.set(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
end
else
@cppic[iii].src_rect.set(312, 216, 24, 24)
end
if iii.hp > 0
@cppic[iii].visible = $CP可见
else
@cppic[iii].visible = false
end
if iii.waiting_time > 0
@cppic[iii].x = 132 + 384 * (iii.max_waiting_time - iii.waiting_time) / iii.max_waiting_time - @info_viewport.ox
@cppic[iii].y = 264 - 480 * (Graphics.frame_count % 2)
else
@cppic[iii].x = 132 + (iii.cp * 384 / 5000).to_i - @info_viewport.ox
@cppic[iii].y = 264
end
end
end
这里面的 @cppic[iii].src_rect.set(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
和捕捉召唤脚本除了冲突,一按召唤技能出现的不是捕捉到的敌人而是候补的成员,然后就跳出说这个错误。= =对了我还有弄角色仓库 |
|