こんばんは。
以下のコードを入れてみてください。
class Game_Party < Game_Unit
attr_accessor :actors
end
class Game_Troop < Game_Unit
attr_accessor :before_members
alias memory_order_clear clear
def clear
memory_order_clear
@before_members = []
end
alias memory_order_setup setup
def setup(troop_id)
memory_order_setup(troop_id)
@before_members = $game_party.actors.clone
end
end
class Scene_Battle < Scene_Base
alias memory_order_battle_end battle_end
def battle_end(result)
$game_party.actors = $game_troop.before_members
memory_order_battle_end(result)
end
end
仰るように一つ一つ代入したり参照せずとも、配列のまま扱えます。
イベントコマンドでメンバーの並びを変更するなら、
$game_party.actors = [1, 4, 3, 2] # 配列の中身はアクターID
…を実行すればOKです。