Advertisement
Guest User

Monster

a guest
Feb 28th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Smells like the work\rof an enemy stand.", "Poseur is posing like his\rlife depends on it.", "Poseur's limbs shouldn't be\rmoving in this way."}
  3. commands = {"Act 1", "Act 2", "Act 3"}
  4. randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
  5.  
  6. sprite = "chara" --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.  
  16. -- Happens after the slash animation but before
  17. function HandleAttack(attackstatus)
  18. if attackstatus == -1 then
  19. -- player pressed fight but didn't press Z afterwards
  20. else
  21. -- player did actually attack
  22. talk = talk + 1
  23. if talk == 1 then
  24. currentdialogue = {"[voice:v_sschara]Asi que prefieres\nir de esta manera?","[voice:v_sschara]Entonces,[w:5]\npresencia mi ATAQUE\nESPECIAL!"}
  25. Audio.Stop("knifetrousle")
  26. elseif talk == 2 then
  27. currentdialogue = {"[voice:v_sschara]Veo que has resistido mi[w:10]\nuhh... [w:10]ATAQUE MAS DEBIL!!","[voice:v_sshara]JAJAJAJ![w:5]\nPENSABAS QUE ESE ERA MI\nATAQUE MAS FUERTE!?","[voice:v_sschara]PUES NO! QUE EMPIEZE\nLA BATALLA![w:5][func:StartSong]"}
  28. end
  29. end
  30. end
  31.  
  32. -- This handles the commands; all-caps versions of the commands list you have above.
  33. function HandleCustomCommand(command)
  34. if command == "ACT 1" then
  35. currentdialogue = {"Selected\nAct 1."}
  36. elseif command == "ACT 2" then
  37. currentdialogue = {"Selected\nAct 2."}
  38. elseif command == "ACT 3" then
  39. currentdialogue = {"Selected\nAct 3."}
  40. end
  41. BattleDialog({"You selected " .. command .. "."})
  42. end
  43.  
  44. function StartSong()
  45. Audio.Play("knifetrousle")
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement