加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
脚本渣太心累...
由于脚本渣,做法也是相当低智商...
在Scene_Battle 4 update_phase4_step5定义显示伤害的那里,
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
end
end
之后,@phase4_step = 6 之前插入这一段
if @active_battler.current_action.skill_id == 252 && rand(100) < 10 target.add_state(55) $game_party.gain_item(target.id + 70, 1) catch_item = $data_items[(target.id + 70)] $game_system.windowskin_name = ("窗口外观 (106)") catch = Window_Base.new((640-300)/2,128,250,60) catch.contents = Bitmap.new(catch.width - 4, catch.height - 4) catch.contents.draw_text(0,0,240,32,"吸到了 ") Audio.se_play("Audio/SE/"+"006-System06",80,100) catch_bitmap = RPG::Cache.icon(catch_item.icon_name) catch.contents.blt(70, 0, catch_bitmap, Rect.new(0, 0, 24, 24), 255) catch.contents.draw_text(100, 0, 212, 32, catch_item.name, 0) catch.opacity = 160 for i in 0..30 Graphics.update end for i in 0..10 catch.opacity -= 30 catch.contents_opacity -= 30 Graphics.update end catch.dispose $game_system.windowskin_name = ($data_system.windowskin_name) end
if @active_battler.current_action.skill_id == 252 && rand(100) < 10
target.add_state(55)
$game_party.gain_item(target.id + 70, 1)
catch_item = $data_items[(target.id + 70)]
$game_system.windowskin_name = ("窗口外观 (106)")
catch = Window_Base.new((640-300)/2,128,250,60)
catch.contents = Bitmap.new(catch.width - 4, catch.height - 4)
catch.contents.draw_text(0,0,240,32,"吸到了 ")
Audio.se_play("Audio/SE/"+"006-System06",80,100)
catch_bitmap = RPG::Cache.icon(catch_item.icon_name)
catch.contents.blt(70, 0, catch_bitmap, Rect.new(0, 0, 24, 24), 255)
catch.contents.draw_text(100, 0, 212, 32, catch_item.name, 0)
catch.opacity = 160
for i in 0..30
Graphics.update
end
for i in 0..10
catch.opacity -= 30
catch.contents_opacity -= 30
Graphics.update
end
catch.dispose
$game_system.windowskin_name = ($data_system.windowskin_name)
end
252号技能是捉怪的技能,捉来的怪会变成物品.......怪的ID+70就是得到的物品的ID,两个的名字是一样的。
但是这样捉到的怪有经验给,想问怎么去掉被抓的怪的经验。
可以在Scene_Battle 2定义结束战斗那里做点事...?虽然试了一会还是没法去掉 |