Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. Trigger: The crystals of the Primary Generator have turned \w+ (\w+) colour
  2.  
  3. --Resetting variables/starting the quest
  4. halliquest = true
  5. color = matches[2]
  6. colors = {"carmine", "lavender", "saffron", "indigo", "alabaster", "heliotrope", "sable", "vermilion", "celadon", "ecru", "columbine"}
  7. colorNum = table.index_of(colors, color)
  8.  
  9. --Creating the sphere tables and capturing them with a trigger
  10. expandAlias("createTables")
  11.  
  12. --Nearly all the colors start at step 1 (Shufi), with columbine and alabaster the exceptions
  13. --Step 8 is for spheres that take 4+ spheres to make: Track to Fraesic instead
  14. if color == "heliotrope" or color == "sable" or color == "vermillion" or color == "celadon" or color == "ecru" then
  15. colorstep = 8
  16. elseif color == "columbine" or color == "alabaster" then
  17. colorstep = 3
  18. else
  19. colorstep = 1
  20. end
  21. echo("Current Sphere is: " .. color)
  22.  
  23. --Nextstep handles the commands
  24. expandAlias("nextstep")
  25.  
  26.  
  27. Alias: nextstep
  28.  
  29. --What rooms each color is made in
  30. carmineLoc = 18860
  31. lavenderLoc = 19158
  32. saffronLoc = 19159
  33. indigoLoc = 18853
  34. alabasterLoc = 19157
  35. columbineLoc = 19229
  36. echo ("\nCurrent values: " .. colorstep .. " " .. color)
  37.  
  38. --Step 1 goes to Shufi
  39. if colorstep == 1 then
  40. send "touch painting"
  41. colorstep = 2
  42. --Step 2 creates orange or purple
  43. elseif colorstep == 2 then
  44. if color == "saffron" then
  45. expandAlias("orangesphere")
  46. else
  47. expandAlias("purplesphere")
  48. end
  49. colorstep = 3
  50. --Step 3 goes to the location needed to make the color
  51. elseif colorstep == 3 then
  52. if color == "carmine" then
  53. send ("path track " .. carmineLoc)
  54. elseif color == "lavender" then
  55. send("path track " .. lavenderLoc)
  56. elseif color == "saffron" then
  57. send("path track " .. saffronLoc)
  58. elseif color == "indigo" then
  59. send("path track " .. indigoLoc)
  60. elseif color == "alabaster" or color == "columbine" then
  61. send("path track " .. alabasterLoc)
  62. end
  63. colorstep = 4
  64. --Step 4 makes the final sphere(unless columbine)
  65. elseif colorstep == 4 then
  66. if color == "columbine" then
  67. expandAlias("alabastersphere")
  68. else
  69. expandAlias(color .. "sphere")
  70. end
  71. if color == "columbine" then
  72. colorstep = 6
  73. else
  74. colorstep = 5
  75. end
  76. --Step 5 tracks to the generator, changes to the next color in the list,
  77. --and chooses the beginning colorstep
  78. elseif colorstep == 5 then
  79. echo("\nSphere complete, put " .. color .. " in generator")
  80. send ("path track halligenerator")
  81. if color == "columbine" then
  82. color = colors[1]
  83. else
  84. color = colors[colorNum + 1]
  85. end
  86. if color == "heliotrope" or color == "sable" or color == "vermillion" or color == "celadon" or color == "ecru" then
  87. colorstep = 8
  88. elseif color == "columbine" or color == "alabaster" then
  89. colorstep = 3
  90. else
  91. colorstep = 1
  92. end
  93. --Step 6 goes to the columbine location
  94. elseif colorstep == 6 then
  95. send ("path track " .. columbineLoc)
  96. colorstep = 7
  97. --Step 7 creates the columbine sphere
  98. elseif colorstep == 7 then
  99. expandAlias("columbinesphere")
  100. colorstep = 5
  101. --Step 8 tracks to Fraesic for any sphere that takes 4+ spheres to make
  102. elseif colorstep == 8 then
  103. echo("Give Fraesic the spheres")
  104. send ("path track matrix")
  105. colorstep = 5
  106. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement