Guest User

code

a guest
Oct 29th, 2021
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. return function(newENV)
  2. _ENV = newENV
  3. ----- DO NOT MODIFY ABOVE -----
  4.  
  5. -- A basic Enemy Entity script skeleton you can copy and modify for your own creations.
  6. comments = { "Smells like the work of an enemy stand.", "Poseur is posing like his life depends on it.", "Poseur's limbs shouldn't be moving in this way." }
  7. commands = { "Check", "MEGA-SLASH", "Repair", "Repair-X" }
  8. randomdialogue = { "It's working." }
  9.  
  10. AddAct("Check", "", 0)
  11. AddAct("MEGA-SLASH", "", 0, { "Susie" , "Ralsei"})
  12. AddAct("Repair", "", 0)
  13. AddAct("Repair-X", "", 25, { "Susie", "Ralsei" })
  14.  
  15. name = "T1VO"
  16. hp = 50000
  17. atk = 10
  18. def = -200
  19. dialogbubble = "DRBubble" -- See documentation for what bubbles you have available.
  20. canspare = false
  21. cancheck = false
  22. check = "WANTS TO GET HIS PARTS BACK!!"
  23.  
  24. -- CYK variables
  25. mag = 9001 -- MAGIC stat of the enemy
  26. targetType = "single" -- Specifies how many (or which) target(s) this enemy's bullets will target
  27.  
  28. -- Check the "Special Variables" page of the documentation to learn how to modify this mess
  29. animations = {
  30. Hurt = { { 0 }, 1 , { next = "Idle" } },
  31. Idle = { { 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 1 / 15, { } },
  32. }
  33.  
  34. -- Triggered when a Player attacks (or misses) this enemy in the ATTACKING state
  35. function HandleAttack(attacker, attackstatus)
  36. if attackstatus == -1 then
  37. -- Player pressed fight but didn't press Z afterwards
  38. else
  39. -- Player did actually attack
  40. end
  41. end
  42.  
  43. -- Triggered when a Player uses an Act on this enemy.
  44. -- You don't need an all-caps version of the act commands here.
  45. function HandleCustomCommand(user, command)
  46. local text = { "" }
  47. if command == "Check" then
  48. BattleDialog({ name .. " - " .. "150 ATK " .. "95 DEF\n" .. check })
  49. elseif command == "MEGA-SLASH" then
  50. Susie.ForceAttack(enemyid, damage = normal_damage_values)
  51. BattleDialog({"Used " .. command .. "."})
  52. end
  53. end
  54.  
  55. ----- DO NOT MODIFY BELOW -----
  56. end
Advertisement
Add Comment
Please, Sign In to add comment