Project1
标题:
弄了捕捉召唤系统后与cp条脚本冲突
[打印本页]
作者:
875443522
时间:
2011-6-21 12:48
标题:
弄了捕捉召唤系统后与cp条脚本冲突
#--------------------------------------------------------------------------
# ● 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)
和捕捉召唤脚本除了冲突,一按召唤技能出现的不是捕捉到的敌人而是候补的成员,然后就跳出说这个错误。= =对了我还有弄角色仓库 dsu_plus_rewardpost_czw
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1