赞 | 23 |
VIP | 207 |
好人卡 | 31 |
积分 | 31 |
经验 | 48797 |
最后登录 | 2024-11-30 |
在线时间 | 1535 小时 |
Lv3.寻梦者 孤独守望
- 梦石
- 0
- 星屑
- 3137
- 在线时间
- 1535 小时
- 注册时间
- 2006-10-16
- 帖子
- 4321
|
改成如下的部分。我想设定应该能很容易看懂吧
不过没有全部脚本,没有测试过。- #==============================================================================
- # ■获得新防具盾
- #==============================================================================
- def get_armor1(armor_name, n)
- @armor_name = armor_name
- for i in 1...$data_armors.size
- if $data_armors.name == @armor_name
- @armor_id = i
- end
- end
- $game_party.gain_armor(@armor_id, n)
- enghao_showbar_armor = $data_armors[@armor_id]
- enghao_showbar = Window_Base.new((640-300)/2,128,300,100)
- enghao_showbar.contents = Bitmap.new(enghao_showbar.width - 32, enghao_showbar.height - 32)
- if n >= 0
- enghao_showbar.contents.draw_text(0,0,240,32,"获得防具:")
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
- else
- enghao_showbar.contents.draw_text(0,0,240,32,"失去防具:")
- Audio.se_play("Audio/SE/"+"005-System05",80,100)
- end
- enghao_showbar_bitmap = RPG::Cache.icon(enghao_showbar_armor.icon_name)
- enghao_showbar.contents.blt(0, 32, enghao_showbar_bitmap, Rect.new(0, 0, 24, 24), 255)
- #---------------------sign-------------------------
- if enghao_showbar_armor.name[/神话/] != nil
- enghao_showbar.contents.font.color = Color.new(255,215,0)
- end
- #--------------------------------------------------
- enghao_showbar.contents.draw_text(0 + 28, 32, 212, 32, enghao_showbar_armor.name, 0)
- #---------------------sign-------------------------
- enghao_showbar.contents.font.color = normal_color
- #--------------------------------------------------
- enghao_showbar.contents.draw_text(0, 32, 268, 32, "×"+n.abs.to_s, 2)
- enghao_showbar.opacity = 160
- for i in 0...30
- Graphics.update
- end
- for i in 0...10
- enghao_showbar.opacity -= 30
- enghao_showbar.contents_opacity -= 30
- Graphics.update
- end
- enghao_showbar.dispose
- end
复制代码 |
|