:check_mailbox
  js Variables.mailCount = Managers.Mailbox.mailCount();
  if Variables.mailCount > 0
    if Variables.mailCount == 1
      Player ("I have one new mail.", "Read mail", "View items", "Do Nothing", "Do Nothing")
    else
      Player ("I have <var:mailCount> new mail.", "Read mail", "View items", "Do Nothing", "Do Nothing")
    end
  else
    Player ("I have no new mail.", "View items", "Do Nothing", "Do Nothing")
  end

  if response == "Read mail"
    js Managers.Mailbox.readMail();
    return
  end

  if response == "View items"
    play child mailbox_view_items
    return
  end

:mailbox_view_items
  js Managers.Items.openMailbox();

:mailbox_empty
  Player "There's no more mail."

:mailbox_spam
  Player "Just some spam."
