赞 | 0 |
VIP | 157 |
好人卡 | 6 |
积分 | 1 |
经验 | 113829 |
最后登录 | 2014-1-16 |
在线时间 | 26 小时 |
Lv1.梦旅人 B
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2007-8-26
- 帖子
- 3693
|
- HZHJ_SE = "Audio/SE/015-Jump01"
- #==============================================================================
- # ■ Interpreter
- #==============================================================================
- class Interpreter
- #--------------------------------------------------------------------------
- # ● 增减能力值
- #--------------------------------------------------------------------------
- def command_317
- # 获取操作值
- value = operate_value(@parameters[2], @parameters[3], @parameters[4])
- # 获取角色
- actor = $game_actors[@parameters[0]]
- # 更改能力值
- if actor != nil
- hzhj_window = Window_Base.new(240,192,160,96)
- hzhj_window.z = 9999
- hzhj_window.visible = false
- hzhj_window.contents = Bitmap.new(128, 64)
- hzhj_window.contents.font.color = Color.new(255,255,255,255)
- hzhj_window.contents.draw_text(4, 0, 120, 32, actor.name)
- @t1 = value >= 0 ? "+" : "-"
- @t2 = value.abs.to_s
- case @parameters[1]
- when 0 # MaxHP
- @t3 = "最大" + $data_system.words.hp
- actor.maxhp += value
- when 1 # MaxSP
- @t3 = "最大" + $data_system.words.sp
- actor.maxsp += value
- when 2 # 力量
- @t3 = $data_system.words.str
- actor.str += value
- when 3 # 灵巧
- @t3 = $data_system.words.dex
- actor.dex += value
- when 4 # 速度
- @t3 = $data_system.words.agi
- actor.agi += value
- when 5 # 魔力
- @t3 = $data_system.words.int
- actor.int += value
- end
- hzhj_window.contents.draw_text(4, 32,120,32,@t3+" "+@t1+" "+@t2, 2)
- hzhj_window.visible = true
- Audio.se_play(HZHJ_SE)
- for i in 0...40
- Graphics.update
- hzhj_window.opacity -= 3
- end
- hzhj_window.dispose
- end
- # 继续
- return true
- end
- end
复制代码 |
|