Ms. Pac-Man – Maze Madness is an action-adventure video game for the Nintendo 64, where players control Ms. Pac-Man on a quest to recover the four Gems of Virtue from the witch Mesmerelda, who has taken control of the Enchanted Castle. Using a device called a Pactrometer, Ms. Pac-Man navigates various mazes to reclaim the gems and thwart Mesmerelda's plans.
Professor Pac learns that the witch, Mesmerelda, has seized control of the Enchanted Castle using black magic and from there is planning on stealing all four Gems of Virtue (Generosity; Truth; Wisdom; Courage) to control the `four wonders` (areas of Pac-Land). He creates a device called a Pactrometer which allows Ms. Pac-Man to go to these areas to recover the gems before Mesmerelda can get them first.