barret.lua 379 B

12345678910111213141516171819202122
  1. barret = {
  2. on_start = function(self)
  3. fighter_self.data.auto_action = true;
  4. return 0;
  5. end;
  6. on_action = function(self)
  7. set_random_enemy_as_target();
  8. battle:run_command(Battle.MONSTER_ACTION, 1000);
  9. return 0;
  10. end;
  11. action_idle = function(self)
  12. fighter_self:play_animation("0");
  13. return 0;
  14. end;
  15. };