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