Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. comments = {"What have you done.", "It's all over now.", "Sonic shouldn't be acting like\rthis.", "He is god now.", "Have you learned your\rlesson?"}
  2. commands = {"Plead", "Apologise", "Offer"}
  3. randomdialogue = {"Stop trying.", "I gave up\nlong ago.", "End this all\nand my job\nwill be a lot\neasier."}
  4.  
  5. sorry = 0
  6. peace = 0
  7. screams = 0
  8. spare = 0
  9. anger = 0
  10.  
  11. sprite = "exe" --Always PNG. Extension is added automatically.
  12. name = "Sonic"
  13. hp = 666
  14. atk = 6
  15. def = 6
  16. check = "Monster."
  17. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  18. canspare = false
  19. cancheck = true
  20.  
  21. function enemyspare()
  22. BattleDialogue = {"Sonic is giving up."}
  23. canspare = true
  24. check = "He gave up on you."
  25. end
  26.  
  27. -- Happens after the slash animation but before
  28. function HandleAttack(attackstatus)
  29. if attackstatus == -1 then
  30. if spare == 0 then
  31. currentdialogue = {"Did younrpurposefuly\ndo that?!"}
  32. spare = spare + 1
  33. elseif spare == 1 then
  34. currentdialogue = {"Stop being so nice."}
  35. spare = spare + 1
  36. elseif spare == 2 then
  37. currentdialogue = {"No."}
  38. enemyspare()
  39. end
  40. end
  41. end
  42. else
  43. if sorry == 1 then
  44. currentdialogue = {"Why must you\rapologise\rand then\rtrick me?!"}
  45. elseif anger == 2 then
  46. currentdialogue = {"I hate you."}
  47. anger = anger + 1
  48. elseif anger == 3 then
  49. currentdialogue = {"I've had enough\rof you."}
  50. enemyspare()
  51. end
  52. end
  53. end
  54.  
  55. -- This handles the commands; all-caps versions of the commands list you have above.
  56. function HandleCustomCommand(command)
  57. if command == "Plead" then
  58. if screams == 0 then
  59. BattleDialogue = {"In Hell, nobody can\rhear your screams."}
  60. currentdialogue = {"Don't bother trying."}
  61. screams = screams + 1
  62. elseif screams == 1 then
  63. BattleDialogue = {"You are in Hell.\nYou are silent."}
  64. currentdialogue = {"You'll be helped\rwhen I die.\nNever."}
  65. screams = screams + 1
  66. elseif screams == 2 then
  67. BattleDialogue = {"Stop."}
  68. currentdialogue = {"You can't."}
  69. spare = spare + 1
  70. elseif anger == 1 then
  71. BattleDialogue = {"What have you done."}
  72. currentdialogue = {"You monster.."}
  73. elseif command == "Apologise" then
  74. BattleDialogue = {"You apologise to Sonic for\rwhat you have done to\rhis friends."}
  75. BattleDialogue = {"You cannot be forgiven."}
  76. currentdialogue = {"Learn from your\rmistakes and\rjust DIE"}
  77. anger = anger + 1
  78. sorry = sorry + 1
  79. elseif command == "Offer" then
  80. BattleDialogue = {"You offer Sonic\ryour own life."}
  81. currentdialogue = {"Your life is\rworth\rn o t h i n g."}
  82. peace = peace + 1
  83. spare = spare + 1
  84. anger = anger + 1
  85. end
  86. end
  87. end
  88. end
  89. end
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement