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_witch.lua

85 lines
3.4 KiB

function script_witch(s)
if s.main == 1 or s.main == 2 then
change_screen(screen_conversation({{door_portrait, "[there is no answer to your knocking.]"}}))
elseif s.main == 3 then
change_screen(screen_conversation({
{phoebe_portrait, "excuse me! i would like to know how to make explosives!"},
{witch_portrait, [[this town is dead. i can make no explosions. the alchemy of pilton has died.]]},
{witch_portrait, [[try as you might, phoebe, you aren't your grandfather.]]},
{witch_portrait, [[this town is a husk of what it once was. ]]},
{witch_portrait, [[i am done teaching.]]},
{witch_portrait, [[if you want alchemy, go read at the library in the middle of town.]]},
{witch_portrait, [[i have no time for this.]], function()
sfx(4)
end},
{door_portrait, "i have no time for this."},
{phoebe_portrait, "... huh!"},
}))
s.main = 4
elseif s.main == 4 then
change_screen(screen_conversation({{door_portrait, "[there is no answer to your knocking.]"}}))
elseif s.main == 5 then
change_screen(screen_conversation({
{phoebe_portrait, "hey! witch!"},
{door_portrait, "my name is agnes."},
{phoebe_portrait, "i figured out how to make gunpowder. suck on that."},
{witch_portrait, "big whoop. you still know nothing."},
{witch_portrait, "no one in this town knows the art of alchemy."},
{phoebe_portrait, "there's you! you know it!"},
{witch_portrait, "pah. no one of your generation knows the ways."},
{phoebe_portrait, "well maybe if someone would teach us-"},
{witch_portrait, "maybe if you showed any promise i could teach you."},
{phoebe_portrait, "grrrr, you old hag!"},
{witch_portrait, "hm."},
{witch_portrait, "..."},
{witch_portrait, "bring me a starshine gem. it must carry the red and shiny traits."},
{witch_portrait, "if you can do this, i might consider you to have potential."},
}))
s.main = 6
add(letters, {
[[hey phoebe!
thanks for that bomb!
it worked a treat. my
field is clean and clear.
give a shout if there's
anything you need any
time!
- brigitte
]]
})
elseif s.main == 6 then
local crystal = player_has("starshine", 1, {"red", "shiny"})
if crystal == nil then
change_screen(screen_conversation({
{door_portrait, "starshine gem. red and shiny."}
}))
else
change_screen(screen_conversation({
{witch_portrait, "hm. this is... passable. i will help you."},
{witch_portrait, "my bones are too tired to keep up this fight."},
{witch_portrait, "i can teach you to make fireworks."},
{phoebe_portrait, "fireworks! the festival?!"},
{witch_portrait, "a festival is more than just a box of fireworks."},
{witch_portrait, "hm. this is a bad idea.", function()
sfx(4)
add(grimoire, library.recipes.fireworks)
toast("received recipe!")
end},
{door_portrait, "hm. this is a bad idea."},
{phoebe_portrait, "wow, she's so awful!"},
{door_portrait, "i can hear you out there."},
{phoebe_portrait, "keep it down, i'm thinking."},
{phoebe_portrait, "a fireworks festival! that would be so incredible!"},
{phoebe_portrait, "but she's right. i'll have to call in favors."},
{phoebe_portrait, "hans the charcoal seller used to run the show itself."},
{phoebe_portrait, "i have to talk to lenore about safety."},
{phoebe_portrait, "and i should ask brigitte if we can use her farm!"},
}))
s.main = 7
end
elseif s.main == 8 or s.main == 9 then
change_screen(screen_conversation({witch_portrait, "thank you."}))
end
end