Guest User

Untitled

a guest
May 8th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. keep in mind that I have this function used (in the row of name, HP, ATK, etc...):
  2. posecount = 0
  3.  
  4.  
  5. ! The script below is where my problem is facing. ! (the small script on the top is just to let you know that, yes I have a variable ready for the custom command script of mine.)
  6.  
  7. -- This handles the commands; all-caps versions of the commands list you have above.
  8. function HandleCustomCommand(command)
  9. if command == "COMPLIMENT" then
  10. if posecount == 0 then
  11. table.insert(comments, "Try complimenting the stickman more.")
  12. currentdialogue = {"Stickier than\nbefore!"}
  13. battledialog({"You compliment the stickman.\rHe seems happy."})
  14. elseif posecount == 1 then
  15. currentdialogue = {"Even stickier\nthan before!"}
  16. battledialog({"You compliment the stickman,\r[w:20]again.\r[w:20]He seems happier."})
  17. elseif posecount == 2 then
  18. currentdialogue = {"Stickiest\nform!"}
  19. battledialog({"You compliment the stickman,\r[w:20]another time\r[w:20]He seems the happiest he can be."})
  20. elseif posecount == 3 then
  21. canspare = true
  22. table.insert(comments, "The happiest version of the\rstickman.")
  23. currentdialogue = {":)"}
  24. BattleDialog({"[effect:rotate]You've made him happier\rthan the happiest version\rof the stickman.\r[w:20]Now what?"})
  25. end
  26. posecount = posecount + 1
  27. elseif command == "INSULT" then
  28. currentdialogue = {"Less sticky...\n:("}
  29. battledialog({"You insult the stickman.\rHe seems sad."})
  30. end
  31. elseif command == "FLIRT" then
  32. currentdialogue = {"Um... Sticky?"}
  33. battledialog({"You flirt with the stickman.\rHe seems...[w:20]normal?"})
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment