class Interpreter
#--------------------------------------------------------------------------
# ● 增减金钱
#--------------------------------------------------------------------------
def command_125
value = operate_value(@parameters[0], @parameters[1], @parameters[2])
$game_party.gain_gold(value)
if $game_switches[$提示开关]==false
if value >= 0
$game_temp.message_text = "得到 #{value} 金。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"金",80,100)
@wait_count = 60
else
$game_temp.message_text = "失去 #{value.abs}金。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"005-System05",80,100)
@wait_count = 60
end
end
for i in 0..30
Graphics.update
end
return true
end
#--------------------------------------------------------------------------
# ● 增减物品
#--------------------------------------------------------------------------
def command_126
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_item(@parameters[0], value)
if $game_switches[$提示开关]==false
if value >= 0
$game_temp.message_text = "得到 #{$data_items[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"金",80,100)
@wait_count = 60
else
$game_temp.message_text = "失去 #{$data_items[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"005-System05",80,100)
@wait_count = 60
end
for i in 0..60
Graphics.update
end
end
return true
end
#--------------------------------------------------------------------------
# ● 增减武器
#--------------------------------------------------------------------------
def command_127
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_weapon(@parameters[0], value)
if $game_switches[$提示开关]==false
if value >= 0
$game_temp.message_text = "得到 #{$data_weapons[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"金",80,100)
@wait_count = 60
else
$game_temp.message_text = "失去 #{$data_weapons[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"005-System05",80,100)
@wait_count = 60
end
for i in 0..30
Graphics.update
end
end
return true
end
#--------------------------------------------------------------------------
# ● 增减防具
#--------------------------------------------------------------------------
def command_128
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_armor(@parameters[0], value)
if $game_switches[$提示开关]==false
if value >= 0
$game_temp.message_text = "得到 #{$data_armors[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"金",80,100)
@wait_count = 60
else
$game_temp.message_text = "失去 #{$data_armors[@parameters[0]].name} X #{value.abs} 。"
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"005-System05",80,100)
@wait_count = 60
end
for i in 0..30
Graphics.update
end
end
return true
end
end