Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Trigger: The crystals of the Primary Generator have turned \w+ (\w+) colour
- --Resetting variables/starting the quest
- halliquest = true
- color = matches[2]
- colors = {"carmine", "lavender", "saffron", "indigo", "alabaster", "heliotrope", "sable", "vermilion", "celadon", "ecru", "columbine"}
- colorNum = table.index_of(colors, color)
- --Creating the sphere tables and capturing them with a trigger
- expandAlias("createTables")
- --Nearly all the colors start at step 1 (Shufi), with columbine and alabaster the exceptions
- --Step 8 is for spheres that take 4+ spheres to make: Track to Fraesic instead
- if color == "heliotrope" or color == "sable" or color == "vermillion" or color == "celadon" or color == "ecru" then
- colorstep = 8
- elseif color == "columbine" or color == "alabaster" then
- colorstep = 3
- else
- colorstep = 1
- end
- echo("Current Sphere is: " .. color)
- --Nextstep handles the commands
- expandAlias("nextstep")
- Alias: nextstep
- --What rooms each color is made in
- carmineLoc = 18860
- lavenderLoc = 19158
- saffronLoc = 19159
- indigoLoc = 18853
- alabasterLoc = 19157
- columbineLoc = 19229
- echo ("\nCurrent values: " .. colorstep .. " " .. color)
- --Step 1 goes to Shufi
- if colorstep == 1 then
- send "touch painting"
- colorstep = 2
- --Step 2 creates orange or purple
- elseif colorstep == 2 then
- if color == "saffron" then
- expandAlias("orangesphere")
- else
- expandAlias("purplesphere")
- end
- colorstep = 3
- --Step 3 goes to the location needed to make the color
- elseif colorstep == 3 then
- if color == "carmine" then
- send ("path track " .. carmineLoc)
- elseif color == "lavender" then
- send("path track " .. lavenderLoc)
- elseif color == "saffron" then
- send("path track " .. saffronLoc)
- elseif color == "indigo" then
- send("path track " .. indigoLoc)
- elseif color == "alabaster" or color == "columbine" then
- send("path track " .. alabasterLoc)
- end
- colorstep = 4
- --Step 4 makes the final sphere(unless columbine)
- elseif colorstep == 4 then
- if color == "columbine" then
- expandAlias("alabastersphere")
- else
- expandAlias(color .. "sphere")
- end
- if color == "columbine" then
- colorstep = 6
- else
- colorstep = 5
- end
- --Step 5 tracks to the generator, changes to the next color in the list,
- --and chooses the beginning colorstep
- elseif colorstep == 5 then
- echo("\nSphere complete, put " .. color .. " in generator")
- send ("path track halligenerator")
- if color == "columbine" then
- color = colors[1]
- else
- color = colors[colorNum + 1]
- end
- if color == "heliotrope" or color == "sable" or color == "vermillion" or color == "celadon" or color == "ecru" then
- colorstep = 8
- elseif color == "columbine" or color == "alabaster" then
- colorstep = 3
- else
- colorstep = 1
- end
- --Step 6 goes to the columbine location
- elseif colorstep == 6 then
- send ("path track " .. columbineLoc)
- colorstep = 7
- --Step 7 creates the columbine sphere
- elseif colorstep == 7 then
- expandAlias("columbinesphere")
- colorstep = 5
- --Step 8 tracks to Fraesic for any sphere that takes 4+ spheres to make
- elseif colorstep == 8 then
- echo("Give Fraesic the spheres")
- send ("path track matrix")
- colorstep = 5
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement