def Add_hp
add_hp = 1000 # 预设最大加血量
add_hp = $game_party.actors[0].maxhp - $game_party.actors[0].hp
if $game_party.gold < add_hp or $game_party.actors[0].maxhp == $game_party.actors[0].hp
tip = $game_party.gold < add_hp ? "金钱不够!" : "你已经满血了"
p tip
return
end
$game_party.actors[0].hp += add_hp
$game_party.lose_gold -= add_hp
p "交换完成!"
end
end
def Add_hp
add_hp = 1000 # 预设最大加血量
add_hp = $game_party.actors[0].maxhp - $game_party.actors[0].hp
if $game_party.gold < add_hp or $game_party.actors[0].maxhp == $game_party.actors[0].hp
tip = $game_party.gold < add_hp ? "金钱不够!" : "你已经满血了"
p tip
return
end
$game_party.actors[0].hp += add_hp
$game_party.lose_gold -= add_hp
p "交换完成!"
end
end