is a role-playing video game developed and published by Atlus for the Nintendo 3DS. The game is the fourth mainline entry in the Shin Megami Tensei series, the central series of the Megami Tensei franchise, though no direct story connection exists to previous entries. It was released in May and July 2013 for Japan and North America respectively. It was released digitally in PAL territories (via Sega Europe) in October 2014. The gameplay is reminiscent of previous Shin Megami Tensei games, carrying over the turn-based Press Turn battle system, where players and enemies fight and exploit weaknesses, allowing either side to gain additional turns or lose them.

The story focuses on Flynn, a samurai who protects the medieval Kingdom of Mikado from attacks by hostile demons. When a mysterious Black Samurai begins transforming the population into demons, Flynn and three companions are sent to capture her. The pursuit of the Black Samurai drags Flynn and his comrades into a startling revelation and a power struggle between angelic and demonic forces.

Development began after the completion of Shin Megami Tensei: Strange Journey, with the team deciding to make a fourth numbered entry in the series based on fan requests. The team intended to evoke the style and feeling of the original Shin Megami Tensei. The main characters and some demons were designed by Masayuki Doi, previously known for his work on the Trauma Center series, changing from series veteran Kazuma Kaneko, whose series demon artwork is still featured alongside a host of guest artists' demon designs. It debuted to strong sales in Japan and was one of the better-selling games of the year. Reception of the game has been generally positive in both Japan and the West.

Gameplay

Shin Megami Tensei IV puts the player in control of the samurai Flynn. Navigation takes place both in the third-person perspective with 3D-rendered environments and a 3D overhead overworld map. On the overworld map, icons represent the player party and enemy demons. Battles take place from a first-person perspective, with the enemy visible on the upper screen and party status and commands on the lower screen. As with other role-playing video games, the character grows stronger and advances by completing quests; they also earn macca, an in-game currency to buy items and equipment. Some quests relate to the main story and are mandatory, while other quests are optional. Should the player be defeated, they can return to the game by spending macca (the in-game currency). Nintendo 3DS Play Coins can be used in place of macca. Repeatedly dying unlocks an easy mode: in this mode, the player can flee from battle if they choose.

Enemies wander the environments Flynn explores. A battle starts when Flynn strikes an enemy (granting the player an advantage), an enemy runs into Flynn from the side or behind (granting the advantage to the enemy), or when they run into each other head-on. In battle, the player controls Flynn and three demons, with one AI-controlled human support character. During battle, both player and enemy actions are governed by the turn-based Press Turn System, a battle system carried over from previous entries in the Shin Megami Tensei series. The system revolves around exploiting physical or elemental weaknesses: if a character strikes another character's weak point or deals a critical hit, the party gains an extra turn, while if the attack is absorbed or blocked, they lose their turn. If a character strikes a weakness or gets a critical hit, there is a chance they will enter "Smirk" status: Smirking temporarily increases a character's damage, eliminates their elemental weaknesses, and gives them a high probability of dodging attacks.

Other systems continuing from previous entries in the series are Demon Recruitment and Demon Fusion. To recruit demons, the player talks with a demon instead of fighting them, and must negotiate for their services: these negotiations can involve flattery, bribery, or threats. Demon Fusions allow the player to take two demons and fuse them into a new form, granting new abilities. During fusion, players can choose which skills are retained and which are discarded. The demon's fusion history is recorded for players to look over during the later stages of the game. Negotiation and Fusions also grant experience points for the player. Some demons change forms on their own without needing fusion; instead, they must be leveled up with experience in battle. As Flynn levels up, new fusions become available. Tamed demons teach new skills to Flynn. Using the Nintendo 3DS' StreetPass system, players can trade demons.

Synopsis Setting and characters Shin Megami Tensei IV takes place in a world separate from the rest of the Shin Megami Tensei games, even though recurring demons and abilities are present. The two main locations are the Eastern Kingdom of Mikado, a feudal society inspired by Medieval Europe which is secretly controlled by angels; and Tokyo, a modern-era city enclosed in a rock dome and overrun by demons. Before the game's events, when Tokyo became a demon stronghold and was threatened with destruction by angels, a member of Tokyo's Counter-Demon Force tamed the God , fusing with him to create the protective dome over Tokyo. Mikado is built on the dome's surface. After the dome is created, only twenty years pass in Tokyo while over a thousand years pass in the Kingdom of Mikado. Remnants of Tokyo's technology, studied by the Mikado church as "mystic relics", remain scattered throughout the land.

Players control a Samurai who is the reincarnation of Tokyo's savior. His default name is : as with previous Megami Tensei player characters, he is a silent protagonist, with his actions and attitudes determined by the player. Three other characters accompany Flynn on his journey, representing the game's three main moral alignments. They are , representing "Law"; , representing "Chaos"; and , representing "Neutrality". Other important characters include , a rookie Samurai; , Flynn's AI assistant; , a powerful demon from Tokyo; and , a former childhood friend of Flynn's.

Story Shin Megami Tensei IV begins with Flynn and his friend Issachar traveling to Mikado Castle to undergo a test as to whether they are worthy of becoming Samurai, the guardians of Mikado who both confront and control demons. Issachar fails, yet Flynn succeeds and is promptly initiated along with other candidates, including Walter, Jonathan, Navarre, and Isabeau. The new Samurai apprentices receive electronic gauntlets containing A.I.s: Flynn's A.I., Burroughs, supports him throughout the game with advice. Shortly after their initiation, unrest rises in the countryside as a figure calling herself the "Black Samurai" distributes books written to spread "knowledge and wisdom"; some residents of Mikado, including Issachar, are turned into demons after reading the books at gatherings called "Sabbaths". The Samurai are sent to confront the resulting demons and the Black Samurai. After restoring order to Mikado and killing Issachar, the Samurai are told to pursue her to the legendary land that lies beneath Mikado, Tokyo. The Samurai climb down a tunnel that leads to the top of a skyscraper; they discover Tokyo is a city covered by a rock dome that has enclosed it in eternal night, while Mikado lies upon the surface of the dome.

The party explores Tokyo searching for the Black Samurai, confronting a variety of foes: the demons that infest Tokyo; the Ashura-kai, a organization who rule the city and provide a semblance of order; and the Ring of Gaea, a cult dedicated to its leader Yuriko. The party discovers that the Black Samurai is Yuriko, a demon whose true name is Lilith, and that she seeks to bring chaos to the Eastern Kingdom of Mikado and undermine its ordered, stagnant structure. On the orders of Sister Gabby, a member of Mikado's church, the party rescues Uriel, Raphael, and Michael from Tokyo; Gabby later reveals herself to be Gabriel. Walter is convinced by Yuriko that the Ashura-kai should be defeated and more demons unleashed on Tokyo, while Jonathan is convinced by Gabby that Lilith must be slain. Flynn can support either Walter or Jonathan, but regardless of his choice, both are successful: both Lilith's Ring of Gaea and the Ashura-kai are defeated, and demons are released into Tokyo via the Yamato Perpetual Reactor, a device that is supposed to be an energy source connecting parallel dimensions. Flynn, Jonathan, and Walter explore two different timelines of Tokyo: one where law dominates, and another where chaos reigns supreme. In both of them, Flynn's previous incarnation was slain.

After viewing the alternate worlds, a score based on Flynn's moral choices throughout the game decides whether the player is on the Law path, Chaos path, or Neutral path. At this point, the player can side with either Law or Chaos routes; the latter choice causes Isabeau return to stop Flynn on behalf of humanity, but after he defeats her, she dies by suicide. In the White ending, Flynn destroys the world at the behest of The White, personifications of human despair who desire complete oblivion. If Flynn sides with Law, Jonathan allies with the archangels, the "new leaders" of Mikado, and merges into Merkabah, God's chariot. In order to prevent further corruption by the people of Mikado, he and Merkabah defeat Lucifer to destroy Tokyo, killing themselves in the process. If Flynn sides with Chaos, Walter allies and merges with Lucifer, the most powerful demon; they seek to destroy Mikado, and he and Lucifer defeat Merkabah. After destroying Mikado, the two begin a new war against God. In the Neutral route, Flynn and Isabeau join forces against Merkabah and Lucifer, enlisting Masakado's help against them. After Merkabah's defeat, Isabeau evacuates Mikado's population to Tokyo. After Flynn defeats Lucifer, Masakado uses his fully awakened power to remove and assimilate the enclosing dome, which erases Mikado and restores daylight to Tokyo, bringing the people of both sides together as one in a united Tokyo.

Development Development of Shin Megami Tensei IV began around August 2009, after development had finished on Shin Megami Tensei: Strange Journey for the Nintendo DS, and lasted for three and a half years. After listening to fan demand, Atlus decided to make a fourth numbered entry in the Shin Megami Tensei subseries, something not seen in Japan since the release of Shin Megami Tensei III: Nocturne in 2003. The reason for the ten-year gap between III and IV was that the company had made other successful titles, and had not had the time to develop Shin Megami Tensei IV as well. It was planned from an early stage for Shin Megami Tensei IV to be on a portable platform for reasons of player convenience; it was originally planned to be developed for the Nintendo DS using the Strange Journey engine, but eventually development was moved to the Nintendo 3DS, which led to the decision to use a different engine. The development team, which was dubbed Team Maniacs, included both staff who had worked on previous Shin Megami Tensei titles and newer staff who had not. There were differences in thinking between the two, which led to conflicts. As an example of this, game director Kazuyuki Yamai said that some of the staff would be used to contemporary games featuring "sweet" female characters who "say nice things", and as a result would want to add that "sweetness" to Shin Megami Tensei IV; meanwhile, Yamai saw the series as having "bitter" content, and thought that it would not be possible to add "sweetness" to it. Additionally, the staff members had differing images of the meaning of Shin Megami Tensei; Yamai thought that the good points of each staff member's interpretation should go into the aspects of the game they were in charge of, while not deviating from the "bitterness".