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