function script_lenore(story_state) if story_state.main == 1 then water = player_has(library.recipes.distilled_water.title) if water == nil then change_screen(screen_conversation({ {phoebe_portrait, [[hi lenore!]]}, {lenore_portrait, [[hey alchemist. did you get my letter?]]}, {phoebe_portrait, [[ah! i haven't gotten around to it but i'll get right on it!]]}, {lenore_portrait, [[thanks, kid.]]} })) else change_screen(screen_conversation({ {phoebe_portrait, [[hey lenore! here's the clean water you requested!]]}, {lenore_portrait, [[thanks, kid. there's one other thing.]]}, {lenore_portrait, [[my usual pharmacist is on vacation.]]}, {lenore_portrait, [[think you could take this recipe and make a potion for a patient?]]}, {lenore_portrait, [[she lives in the house with a red roof just to the east of here.]]}, {lenore_portrait, [[there should be healing herbs southeast of here.]]}, {lenore_portrait, [[oh, and by the way -- here's that reagent i promised you.]]}, {phoebe_portrait, [[do you have a recipe for reagent? i'd love to learn to make it!]]}, {lenore_portrait, [[yeah, sure. you start by doing this...]], function() del(inventory, water) add(inventory, make_item(library.item_blueprints.reagent)) add(grimoire, library.recipes.reagent) toast("received reagent recipe!") end} })) story_state.main = 2 end elseif story_state.main == 2 then change_screen(screen_conversation({ {lenore_portrait, [[you get that potion to my patient? red roof to the east.]]} })) elseif story_state.main == 3 then change_screen(screen_conversation({{lenore_portrait, [[thanks for helping out my patient.]]}})) elseif story_state.main == 4 or story_state.main == 5 or story_state.main == 6 then change_screen(screen_conversation({ {lenore_portrait, [[hey phoebe. any aches or pains?]]}, {phoebe_portrait, [[i'm in tip-top shape!]]}, })) elseif story_state.main == 7 then if story_state.branch_lenore == 1 then change_screen(screen_conversation({ {lenore_portrait, [[whoa, you can't just set off fireworks willy-nilly. get me 3 clean bandages and a distilled water.]]}, {lenore_portrait, [[you can't do something as dangerous as fireworks without being prepared for the worst.]]}, {phoebe_portrait, [[you got it!!]]}, })) story_state.branch_lenore = 2 elseif story_state.branch_lenore == 2 then local bandages = player_has("bandages", 3) local water = player_has("distilled water") if bandages == nil or water == nil then change_screen(screen_conversation({ {lenore_portrait, [[i need 3 clean bandages and a distilled water.]]} })) else change_screen(screen_conversation({ {lenore_portrait, [[thanks. this looks good. i'll meet you at the library for viewing when you're ready.]]} })) for x in all(bandages) do del(inventory, x) end del(inventory, water) story_state.branch_lenore = 3 if story_state.branch_hans == 3 and story_state.branch_lenore == 3 and story_state.branch_brigitte == 2 then story_state.main = 8 end end elseif story_state.branch_lenore == 3 then change_screen(screen_conversation({{lenore_portrait, [[i'll meet you at the library for viewing when you're ready.]]}})) end -- lenore branch finished elseif story_state.main == 8 then change_screen(screen_conversation({{lenore_portrait, [[i'll see you at the library for viewing the festival!]]}})) elseif story_state.main == 9 then change_screen(screen_conversation({{door_portrait, "[no one is here.]"}})) end end