I'm trying to make weapons that can attack all the enemies:
I don't understand how the bold line works, a direct asignement of an object to an array??? without an index?
Now it just don't work. It only attacks one time, and if i delete the bold line the bucle dont make anything at all.
Code:
# Set array of targeted battlers
    #All weapon?
    if @active_battler.is_a?(Game_Actor) and @active_battler.todos_w? #Return true if the actor have a special weapon
    for enemy in $game_troop.enemies
     if enemy.exist?
      @target_battlers.push(enemy)
     end
    end
   end
Â
     [b]@target_battlers = [target] [/b]
Â
   # Apply normal attack results Â
   for target in @target_battlers
    target.attack_effect(@active_battler, target, $x_contr)
   end
Â
Â
Now it just don't work. It only attacks one time, and if i delete the bold line the bucle dont make anything at all.