Guest User

Monster

a guest
Mar 13th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. commands = {"Checar", "Hablar", "Info"}
  3.  
  4. sprite = "blank" --Always PNG. Extension is added automatically.
  5. name = "Chara"
  6. hp = 9000
  7. atk = 1
  8. def = -150
  9. check = "Check message goes here."
  10. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  11. canspare = false
  12. cancheck = false
  13. talk = 0
  14. hablar = 0
  15. golpes = 0
  16. ins = 0
  17.  
  18. SetGlobal('fightcounter', 0)
  19.  
  20. -- Happens after the slash animation but before
  21. function HandleAttack(attackstatus)
  22. if attackstatus == -1 then
  23. -- player pressed fight but didn't press Z afterwards
  24. else
  25. -- player did actually attack
  26. SetGlobal('fightcounter', GetGlobal('fightcounter') + 1)
  27. SetSprite("hurtchara")
  28. talk = talk + 1
  29. golpes = golpes + 1
  30. if talk == 1 then
  31. currentdialogue = {"[voice:v_sschara][func:SetSprite,noanim]Asi que prefieres\nir de esta manera?","[voice:v_sschara]Entonces,[w:5]\npresencia mi ATAQUE\nESPECIAL!"}
  32. Audio.Stop("knifetrousle")
  33. elseif talk == 2 then
  34. currentdialogue = {"[noskip][voice:v_sschara][func:SetSprite,noanim]Veo que has resistido\nmi [w:10]uhh... [w:10]ATAQUE\nMAS DEBIL!!","[noskip][voice:v_sschara]JAJAJAJ![w:5]\nPENSABAS QUE ESE\nERA MI ATAQUE\nMAS FUERTE!?","[voice:v_sschara][noskip]PUES NO! [w:10]QUE\nEMPIEZE LA\nBATALLA![w:7][func:StartSong][func:SetSprite,blank][next]"}
  35. elseif talk == 3 then
  36. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Sabes, humano? Estoy\nentrenando para\nentrar en la\nGuardia Real!","[voice:v_sschara][func:SetSprite,blank][noskip]Crees que algun\ndia lograre\nentrar?[w:3][next]","[voice:v_sschara]NO!! [w:5]No hace falta\nque des TU opinion!"}
  37. elseif talk == 4 then
  38. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Y hablando del rey\nde roma...","[voice:v_sschara][func:SetSprite,blank]Mas vale que te\nrindas, porque si\nno...","[voice:v_sschara]Me vere obligado a\nusar mi [color:ff0000]ATAQUE\n[color:ff0000]ESPECIAL!"}
  39. elseif talk == 5 then
  40. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Como oyes, mi ataque\nespecial!","[voice:v_sschara]Y no tendré piedad en\nusarlo!","[voice:v_sschara]JAJAJAJA!!"}
  41. elseif talk == 6 then
  42. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Asi que humano,[w:10]\nmas vale que te\nprepares para mi\n[color:ff0000]ATAQUE ESPECIAL!"}
  43. elseif talk == 7 then
  44. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Ahora mismo es un\nbuen momento para\n[color:ffff00]RENDIRTE!"}
  45. elseif talk == 8 then
  46. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Este es tu ultimo\naviso, [w:5]humano.","[voice:v_sschara]Si prefieres resistir\nel proximo ataque...","[voice:v_sschara]Entonces tendras que\nsobrevivir mi [color:ff0000]ATAQUE\nESPECIAL!"}
  47. elseif talk == 9 then
  48. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Bien, [w:5]humano... [w:5]Yo\nte adverti...","[voice:v_sschara][noskip]Ahora... [w:5]presencia mi\n[color:ff0000]ATAQUE ESPECIAL![w:7][func:StopMusic][func:SetSprite,doggy][func:Doggy]"}
  49. elseif talk == 10 then
  50. currentdialogue = {"[func:SetSprite,blank][voice:v_sschara][func:StartSong]Como has sobrevivido\nmi ataque especial!?","[voice:v_sschara]En fin, [w:5]creo que\nambos nos estamos\ncansando de pelear...","[noskip][voice:v_sschara]Asi que, [w:5][func:StopMusic]te\notorgo [color:ffff00]CLEMENCIA!"}
  51. comments = {"Chara te esta perdonando."}
  52. canspare = true
  53. end
  54. end
  55. end
  56.  
  57. -- This handles the commands; all-caps versions of the commands list you have above.
  58. function HandleCustomCommand(command)
  59. if command == "CHECAR" then
  60. BattleDialog({"CHARA [w:10]15 ATK [w:10]15 DEF [w:10]\nEl rey de los cuchillos!","En verdad no te quiere matar,[w:10]\rpero ten cuidado con esos\rcuchillos!"})
  61. elseif command == "HABLAR" then
  62. hablar = hablar + 1
  63. if hablar == 1 then
  64. BattleDialog({"Hablas con Chara.","Nada paso."})
  65. elseif hablar == 2 then
  66. BattleDialog({"Vuelves a hablar.","Se te ocurre algo..."})
  67. elseif hablar == 3 then
  68. BattleDialog({"Hablas... [w:10]otra vez.","Parece que hablar no servira de \rnada."})
  69. end
  70. elseif command == "INFO" then
  71. BattleDialog({"La batalla esta en desarrollo.","El creador es: xZetillaX", "Comenta tu opinion en mi post\rde Reddit."})
  72. end
  73. end
  74.  
  75. function StartSong()
  76. Audio.LoadFile("knifetrousle")
  77. Audio.Play("knifetrousle")
  78. end
  79.  
  80. function AttReset()
  81. attacknum = 1
  82. end
  83.  
  84. function Doggy()
  85. Audio.LoadFile("doggy")
  86. Audio.Play("doggy")
  87. end
  88.  
  89. function StopMusic()
  90. Audio.Stop()
  91. end
Add Comment
Please, Sign In to add comment