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.
71 lines
2.6 KiB
71 lines
2.6 KiB
function script_charcoal_seller(s) -- the brick house!
|
|
if s.main == 1 or s.main == 2 or s.main == 3 or s.main == 4 or s.main == 5 or s.main == 6 then
|
|
if not s.hans_talked then
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "hey phoebe. if your family's not doing the festival this year"},
|
|
{seller_portrait, "you don't need the whole bulk order of charcoal, right?"},
|
|
{phoebe_portrait, "yeah."},
|
|
{seller_portrait, "well, you can take as much as you need.", function()
|
|
add(inventory, make_item(library.item_blueprints.charcoal))
|
|
sfx(7)
|
|
toast("received charcoal!")
|
|
end},
|
|
}))
|
|
s.hans_talked = true
|
|
else
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "hey phoebe. charcoal's out back.", function()
|
|
add(inventory, make_item(library.item_blueprints.charcoal))
|
|
sfx(7)
|
|
toast("received charcoal!")
|
|
end},
|
|
}))
|
|
end
|
|
elseif s.main == 7 then
|
|
if s.branch_hans == 1 then
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "if you get me the fireworks, i can run the show. 3 boxes should do it."}
|
|
}))
|
|
s.branch_hans = 2
|
|
elseif s.branch_hans == 2 then
|
|
fireworks = player_has("fireworks", 3)
|
|
if fireworks == nil then
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "i need three boxes of fireworks if we're gonna do a show."},
|
|
{seller_portrait, "oh, and i figure you'll need charcoal still.", function()
|
|
add(inventory, make_item(library.item_blueprints.charcoal))
|
|
sfx(7)
|
|
toast("received charcoal!")
|
|
end}
|
|
}))
|
|
else
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "this looks good. fantastic quality."},
|
|
{seller_portrait, "i'll set up the show and meet you at the library for viewing!"}
|
|
}))
|
|
|
|
for x in all(fireworks) do del(inventory, x) end
|
|
s.branch_hans = 3
|
|
if s.branch_hans == 3 and s.branch_lenore == 3 and s.branch_brigitte == 2 then
|
|
s.main = 8
|
|
end
|
|
end
|
|
elseif s.branch_hans == 3 then
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "i'll meet you at the library for viewing when you're ready."},
|
|
}))
|
|
add(inventory, make_item(library.item_blueprints.charcoal))
|
|
sfx(7)
|
|
toast("received charcoal!")
|
|
end -- end hans branch
|
|
elseif story_state.main == 8 then
|
|
change_screen(screen_conversation({
|
|
{seller_portrait, "i'll meet you at the library for watching the fireworks!"},
|
|
}))
|
|
elseif story_state.main == 9 then
|
|
change_screen(screen_conversation({{door_portrait, "[no one is here.]"}}))
|
|
sfx(7)
|
|
add(inventory, make_item(library.item_blueprints.charcoal))
|
|
toast("received charcoal!")
|
|
end
|
|
end |