:viktor-terrible-gift-taste-request
  Letter "From: Viktor<BR><BR>My brother Richard is studying a lot lately and I want to reward him with a nice gift. Can anybody bring me one <var:viktorTerribleGiftItemName> before the end of the day?<BR><BR>Reward: $ <var:viktorTerribleGiftReward>."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept viktor-terrible-gift-taste
  end

:viktor-terrible-gift-taste-ready
  Viktor "Hello <name>. Did you bring me the <var:viktorTerribleGiftItemName> I requested?"
  Notice ("Deliver <var:viktorTerribleGiftItemName>?", "Yes", "No", "No")
  
  if response == "Yes"
    Viktor "Thank you, <name>! Richard is gonna love this. Here's your reward."
    js Managers.Items.loseItemId(Variables.viktorTerribleGiftItemId);

    complete viktor-terrible-gift-taste
  else
    Viktor "It's alright, I'll be waiting until the end of the day."
  end

:phi-weird-tree-request
  Letter "From: Phi<BR><BR>I want to plant a <var:phiWeirdTreeItemName> tree behind my house. Can someone bring me a <var:phiWeirdTreeItemName> sometime today?<BR><BR>I'll pay $ <var:phiWeirdTreeReward> for it."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept phi-weird-tree
  end

:phi-weird-tree-ready
  Phi "Hi <name>! Did you bring me <var:phiWeirdTreeItemName> I requested?"
  Notice ("Deliver <var:phiWeirdTreeItemName>?", "Yes", "No", "No")

  if response == "Yes"
    Phi "Thank you, <name>! When the tree grows I'll give you a <var:phiWeirdTreeItemName> from it."
    js Managers.Items.loseItemId(Variables.phiWeirdTreeItemId);

    complete phi-weird-tree
  else
    Phi "Don't keep me waiting!"
  end

:annie-experiment-request
  Letter "From: Annie<BR><BR>I want to do an experiment and I require some items. Can someone bring me the following items before I go home?<BR><BR>A Chocolate<BR>An Onion<BR>A Sugarcane<BR><BR><BR>I'll pay $ 400 for it."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept annie-experiment
  end

:annie-experiment-ready
  Annie "Hey <name>! Did you bring me the ingredients?"
  Notice ("Deliver items?", "Yes", "No", "No")

  if response == "Yes"
    Annie "Thank you so much! I'm looking forward to the results of this experiment!"
    js Managers.Items.loseItemId('onion');
    + Managers.Items.loseItemId('chocolate');
    + Managers.Items.loseItemId('sugarcane');
    + Managers.Items.gainGold(400);

    complete annie-experiment
  end


:bonnie-treatment-help-request
  Letter "From: Bonnie<BR><BR>I desperately need one <var:bonnieTreatmentItemName> for a patient's treatment. If anybody brings me one by the end of the day, I'll pay $ <var:bonnieTreatmentReward> for it."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept bonnie-treatment-help
  end

:bonnie-treatment-help-ready
  Bonnie "<name>! You're finally here. Did you bring me the <var:bonnieTreatmentItemName> I requested?"
  Notice ("Deliver <var:bonnieTreatmentItemName>?", "Yes", "No", "No")

  if response == "Yes"
    Bonnie "Thank you so much, <name>! I should be able to continue the patient's treatment now."
    js Managers.Items.loseItemId(Variables.bonnieTreatmentItemId);

    complete bonnie-treatment-help
  else
    Bonnie "Hurry up!"
  end

:benjamin-fertilizer-ingredients-request
  Letter "From: Benjamin<BR><BR>I'm trying to make a new type of fertilizer, but I'm missing an ingredient: <var:benjaminFertilizerItemName>.<BR><BR> If anybody brings me one by the end of the day, I'll pay $ <var:benjaminFertilizerReward> for it."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept benjamin-fertilizer-ingredients
  end

:benjamin-fertilizer-ingredients-ready
  Benjamin "<name>! Did you bring me the <var:benjaminFertilizerItemName> I requested?"
  Notice ("Deliver <var:benjaminFertilizerItemName>?", "Yes", "No", "No")

  if response == "Yes"
    Benjamin "Thank you, <name>! I hope this fertilizer works out."
    js Managers.Items.loseItemId(Variables.benjaminFertilizerItemId);

    complete benjamin-fertilizer-ingredients
  else
    Benjamin "No problem!"
  end

:chloe-saci-defense-request
  Letter "From: Chloe<BR><BR>I'm afraid the Saci will pull some kind of prank against me tonight. I need one <var:chloeSaciDefenseItemName> to defend myself.<BR><BR> If you bring me one by the end of the day, I'll pay you $ <var:chloeSaciDefenseReward>."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept chloe-saci-defense
  end

:chloe-saci-defense-ready
  Chloe "Hello <name>! Did you bring me the <color:important><var:chloeSaciDefenseItemName></color> I requested?"
  Notice ("Deliver <var:chloeSaciDefenseItemName>?", "Yes", "No", "No")

  if response == "Yes"
    Chloe "Thank you, <name>! I'm feeling safer now."
    js Managers.Items.loseItemId(Variables.chloeSaciDefenseItemId);

    complete chloe-saci-defense
  end

:devin-broken-furniture-request
  Letter "From: Devin<BR><BR>I broke some stuff in my room yesterday. I need some <var:devinBrokenFurnitureItemName> to fix it. <BR><BR> If you bring me one by the end of the day, I'll pay you $ <var:devinBrokenFurnitureReward>."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept devin-broken-furniture
  end

:devin-broken-furniture-ready
  Devin "Hey <name>! Did you bring me the <var:devinBrokenFurnitureItemName> I requested?"
  Notice ("Deliver <var:devinBrokenFurnitureItemName>?", "Yes", "No", "No")

  if response == "Yes"
    Devin "Thank you, <name>! I should be able to fix my stuff now."
    js Managers.Items.loseItemId(Variables.devinBrokenFurnitureItemId);

    complete devin-broken-furniture
  end

:karl-ultimate-cake-recipe-request
  Letter "From: Karl<BR><BR>Yesterday, Chloe gave me a new cake recipe. She says it is the best cake she ever made. I want to make one even better, but I need a special ingredient for that: <var:karlCakeIngredientName>. <BR><BR>If you bring me one by the end of the day, I'll pay the special price it deserves: $ <var:karlCakeIngredientReward>."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")
  if response == "Yes"
    accept karl-ultimate-cake-recipe
  end

:karl-ultimate-cake-recipe-ready
  Karl "Can I help you, <name>?"
  Notice ("Talk about the request?", "Yes", "No", "No")
  if response == "Yes"
    Player "I brought the ingredient you need for your cake recipe. One <var:karlCakeIngredientName>, right?"
    Karl "Yes, that is exactly what I need. Here's your reward."
    js Managers.Items.loseItemId(Variables.karlCakeIngredientItemId);
    complete karl-ultimate-cake-recipe
  end

:richard-request
  Letter "From: Richard<BR><BR>I need a new <var:richardRequestName>, please. Phi stole mine and doesn't want to return it! I have $ <var:richardRequestReward> from my allowance to pay for it! Thanks!"
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept richard-request
  end

:richard-request-ready
  Richard "Hello <name>! Do you have the <var:richardRequestName> that I asked for?"
  Notice ("Deliver <var:richardRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Richard "Thank you, thank you! I'll keep this one well hidden in my room so that Phi can't steal it."
    js Managers.Items.loseItemId(Variables.richardRequestItemId);

    complete richard-request
  end

:gabriel-request
  Letter "From: Gabriel<BR><BR>I'm looking for 1 <var:gabrielRequestName> for tomorrow's show!<BR>I'm willing to give your name a shout out during the show as thanks for the help."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept gabriel-request
  end

:gabriel-request-ready
  Gabriel "Hello there. It's <name>, right? Do you have the <var:gabrielRequestName> that I'm looking for?"
  Notice ("Deliver <var:gabrielRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Gabriel "Much appreciated! I'll let all my fans know that you're a reliable person."
    js Managers.Items.loseItemId(Variables.gabrielRequestItemId);

    complete gabriel-request
  end

:julia-request
  Letter "From: Julia<BR><BR>URGENT!<BR><BR>The town hall is in need of a <var:juliaRequestName>. We are offering $ <var:juliaRequestReward> to whoever delivers it. It is extremely important for the future of Orange Town!!!"
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept julia-request
  end

:julia-request-ready
  Julia "<Good morning>, <name>! Do you have the <var:juliaRequestName> that the town needs?"
  Notice ("Deliver <var:juliaRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Julia "Thank you very much for your help. You just saved the town!"
    js Managers.Items.loseItemId(Variables.juliaRequestItemId);

    complete julia-request
  end

:billy-request
  Letter "From: Billy<BR><BR>I need a <var:billyRequestName> delivered to me before Rory finds out what happened to his. Please, I'll pay $ <var:billyRequestReward> to whoever saves my skin."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept billy-request
  end

:billy-request-ready
  Billy "Oh, it's you... Do you have the <var:billyRequestName> that I need? I'm so desperate that I'm willing to pay even you for it."
  Notice ("Deliver <var:billyRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Billy "Thanks."
    js Managers.Items.loseItemId(Variables.billyRequestItemId);

    complete billy-request
  end

:brittany-request
  Letter "From: Brittany<BR><BR>I'm looking for a <var:brittanyRequestName> to use on my farm. I can pay $ <var:brittanyRequestReward> as a reward for the help."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept brittany-request
  end

:brittany-request-ready
  Brittany "<Good morning>, <name>! Do you have the <var:brittanyRequestName> that I need?"
  Notice ("Deliver <var:brittanyRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Brittany "Thank you for the help. I really needed this today."
    js Managers.Items.loseItemId(Variables.brittanyRequestItemId);

    complete brittany-request
  end

:cindy-request
  Letter "From: Cindy<BR><BR>I'm sorry to bother, but I currently need a <var:cindyRequestName> for my studies. Can someone bring me one by the end of the day? I can pay $ <var:cindyRequestReward> for the trouble.<BR><BR>Thank you very much."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept cindy-request
  end

:cindy-request-ready
  Cindy "<Good morning>, <name>! Do you have the <var:cindyRequestName> that I need?"
  Notice ("Deliver <var:cindyRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Cindy "Thank you! It'll be a great help with my studies."
    js Managers.Items.loseItemId(Variables.cindyRequestItemId);

    complete cindy-request
  end

:serge-request
  Letter "From: Serge<BR><BR>There's one <var:sergeRequestName> missing from my storage. Would anyone be so kind as to find me a replacement? I can pay you $ <var:sergeRequestReward> for the trouble."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept serge-request
  end

:serge-request-ready
  Serge "<Good morning>, <name>! Do you have the <var:sergeRequestName> that I need?"
  Notice ("Deliver <var:sergeRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Serge "Thank you! I won't forget you kindness."
    js Managers.Items.loseItemId(Variables.sergeRequestItemId);

    complete serge-request
  end

:nathalia-request
  Letter "From: Nathalia<BR><BR>I just read a book about three monkeys and a flying <var:nathaliaRequestName> and that got me really curious.<BR>Can someone bring me one <var:nathaliaRequestName> so I can check if it can fly? I'll pay accordingly."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept nathalia-request
  end

:nathalia-request-ready
  Nathalia "Hello, <name>! Do you have the <var:nathaliaRequestName> that I want?"
  Notice ("Deliver <var:nathaliaRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Nathalia "Thank you! I can't wait to figure out if it can really fly."
    js Managers.Items.loseItemId(Variables.nathaliaRequestItemId);

    complete nathalia-request
  end

:raphael-request
  Letter "From: Raphael<BR><BR>Simple and short: I need a <var:raphaelRequestName> for work. I'm willing to pay $ <var:raphaelRequestReward> for it, so please bring it before the end of the day."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept raphael-request
  end

:raphael-request-ready
  Raphael "Hello, <name>! Do you have the <var:raphaelRequestName> that I need for work?"
  Notice ("Deliver <var:raphaelRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Raphael "Much appreciated! Here's your payment."
    js Managers.Items.loseItemId(Variables.raphaelRequestItemId);

    complete raphael-request
  end

:lucas-request
  Letter "From: Lucas<BR><BR>I currently need one <var:lucasRequestName>, but I'm not willing to disclose what I'm going to do with it."
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept lucas-request
  end

:lucas-request-ready
  Lucas "Hello <name>, <good morning>! Do you have the <var:lucasRequestName> that I need?"
  Notice ("Deliver <var:lucasRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Lucas "Thanks a lot! Here's your payment."
    js Managers.Items.loseItemId(Variables.lucasRequestItemId);

    complete lucas-request
  end

:amanda-request
  Letter "From: Amanda<BR><BR>My flowers are telling me that we need a big <var:amandaRequestName>. Can someone bring me one before the end of the day?"
  wait 1
  Notice ("Accept the request?", "Yes", "No", "No")

  if response == "Yes"
    accept amanda-request
  end

:amanda-request-ready
  Amanda "Hello <name>! Do you have the <var:amandaRequestName> that I need?"
  Notice ("Deliver <var:amandaRequestName>?", "Yes", "No", "No")

  if response == "Yes"
    Amanda "Thank you! Here's some money for your troubles."
    js Managers.Items.loseItemId(Variables.amandaRequestItemId);

    complete amanda-request
  end
