Project1
标题:
版务临时占用
[打印本页]
作者:
禾西
时间:
2008-4-20 14:03
标题:
版务临时占用
1.腳本
def auto_reminding(item, value)
carol3_66RPG_item = item
carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
if value >= 0
case item
when RPG::Item
carol3_66RPG.contents.draw_text(0,0,240,32,"获得物品:")
when RPG::Weapon
carol3_66RPG.contents.draw_text(0,0,240,32,"获得武器:")
when RPG::Armor
carol3_66RPG.contents.draw_text(0,0,240,32,"获得防具:")
end
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"006-System06",80,100)
else
case item
when RPG::Item
carol3_66RPG.contents.draw_text(0,0,240,32,"失去物品:")
when RPG::Weapon
carol3_66RPG.contents.draw_text(0,0,240,32,"失去武器:")
when RPG::Armor
carol3_66RPG.contents.draw_text(0,0,240,32,"失去防具:")
end
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"005-System05",80,100)
end
carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
carol3_66RPG.contents.draw_text(0, 32, 268, 32, "×"+value.abs.to_s, 2)
carol3_66RPG.opacity = 160
for i in 0..30
Graphics.update
end
for i in 0..10
carol3_66RPG.opacity -= 30
carol3_66RPG.contents_opacity -= 30
Graphics.update
end
carol3_66RPG.dispose
end
复制代码
2.適當時候調用
auto_reminding($data_items[ ], 數目)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1