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({ {phoebe_portrait, [[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, [[... hey, you're an alchemist, right?]]}, {phoebe_portrait, [[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?]]}, {phoebe_portrait, [[my grandfather never taught me to make explosives,]]}, {phoebe_portrait, "because they're dangerous."}, {neighbor_portrait, [[damn. maybe the witch knows how to make them? she knows all sorts of things.]]}, {phoebe_portrait, [[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?]]}, {phoebe_portrait, [[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?]]}, {phoebe_portrait, [[no and actually she was really rude about it!]]}, })) else change_screen(screen_conversation({ {phoebe_portrait, [[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?]]}, {phoebe_portrait, [[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.]]}, {phoebe_portrait, [[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?]]}, {phoebe_portrait, [[grrrr!]]} })) elseif s.main == 6 then change_screen(screen_conversation({ {neighbor_portrait, [[that bomb worked a treat on my boulder!]]}, {phoebe_portrait, [[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.]]}, {phoebe_portrait, [[yippee!]]}, })) s.branch_brigitte = 2 if s.branch_brigitte == 2 and s.branch_lenore == 3 and s.branch_hans == 3 then s.branch_main = 8 end elseif s.branch_brigitte == 2 then change_screen(screen_conversation({{neighbor_portrait, [[meet up at the library for viewing, right?]]}})) 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