Advertisement
Guest User

Untitled

a guest
Mar 8th, 2016
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. function HandleCustomCommand(command)
  2. if command == "TALK" then
  3. if (annoyance <= 7) then
  4. if (annoyance == 0) then
  5. BattleDialog = {"Herb waits for you to stop talking."}
  6. annoyance = 1
  7. elseif (annoyance == 1) then
  8. BattleDialog = {"Herb gives you a stern look."}
  9. annoyance = 2
  10. elseif (annoyance == 2) then
  11. BattleDialog = {"Herb gives you a stern look."}
  12. annoyance = 3
  13. elseif (annoyance == 3) then
  14. BattleDialog = {"Herb gives you a stern look."}
  15. annoyance = 4
  16. elseif (annoyance == 4) then
  17. BattleDialog = {"Herb gives you a stern look."}
  18. annoyance = 5
  19. elseif (annoyance == 5) then
  20. BattleDialog = {"Herb looks very annoyed."}
  21. annoyance = 6
  22. elseif (annoyance == 6) then
  23. BattleDialog = {"Herb is getting exhausted."}
  24. annoyance = 7
  25. elseif (annoyance == 7) then
  26. BattleDialog = {"Herb is looking weary."}
  27. annoyance = 100
  28. end
  29. else
  30. Audio.Stop()
  31. SetSprite("herbdead")
  32. SetGlobal("DEAD", 1)
  33. BattleDialog = {"You talked for so long that Herb died of old age. Try talking after class next time."}
  34. end
  35. end
  36. end
  37. elseif command == "FLIRT" then
  38. if (flirtatiousness == 0) then
  39. flirtatiousness == 1
  40. BattleDialog = {"Herb asks Vinnie to deal with it. Vinnie sings Hey Baby."}
  41. elseif (flirtatiousness == 1) then
  42. flirtatiousness == 2
  43. BattleDialog = {"Herb is ignoring you."}
  44. currentdialogue = {"*whistles*"}
  45. elseif (flirtatiousness == 2) then
  46. flirtatiousness == 3
  47. BattleDialog = {"Herb shuffles around uncomfortably."}
  48. elseif (flirtatiousness == 3) then
  49. flirtatiousness == 4
  50. BattleDialog = {"Herb shrugs you off."}
  51. currentdialogue = {"A commendable effort."}
  52. elseif (flirtatiousness == 4) then
  53. flirtatiousness == 5
  54. BattleDialog = {"Herb gives you a weird look."}
  55. currentdialogue = {"You do realize I'm married, right?"}
  56. elseif (flirtatiousness == 5) then
  57. BattleDialog = {"You go to FLIRT again, but suddenly, you hear M. C. Hammer's \"Can't Touch This\" play in the distance."}
  58. elseif command == "PLAY" then
  59. BattleDialog = {"Herb insists you buy a tuner."}
  60. end
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement