Code:
# * Make Action Orders
#--------------------------------------------------------------------------
def make_action_orders
# Initialize @action_battlers array
@action_battlers = []
# Add enemy to @action_battlers array
for enemy in $game_troop.enemies
@action_battlers.push(enemy)
end
# Add actor to @action_battlers array
for actor in $game_party.actors
actor2 = Marshal.load(Marshal.dump(actor))
# Changue the action kind and skill id
actor2.current_action.kind = 1
actor2.current_action.skill_id = 7
actor.current_action.kind = 0
p actor2.current_action.kind
p actor.current_action.kind
#@action_battlers.push(actor)
#@action_battlers.push(actor)
@action_battlers.push(actor2)
#@action_battlers.push(actor)
end
My problem with that code is that it dont work fort thre actor2. Now, it just attack or whatever two times. If i put only the actor 2, it does nothing.