def reduce_hp
reduce_hp = 1000
reduce_hp = [reduce_hp,$game_party.actors[0].maxhp-=10].min
if $game_party.actors[0].hp<=10
print"你快死亡了!"
else
$game_party.actors[0].hp -= reduce_hp
$game_party.gain_gold(reduce_hp*=10)
print"交换完成!"
return [$game_party.actors[0].hp+=10,$game_party.lose_gold(10)]
end
end
end
def reduce_hp
reduce_hp = 1000
reduce_hp = [reduce_hp,$game_party.actors[0].maxhp-=10].min
if $game_party.actors[0].hp<=10
print"你快死亡了!"
else
$game_party.actors[0].hp -= reduce_hp
$game_party.gain_gold(reduce_hp*=10)
print"交换完成!"
return [$game_party.actors[0].hp+=10,$game_party.lose_gold(10)]
end
end
end