an atelier fangame for the pico-8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
atelier_phoebe/script_library.lua

85 lines
3.6 KiB

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({
9 months ago
{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.polishing_powder)
add(grimoire, library.recipes.starshine_gem)
toast("received recipes!")
end},
9 months ago
{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, 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!]]},
{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 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 dunno."},
{phoebe_portrait, "but i hope you enjoyed it! you can find me online as shoofle."},
{phoebe_portrait, "lately i spend my time @shoofle\n@beach.city."},
{phoebe_portrait, "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