function script_library(s) if s.main == 1 or s.main == 2 or s.main == 3 then change_screen(screen_conversation({ {librarian_portrait, [[hey phoebe. looking for any book in particular today?]]}, {phoebe_portrait, [[just browsing!]]} })) elseif s.main == 4 then if not s.got_gunpowder_book then change_screen(screen_conversation({ {librarian_portrait, [[explosives, huh. well, this might help you out?]]}, {phoebe_portrait, [[oh, a chemistry manual? hmm... black powder...]]}, {phoebe_portrait, [[and i could... yes, i think i can use this to make gunpowder! maybe more!]]}, {phoebe_portrait, [[thank you so much stef!!!]]} })) add(grimoire, library.recipes.gunpowder) add(grimoire, library.recipes.bomb) toast("received recipes!") s.got_gunpowder_book = true else change_screen(screen_conversation({ {librarian_portrait, [[did that book help?]]}, {phoebe_portrait, [[you betcha!]]} })) end elseif s.main == 5 then change_screen(screen_conversation({ {librarian_portrait, [[hey phoebe. looking for any book in particular today?]]}, {phoebe_portrait, [[just browsing!]]} })) elseif s.main == 6 then if not s.got_crystal_book then change_screen(screen_conversation({ {phoebe_portrait, [[stef! i need books about gems! how to make them!]]}, {librarian_portrait, [[gems, huh? let me check...]]}, {librarian_portrait, [[here, does this help?]]}, {phoebe_portrait, [[yes, this is perfect! let's see...]]}, {phoebe_portrait, "hmm..."}, {phoebe_portrait, "hmm... \nhmm..."}, {phoebe_portrait, "hmm... \nhmm... \nhmm..."}, {phoebe_portrait, [[okay so i need raw crystal, polishing powder, and reagent.]], function() add(grimoire, library.recipes.starshine_crystal) add(grimoire, library.recipes.polishing_powder) end}, {phoebe_portrait, "i can get crystal from the cliffs and sand from the beach!"}, })) s.got_crystal_book = true else change_screen(screen_conversation({ {phoebe_portrait, "thanks for the book, \nstef!"}, {librarian_portrait, [[that's my job!]]}, })) end elseif s.main == 7 then change_screen(screen_conversation({ {librarian_portrait, "fireworks festival,\nhuh? well, the library\nwill be a great\nplace to watch from!"} })) elseif s.main == 8 or s.main == 9 then change_screen(screen_conversation({ {librarian_portrait, [[a fireworks festival after all, huh?]]}, {neighbor_portrait, [[i thought it was done for after the old alchemist passed away, rest his soul.]]}, {seller_portrait, [[well it looks like phoebe took up the reins!]]}, {phoebe_portrait, [[aw shucks!]]}, {lenore_portrait, [[thanks for making this happen, lil alchemist.]]}, {neighbor_portrait, [[thanks, phoebe!]]}, {seller_portrait, [[thanks, phoebe.]]}, {phoebe_portrait, [[thank you all for helping out so much. i couldn't have done it without you.]]}, }, nil, {update=fireworks_update, draw=fireworks_draw})) screen_walkaround = {update=fireworks_update, draw=fireworks_draw} screen_workbench = screen_conversation({ {phoebe_portrait, "thank you for completing atelier phoebe!"}, {phoebe_portrait, "this was a labor of love and bafflement."}, {phoebe_portrait, "why did i make an atelier fangame in pico-8? i couldn't tell you."}, {phoebe_portrait, "but i hope you enjoyed it! you can find me online as shoofle"}, {phoebe_portrait, "lately i spend my time @shoofle@beach.city."}, {phoebe_portrait, "gimme a shout if you enjoyed atelier phoebe!"}, }, function() screen_workbench = {update=workbench_update, draw=workbench_draw} change_screen(screen_workbench) end, screen_workbench) end end