Guest User

Monster

a guest
Feb 29th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Chara bloquea el camino!"}
  3. commands = {"Checar", "Informacion", "Hablar", "Insultar"}
  4. randomdialogue = nil
  5.  
  6. sprite = "blank" --Always PNG. Extension is added automatically.
  7. name = "Chara"
  8. hp = 900
  9. atk = 1
  10. def = -5
  11. check = "Check message goes here."
  12. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  13. canspare = false
  14. cancheck = false
  15. talk = 0
  16. hablar = 0
  17. golpes = 0
  18.  
  19. SetGlobal('fightcounter', 0)
  20.  
  21. -- Happens after the slash animation but before
  22. function HandleAttack(attackstatus)
  23. if attackstatus == -1 then
  24. -- player pressed fight but didn't press Z afterwards
  25. else
  26. -- player did actually attack
  27. SetGlobal('fightcounter', GetGlobal('fightcounter') + 1)
  28. SetSprite("hurtchara")
  29. talk = talk + 1
  30. golpes = golpes + 1
  31. if talk == 1 then
  32. currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Asi que prefieres\nir de esta manera?","[voice:v_sschara]Entonces,[w:5]\npresencia mi ATAQUE\nESPECIAL!"}
  33. Audio.Stop("knifetrousle")
  34. elseif talk == 2 then
  35. currentdialogue = {"[noskip][voice:v_sschara][func:SetSprite,blank]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\nATAQUE MAS\nFUERTE!?","[voice:v_sschara][noskip]PUES NO! QUE\nEMPIEZE LA\nBATALLA![w:5][func:StartSong]"}
  36. end
  37. end
  38. end
  39.  
  40. -- This handles the commands; all-caps versions of the commands list you have above.
  41. function HandleCustomCommand(command)
  42. if command == "CHECAR" then
  43. 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!"})
  44. elseif command == "INFORMACION" then
  45. BattleDialog({"La batalla esta en desarrollo.","El creador es: xZetillaX", "Comenta tu opinion en mi post\rde Reddit."})
  46. elseif command == "HABLAR" then
  47. hablar = hablar + 1
  48. if hablar == 1 then
  49. BattleDialog({"Hablas con Chara.","Nada paso."})
  50. elseif hablar == 2 then
  51. BattleDialog({"Vuelves a hablar","Se te ocurre algo..."})
  52. elseif hablar == 3 then
  53. if golpes >= 1 then
  54. BattleDialog({"Hablas... [w:10]otra vez.","Ya lo sabes! Te preparas y..."})
  55. currentdialogue = {"U-una cita!?","C-claro... Pero\nespera que esta pelea\ntermine!"})
  56. elseif golpes <= 1 then
  57. BattleDialog({"Hablas... [w:10]otra vez.","Ya lo sabes! Te preparas y..."})
  58. currentdialogue = {"U-una cita!?","C-claro... Pero todavia\nno!"})
  59. end
  60. end
  61. end
  62. end
  63.  
  64. function StartSong()
  65. Audio.Play("knifetrousle")
  66. end
Add Comment
Please, Sign In to add comment