Project1
标题:
重新求个增减能力值时提示的脚本
[打印本页]
作者:
oldterry
时间:
2009-7-20 17:09
提示:
作者被禁止或删除 内容自动屏蔽
作者:
ONEWateR
时间:
2009-7-20 19:21
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
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1