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.
85 lines
3.6 KiB
85 lines
3.6 KiB
function script_neighbor(s)
|
|
if s.main == 1 then
|
|
change_screen(screen_conversation({{door_portrait, "[you hear the sound of groaning from inside.]"}}))
|
|
end
|
|
if s.main == 2 then
|
|
potion = player_has("potion")
|
|
if potion == nil then
|
|
change_screen(screen_conversation({{door_portrait, "[you hear the sound of groaning from inside.]"}}))
|
|
else
|
|
change_screen(screen_conversation({
|
|
{ph_p, [[hello! i was asked to bring you a potion!]]},
|
|
{neighbor_portrait, [[that's so kind! i injured my back trying to get a rock out]]},
|
|
{neighbor_portrait, [[of my field. this potion will fix me right up.]]},
|
|
{neighbor_portrait, "i'm brigitte, by the way."},
|
|
{neighbor_portrait, [[... hey, you're an alchemist, right?]]},
|
|
{ph_p, [[of course!]]},
|
|
{neighbor_portrait, [[i've heard that alchemists can make explosives. a bomb could get rid of]]},
|
|
{neighbor_portrait, [[that boulder in my field. do you think you could bring me one?]]},
|
|
{ph_p, [[my grandfather never taught me to make explosives,]]},
|
|
{ph_p, "because they're dangerous."},
|
|
{neighbor_portrait, [[damn. maybe the witch knows how to make them? she knows all sorts of things.]]},
|
|
{ph_p, [[i'll have to ask!]]},
|
|
{neighbor_portrait, [[she lives in the tower southeast of town, i think!]]},
|
|
}))
|
|
del(inventory, potion)
|
|
s.main = 3
|
|
end
|
|
elseif s.main == 3 then
|
|
change_screen(screen_conversation({
|
|
{neighbor_portrait, [[did the witch give you the recipe?]]},
|
|
{ph_p, [[not yet!]]}
|
|
}))
|
|
elseif s.main == 4 then
|
|
local bomb = player_has("bomb")
|
|
if bomb == nil then
|
|
change_screen(screen_conversation({
|
|
{neighbor_portrait, [[did the witch give you the recipe?]]},
|
|
{ph_p, [[no and actually she was really rude about it!]]},
|
|
}))
|
|
else
|
|
change_screen(screen_conversation({
|
|
{ph_p, [[this bomb should break up a rock! be very safe with it.]]},
|
|
{neighbor_portrait, [[oh wow, thank you so much! i will be far away when it goes off.]]},
|
|
{neighbor_portrait, [[so how did you convince the witch to give you the recipe?]]},
|
|
{ph_p, [[i didn't! she was incredibly rude and basically told me to fuck off!]]},
|
|
{neighbor_portrait, [[huh, i wonder what bee's in her bonnet.]]},
|
|
{ph_p, [[she kept talking about how there's no great alchemy left in pilton.]]},
|
|
{neighbor_portrait, [[maybe she needs someone to impress her.]]}
|
|
}))
|
|
del(inventory, bomb)
|
|
s.main = 5
|
|
end
|
|
elseif s.main == 5 then
|
|
change_screen(screen_conversation({
|
|
{neighbor_portrait, [[that witch soften up yet?]]},
|
|
{ph_p, [[grrrr!]]}
|
|
}))
|
|
elseif s.main == 6 then
|
|
change_screen(screen_conversation({
|
|
{neighbor_portrait, [[that bomb worked a treat on my boulder!]]},
|
|
{ph_p, [[hooray!]]}
|
|
}))
|
|
elseif s.main == 7 then
|
|
if s.branch_brigitte == 1 then
|
|
change_screen(screen_conversation({
|
|
{neighbor_portrait, [[the fireworks festival? on my farm? you betcha!]]},
|
|
{neighbor_portrait, [[since harvest is over it's totally free.]]},
|
|
{ph_p, [[yippee!]]},
|
|
}))
|
|
s.branch_brigitte = 2
|
|
if s.branch_brigitte == 2 and s.branch_lenore == 3 and s.branch_hans == 3 then
|
|
s.main = 8
|
|
end
|
|
elseif s.branch_brigitte == 2 then
|
|
change_screen(screen_conversation({{neighbor_portrait, [[meet up at the library for viewing, right?]]}}))
|
|
if s.branch_brigitte == 2 and s.branch_lenore == 3 and s.branch_hans == 3 then
|
|
s.main = 8
|
|
end
|
|
end
|
|
elseif s.main == 8 then
|
|
change_screen(screen_conversation({{neighbor_portrait, [[meetchya at the library for watching the fireworks!]]}}))
|
|
elseif s.main == 9 then
|
|
change_screen(screen_conversation({{door_portrait, "[no one is here.]"}}))
|
|
end
|
|
end |