:devin_events_gift_1
  switch nathaliaLightsOn ON
  create villager Devin 18,41,8

  preload character villagers/devin_item
  preload character villagers/nathalia_item

  wait 60
  switch nathaliaLightsOn OFF
  wait 60
  Nathalia openDoor
  wait 60
  create villager Nathalia 18,37,2
  wait 10
  move villager Nathalia 18,38,2
  Nathalia closeDoor

  wait for Nathalia
  Nathalia "<?>"

  wait for Devin

  Nathalia "Devin? What are you doing here?"
  Devin "I was passing by and thought I would say hello."
  Devin "Are you finished working for the day?"

  move villager Nathalia 18,40,2
  wait for Nathalia
  Nathalia "I am! It was a slow day, but I couldn't wait to leave and grab something to eat."
  Devin "Speaking of eating, do you remember that chocolate I owe you?"
  wait 30
  
  villager_item_display Devin chocolate
  play sound PickItem
  
  wait 30

  Devin "Here it is!"
  Nathalia "<heart>"
  Nathalia "I can't believe it! I was kidding when I said that! Hahahahaha!"
  Nathalia "But of course I'll accept it! You know I love chocolate!"

  js $gamePlayer.setPosition(28, 41);
  + $gamePlayer.setDirection(Direction.LEFT);
  + $gamePlayer.setMoveSpeed(3);
  switch hidePlayer OFF
  move villager Player 19,41,4

  wait 30
  villager_item_display Devin none
  villager_item_display Nathalia chocolate
  wait 30

  Nathalia "Thank you very much!"

  villager_item_display Nathalia none

  Nathalia "<heart:async>"
  
  wait for Player
  turn Devin right
  wait 20
  turn Nathalia right
  wait 30
  Nathalia "<name>!"
  Devin "<name>, are you finished working for the day?"
  
  wait for Player

  Player "Kind of... It's getting late, but there's always something I can do."
  Devin ("Well, tell me one thing. Sweet or Savory?", "Sweet", "Savory")

  wait 30
  turn Devin up
  wait 30
  if response == "Sweet"
    switch playerChoseSweet ON
    switch playerChoseSavory OFF
    villager_item_display Devin chocolate-icecream
  else
    villager_item_display Devin sandwich
    switch playerChoseSweet OFF
    switch playerChoseSavory ON
  end
  wait 30

  turn Devin right
  wait 30

  Devin "This one is for you."

  wait 30
  if-switch playerChoseSweet
    gain item chocolate-icecream
    displayItemId chocolate-icecream
    villager_item_display Devin none
  else
    gain item sandwich
    displayItemId sandwich
    villager_item_display Devin none
  end
  wait 30

  Player "Oh my, thank you Devin!"
  wait 30
  js Managers.Items.displayItemId = 'none';
  turn Nathalia down
  wait 30
  js Managers.Items.displayItemId = undefined;
  Nathalia "Do you always carry those with you?"

  turn Devin up
  Devin "Not always, only when I think that work should be rewarded."
  Nathalia "<wait>..."
  Player "<wait>..."
  Nathalia "Your father told you to spoil us a little, so we would always go to his store?"
  Nathalia "Like an elaborate publicity?"
  wait 30
  turn Devin right
  wait 30
  turn Devin up
  wait 30
  turn Devin right
  wait 30
  turn Devin up
  wait 30
  Devin "Is it so hard to believe that I'm rewarding your good work?"
  Nathalia "Yes."
  Player "Absolutely."
  Devin "Well, I just wanted to spoil you two a little, but fine, I'll take your skepticism."
  Nathalia "Here comes the drama."
  Nathalia "Look, I liked your gift and I imagine that <name> liked <his> as well."
  Nathalia "You're very considerate, we can't deny that, but I have to go now! I need to fill this potbelly."
  Nathalia "Thank you again, Devin."
  
  move villager Nathalia 29,40,2
  wait 30
  turn Devin right
  wait 30
  turn Player right
  wait 120
  Devin "Is it so hard to believe that gift is a reward for your work?"
  turn Player left

  Player "Considering everything.<wait>.<wait>.<wait> yes."
  Devin "Gosh... we are not hares and hounds here, why don't you two trust me?"
  Devin "Anyway... I got to go. Enjoy your gift."
  wait 30
  move Devin 5,41,8
  wait 60
  switch playedDevinHeartEvent0 ON
  transfer now
  speed Player restore

  increase friendship Devin x 100
  remove villager Devin
  remove villager Nathalia

  release character villagers/devin_item
  release character villagers/nathalia_item

  wait 1

:devin_events_gift_2
  create villager Devin 8,40,2
  villager_item_display Devin notebook
  
  wait 60
  Serge openDoor
  wait 40
  Devin "<music:async>"
  wait 30
  create villager Serge 5,38,2
  wait 10
  move villager Serge 5,40,6
  Serge closeDoor

  wait for Serge
  wait 20
  Serge "<cobweb>"
  wait 40
  move villager Serge 7,40,6
  wait for Serge
  wait 30
  Serge "<...>"
  wait 60
  Serge "<cobweb>"
  wait 90
  Serge "Devin! You know I can see you procrastinating out here, don't you?"
  Devin "<?:async>"
  wait 20
  turn Devin left
  wait 60
  Devin "Sorry dad.<wait> I got distracted with...<wait> stuff."
  Serge "What are those notes you're holding? Let me see."
  Devin "... Sure."
  wait 20
  villager_item_display Devin none
  wait 90
  Devin "<...>"
  wait 30

  if Switches.playerChoseSavory
    js Variables.devinsGiftToPlayer = Managers.Text.item('sandwich');
  else
    js Variables.devinsGiftToPlayer = Managers.Text.item('chocolate-icecream');
  end

  Serge "...<wait>Nathalia...<wait>Chocolate...<wait><BR>...<wait><name>...<wait><var:devinsGiftToPlayer>...<wait><BR>...<wait>Benjamin...<wait>Cake...<wait>"
  Serge "Is this a list of things that people need?"
  Devin "...?<wait><wait> Yes! That's exactly it!"
  Serge "So you are working after all. Keep at it, son."
  wait 20
  villager_item_display Devin notebook
  wait 30
  move villager Serge 5,40,8
  wait for Serge
  move villager Serge 5,39,8
  wait for Serge
  Serge openDoor
  wait 30
  move villager Serge 5,38,remove
  wait 20
  turn Devin down
  villager_item_display Devin none
  wait 30
  Serge closeDoor
  Devin "That was close..."
  wait 30

  fade out
  wait 20
  switch hidePlayer off
  switch playedDevinHeartEvent0B on

  transfer now

  wait 1
  fade in

:devin_events_gift_3
  create villager Devin 17,13,6
  create villager Benjamin 17,14,6
  create villager Chloe 19,13,4

  wait 60

  Devin "...and that's why water dripping day by day wears the hardest rock away."
  Benjamin "Indeed, you can't deny that."
  Devin "Well, I have to go now, but first..."
  wait 30
  villager_item_display Devin cake
  play sound PickItem

  wait 20
  turn Devin down
  wait 20
  Devin "I had a spare cake around, do you want it?"
  turn Benjamin up
  Benjamin "<!>"
  wait 30
  Benjamin "Where did you take that from, Devin?"
  Devin "From the kitchen."
  Benjamin "Well, of course I know that, but why?"
  Benjamin ".<wait>.<wait>.<wait> Is this a publicity thing your father asked you to do?"
  Devin "Of course not! Can't I give you a gift for being the town's cowboy?"
  Benjamin "That doesn't make sen...<close>"
  Devin "Would you rather I give it to your sister?"
  Benjamin "Too late, hand it over!"
  wait 30
  villager_item_display Devin none
  play sound DropItem

  wait 30
  Benjamin "Thank you, Devin! And if you meant Julia, she wouldn't like the cake as much as I do. She's more into pizzas."
  Devin "Pizza, huh? Good to know."
  Devin "Well, I have to go now. See you later!"
  wait 30
  speed Devin 3
  move villager Devin 11,13,2
  wait 60
  turn Benjamin left
  wait for Devin
  move villager Devin 11,19,remove

  wait 30
  turn Benjamin right
  wait 30
  Benjamin "Obviously I wouldn't refuse a cake like this, but for being the town's cowboy? What a strange reason."

  fade out
  wait 20
  switch hidePlayer off
  switch playedDevinHeartEvent0C on

  teleport to restaurant without saving 11,18,8
  remove villager Benjamin
  remove villager Chloe
  remove villager Devin

  wait 1
  fade in

:devin_events_gift_4
  create villager Devin 59,26,6
  create villager Julia 60,26,4

  preload character villagers/devin_item
  
  wait 60

  Julia "...and that's all I have about them."
  Julia "But can I ask why you are so interested on what the villagers like, Devin?"
  Devin "It´s a... well, it's... a program. A fidelity program, you know?"
  Julia "Woah, really? How does it work?"
  Devin "So... like... we try to buy... sell... we try to sell the stuff that the people from the town like."
  Devin "That way, they'll all come back... I guess... I've been told so."
  Julia "That sounds like a book I studied back in college! Does your father have it? I would like to recollect some things."
  Devin "I think so... Yeah. I can ask him to lend you the book."
  Julia "Perfect! Thank him in advance for me, will you?"
  Devin "Of course. I have to go now, but first..."
  wait 30
  villager_item_display Devin pizza-slice
  wait 30
  Devin "As our first... first customer! Here's something you like."
  Julia "<!>"
  Julia "Really? How did you know?"
  Devin "With the fidelity program!"
  Julia "But didn't it start just now?"
  Devin "You don't want it? That's ok."
  Julia "Of course I want it. Thank you very much."
  wait 30
  villager_item_display Devin none
  wait 60
  Devin "I have to go now, see you later!"

  move villager Devin 59,41,2
  wait 60
  fade out
  wait 20
  switch hidePlayer off
  switch playedDevinHeartEvent0D on

  transfer now
  remove villager Devin
  remove villager Julia
  release character villagers/devin_item

  wait 1
  fade in
