cloud.lua 821 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. cloud = {
  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. action_hurt = function(self)
  16. fighter_self:play_animation("15");
  17. return 0;
  18. end;
  19. action_attack = function(self)
  20. fighter_self:play_animation("26");
  21. fighter_self:play_animation("27");
  22. script:play_hurt_action(fighters_target[1], 0.03);
  23. fighter_self:play_animation("30");
  24. fighter_self:play_animation("28");
  25. fighter_self:play_animation("29");
  26. return 0;
  27. end;
  28. };