Avalon Code

Avalon Code (アヴァロンコード) is an action role-playing game developed by Matrix Software for the Nintendo DS released in Japan on November 1, 2008, in North America on March 10, 2009 and in Europe on March 12, 2010.

Story
The main character (a boy whose default name is Yumil, or a girl whose default name is Tia) has been having nightmares about the end of the world. They are told that they have been chosen by the powers-that-be - but not to save the world. Their job is to use a magic tome called the Book of Prophecy to record what is worth saving, so that that information may be used to create the next world.

The protagonist finds and befriends four helpful Spirits taking residence inside the Book. Throughout the journey, they learn about a plot to hasten the end of the world, as well as what happened to the Book's last Chosen One.