:brittany_flower_festival
  Brittany "The first flowers of the year have grown now. We collected some of them to make the town prettier."

:brittany_flower_festival_ending
  if-switch playerWonFlowerFestival
    Brittany "Congratulations, <name>! You're really good at this."
    return
  end

  if-variable flowerFestivalWinner is Brittany
    Brittany "Huh, I actually won the game! It's been ages since that last happened."
    return
  end

  Brittany "This was fun, wasn't it? It's a nice break from all the work."

:benjamin_flower_festival
  Benjamin "This time, I'm only here for the party."
  js Managers.Villagers.turn('Raphael', 'Player')
  Raphael "When is it starting?"

:raphael_flower_festival
  Raphael "I can't wait for the party to start."
  js Managers.Villagers.turn('Benjamin', 'Player')
  Benjamin "This year's party is going to be the best!"

:benjamin_flower_festival_ending
  Benjamin "Now that the games are over, it's party time!"

:raphael_flower_festival_ending
  Raphael "Will you join us for the after party, <name>?"

:julia_flower_festival
  Julia "Hey <name>! Welcome to the flower festival. Please, talk to Amanda if you want to participate."

:julia_flower_festival_ending
  if-switch playerWonFlowerFestival
    Julia "Congratulations on your victory, <name>! Your prize will be delivered to your farm tomorrow morning."
    return
  end

  Julia "Thank you for joining us today, <name>!"

:viktor_flower_festival
  Viktor "To win this game you need to pay attention to your surroundings. I'm the best at that."

:viktor_flower_festival_ending
  if-switch playerWonFlowerFestival
    Viktor "Wow, you actually beat me on my strongest game. I'm surprised."
    return
  end

  if-variable flowerFestivalWinner is Viktor
    if-switch playerGotSecondPlaceOnFlowerFestival
      Viktor "Congratulations on getting second place, <name>! You're pretty good at it too."
      return
    end

    Viktor "Did you go easy on me, <name>? This was almost too easy."
    return
  end

  Viktor "I can't believe I lost. I'm supposed to be the best at this game."

:serge_flower_festival
  Serge "Hello, <name>. Would you like to buy some flower seeds? I have a special price today."

  wait 10
  snap
  flowerFestival openShop

:serge_flower_festival_ending
  if-switch playerWonFlowerFestival
    Serge "Congratulations on your victory, <name>! Why don't you buy some flower seeds to grow on your farm and cherish this moment?"
  else
    Serge "Hello <name>! Would you like to buy some flower seeds? They will definitely cheer you up."
  end

  wait 10
  snap
  flowerFestival openShop

:chloe_flower_festival
  Chloe "Hello there, young <name>. Would you like something to eat?"

  wait 10
  snap
  flowerFestival openSnackShop

:chloe_flower_festival_ending
  if-switch playerWonFlowerFestival
    Chloe "Hello <name>, congratulations for winning the games today. Would you like to replenish your energies?"
  else
    Chloe "Hello <name>, would you like something to restore your energies?"
  end

  wait 10
  snap
  flowerFestival openSnackShop

:gabriel_flower_festival
  Gabriel "Everyone is in high spirits today."

:gabriel_flower_festival_ending
  Gabriel "This game actually seems fun, maybe I should participate next time."

:lucas_flower_festival
  Lucas "Will you join the games, <name>? Make sure to pay attention to the instructions."

:lucas_flower_festival_ending
  if-switch playerWonFlowerFestival
    Lucas "Congratulations, <name>! I'm really happy for you."
    return
  end

  Lucas "Was the game too hard? I don't like losing, so I avoid competing in games that require luck."

:stella_flower_festival
  Stella "I wonder if we can use some of those flowers to decorate the chicken festival later this month."

:nathalia_flower_festival
  Nathalia "Everything looks so pretty today. I hope the town keeps the decoration all year long."

:nathalia_flower_festival_ending
  if-switch playerWonFlowerFestival
    Nathalia "Hey, you're good at this! Congratulations, <name>!"
    return
  end

  if-variable flowerFestivalWinner is Nathalia
    Nathalia "I was only trying to have some fun, I never thought I would win the games!"
    return
  end

  Nathalia "This game is really fun, I loved playing it."

:devin_flower_festival
  Devin "Will you join the games, <name>? I'm gonna try to win this year."

:devin_flower_festival_ending
  if-switch playerWonFlowerFestival
    Devin "Congratulations, <name>! I should've known I wouldn't win."
    return
  end

  if-variable flowerFestivalWinner is Devin
    Devin "Did I actually win? I'm not used to that, but it feels good!"
    return
  end

  Devin "Once again I didn't win. Maybe next year I'll have a better luck."

:bonnie_flower_festival
  Bonnie "As far as I know there are no poison flowers around here, so I don't expect anything exciting to happen today."

:bonnie_flower_festival_ending
  Bonnie "Nice to see everyone enjoying themselves, even though nothing really exciting happened today."

:cindy_flower_festival
  Cindy "This festival is super fun, even I can join in on the games."

:cindy_flower_festival_ending
  if-switch playerWonFlowerFestival
    Cindy "Hey <name>, congratulations! It was fun to play with you."
    return
  end

  if-variable flowerFestivalWinner is Cindy
    Cindy "Did...<wait> did I really win? I'm so happy I want to cry."
    # Cindy "<cry>"
    Cindy "I'm sorry, I'm not used to winning in anything."
    return
  end

  Cindy "Hey <name>, It was super fun to play with you. Did you enjoy it too?"

:billy_flower_festival
  Billy "You have no chance against me."

:billy_flower_festival_ending
  if-switch playerWonFlowerFestival
    Billy "As much as it pains me to say this, congratulations <name>. You played well."
    return
  end

  if-variable flowerFestivalWinner is Billy
    Billy "This game was harder than I expected. I'm glad I still managed to win."
    return
  end

  Billy "This game was harder than I expected."

:ilda_flower_festival
  Ilda "Everything looks so pretty here today and everyone seems to be having fun. I couldn't ask for anything else."

:annie_flower_festival
  Annie "I thought there was going to be free food here today."

:annie_flower_festival_ending
  Annie "I couldn't participate on the games, I would probably end up cheating if I did."

:richard_flower_festival
  Richard "I don't care about the flowers, but my brother isn't working today so I want to enjoy the day with him."

:phi_flower_festival
  Phi "Will you give me the prettiest flower you find, <name>?"

:amanda_flower_festival
  Amanda ("Hello <name>. We would like to start the flower festival now, are you ready?", "I'm ready", "Please wait a little longer")

  if response == "I'm ready"
    Amanda "Perfect, we're going to start in a minute!"
    Amanda ("The game will involve several colors, so if you're colorblind just let me know and I'll adjust the rules.", "I'm colorblind", "I'm not", "Let me think about it", "Let me think about it")
    if response == "I'm colorblind"
      switch colorblindMode ON
    else
      if response == "I'm not"
        switch colorblindMode OFF
      else
        Amanda "Ok, but please be quick because everyone is waiting."
        return
      end
    end

    Amanda "Alright, let's start!"
    include start_flower_event
    return
  end

  Amanda "I'll wait, but everyone else is ready so please don't take long."

:amanda_flower_festival_ending
  if-switch playerWonFlowerFestival
    Amanda "Congratulations on your victory, <name>! Your prize will be sent to your farm tomorrow morning."
    return
  end

  if-switch playerGotSecondPlaceOnFlowerFestival
    Amanda "Congratulations on your second place, <name>! Your prize will be sent to your farm tomorrow morning."
    return
  end

  if-switch playerGotThirdPlaceOnFlowerFestival
    Amanda "Congratulations on your third place, <name>! Your prize will be sent to your farm tomorrow morning."
    return
  end

  Amanda "Did you enjoy the games, <name>? You didn't win this time, but there'll be many opportunities to try again."

