when 0 #雇佣
if $game_party.gold >= $game_actors[@window_mercenaries.id].price
if $game_party.actors.size < 4
$game_party.lose_gold($game_actors[@window_mercenaries.id].price)
$game_party.add_actor(@window_mercenaries.id)
#@temp=[2,3,4,5,6,7,8,9]
p @temp
@window_mercenaries.mercenaries.delete(@window_mercenaries.id)
#@temp=[3,4,5,6,7,8,9]
p @window_mercenaries.id
@window_mercenaries.refresh
if @window_mercenaries.index > @window_mercenaries.mercenaries.size-1
@window_mercenaries.index = @window_mercenaries.mercenaries.size-1
end
end
end
when 0 #雇佣
if $game_party.gold >= $game_actors[@window_mercenaries.id].price
if $game_party.actors.size < 4
$game_party.lose_gold($game_actors[@window_mercenaries.id].price)
$game_party.add_actor(@window_mercenaries.id)
#@temp=[2,3,4,5,6,7,8,9]
p @temp
@window_mercenaries.mercenaries.delete(@window_mercenaries.id)
#@temp=[3,4,5,6,7,8,9]
p @window_mercenaries.id
@window_mercenaries.refresh
if @window_mercenaries.index > @window_mercenaries.mercenaries.size-1
@window_mercenaries.index = @window_mercenaries.mercenaries.size-1
end
end
end