:start_flower_event
  fade out
  teleport to spring flowers from festival without saving (17,33,8)
  wait 1
  fade in

  wait 30

  Amanda "Let's start the Flower Festival Competition. I'll explain the rules now, so please pay attention."
  Amanda "I hid many different flower bouquets in this area. I'll ask you to bring me some of them, one by one."
  Amanda "The faster you're able to bring me the bouquet I ask for, the more points you'll receive for it."
  Amanda "The winner will be whoever has more points at the end of the competition."

  Amanda "Now let's start with the first bouquet:"

  switch isInsideFestivalCompetition ON
  refresh bgm
  wait 10

  flowerFestival start

:flower_festival_red_bouquet
  flowerFestival replaceBouquet red-bouquet

:flower_festival_yellow_bouquet
  flowerFestival replaceBouquet yellow-bouquet
  
:flower_festival_white_bouquet
  flowerFestival replaceBouquet white-bouquet

:flower_festival_pink_bouquet
  flowerFestival replaceBouquet pink-bouquet

:flower_festival_purple_bouquet
  flowerFestival replaceBouquet purple-bouquet

:flower_festival_blue_bouquet
  flowerFestival replaceBouquet blue-bouquet

:amanda_flower_festival_competition
  flowerFestival checkBouquet

:flower_festival_step_1
  villager_item_balloon Amanda red-bouquet

:flower_festival_step_2
  villager_item_balloon Amanda yellow-bouquet
  
:flower_festival_step_3
  villager_item_balloon Amanda white-bouquet
  
:flower_festival_step_4
  villager_item_balloon Amanda purple-bouquet

:flower_festival_step_5
  villager_item_balloon Amanda pink-bouquet
  
:flower_festival_step_6
  villager_item_balloon Amanda blue-bouquet

:flower_festival_skip
  villager_item_balloon Amanda none

  if-variable flowerFestivalStep == 6
    Amanda "Oh, that was actually the last bouquet. Let's go to the game results now."
    include flower_festival_end
    return
  end

  Amanda "Alright, here's your next bouquet:"
  flowerFestival nextStep

:flower_festival_end
  switch isInsideFestivalCompetition OFF
  refresh bgm
  fade out
  wait 20
  remove villager Brittany
  remove villager Billy
  remove villager Devin
  remove villager Nathalia
  remove villager Cindy
  remove villager Viktor
  teleport to spring flowers from festival without saving (17,33,8)
  wait 1

  flowerFestival announceWinners
  fade in

:flower_festival_announce_winnters
  wait 20
  Amanda "Here's how many points each of you made:"
  Amanda "<color:name>Brittany</color>:<wait> <var:flowerFestivalBrittanyScore> points.<wait> <color:name>Billy</color>:<wait> <var:flowerFestivalBillyScore> points.<wait><BR><color:name>Devin</color>:<wait> <var:flowerFestivalDevinScore> points.<wait> <color:name>Nathalia</color>:<wait> <var:flowerFestivalNathaliaScore> points.<wait><BR><color:name>Cindy</color>:<wait> <var:flowerFestivalCindyScore> points.<wait> <color:name>Viktor</color>:<wait> <var:flowerFestivalViktorScore> points.<wait><BR><color:name><name></color>:<wait> <wait><var:flowerFestivalScore> points.<wait>"
  Amanda "Congratulations to <color:name><var:flowerFestivalFirstPlace></color> for winning the competition!"
  Amanda "<color:name><var:flowerFestivalSecondPlace></color> got the second place and <color:name><var:flowerFestivalThirdPlace></color> came in third."
  Amanda "Your prizes will be delivered to your homes tomorrow, don't forget to check your mailbox."

  wait 10
  flowerFestival backToSquare

:flower_festival_amanda_no_bouquet
  flowerFestival pause
  Amanda ("Hurry up and find this bouquet if you want to have a chance. Unless you want to skip to the next bouquet?", "Continue", "Skip Bouquet")

  if response == "Skip Bouquet"
    include flower_festival_skip
    return
  end

  flowerFestival resume

:flower_festival_amanda_wrong_bouquet
  displayItemId none
  flowerFestival pause
  Amanda ("You picked the wrong bouquet, <name>. You can try again, or skip to the next bouquet.", "Try again", "Skip")

  if response == "Skip"
    include flower_festival_skip
    return
  end

  flowerFestival resume

:flower_festival_amanda_right_bouquet
  displayItemId none
  villager_item_balloon Amanda none
  
  if-variable flowerFestivalStep == 6
    Amanda "And that's the last bouquet. Let's check the game results now."
    include flower_festival_end
    return
  end

  Amanda "You brought the right bouquet, <name>. Let's go to the next one now."
  flowerFestival nextStep