:leave_festival
  js $gamePlayer.goHome();
  wait 1
  js Managers.Festivals.leftFestival();

:confirm_festival_end
  if !Switches.isInsideFestival
    return
  end

  start cutscene

  Player ("If I go home now, I'll miss the rest of the festival...", "Stay here", "Go home", "Stay here")
  if response == "Go home"
    end cutscene
    play child leave_festival
    return
  end

  js Managers.Villagers.move('Player', Math.floor($gamePlayer.x), 33, Direction.UP);
  wait for Player
  end cutscene

:festival_not_ready
  start cutscene
  wait 10
  js Managers.Villagers.move('Player', Math.floor($gamePlayer.x), 2, Direction.DOWN);
  wait for Player
  wait 10
  Player "The festival hasn't started yet."
  end cutscene

:check_festival_board
  # ToDo: Make this event load the festival list automatically
  # js Managers.Festivals.readFestivalList();

  if-variable month == 1
    if-variable day < 8
      Notice "The flower festival will be held on the 9th, on the town square!"
      return
    end

    if-variable day == 8
      Notice "The flower festival will be held tomorrow, on the town square!"
      return
    end

    if-variable day == 9
      Notice "The flower festival is today!"
      return
    end

    if-variable day < 17
      Notice "The chicken festival will be held on the 18th, on the town square!"
      return
    end

    if-variable day == 17
      Notice "The chicken festival will be held tomorrow, on the town square!"
      return
    end

    if-variable day == 18
      Notice "The chicken festival is today!"
      return
    end

    Notice "There are no more festivals this month."
    return
  end

  if-variable month == 2
    if-variable day < 27
      Notice "The tomato festival will be held on the 28th day of summer, on the town square!"
      return
    end

    if-variable day == 27
      Notice "The tomato festival will be held tomorrow, on the town square!"
      return
    end

    if-variable day == 28
      Notice "The tomato festival is today!"
      return
    end

    Notice "There are no more festivals this month."
    return
  end

  if-variable month == 3
    Notice "There are no festivals this month."
    return
  end

  if-variable month == 4
    if-variable day < 8
      Notice "The 9th of this month is the candy day. A special day where everyone gives candy to the kids."
      return
    end

    if-variable day == 8
      Notice "Tomorrow is candy day. A special day where everyone gives candy to the kids."
      return
    end

    if-variable day == 9
      Notice "Today is candy day. A special day where everyone gives candy to the kids."
      return
    end

    Notice "There are no more festivals this month."
    return
  end
