class Pokemon def add_pm(actor_id) actor = Game_Actor.new(actor_id) # 同伴人数未满 4 人、本角色不在队伍中的情况下 if $game_party.actors.size < 4 and not $game_party.actors.include?(actor) # 添加角色 $game_party.actors.push(actor) # 还原主角 $game_player.refresh end end end $PM = Pokemon.new
# 刷新同伴成员 $game_party.refresh
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |