赞 | 0 |
VIP | 10 |
好人卡 | 49 |
积分 | 10 |
经验 | 22958 |
最后登录 | 2020-8-1 |
在线时间 | 2161 小时 |
Lv3.寻梦者 酱油的
- 梦石
- 0
- 星屑
- 1035
- 在线时间
- 2161 小时
- 注册时间
- 2007-12-22
- 帖子
- 3271
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
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[ ], 數目) |
|