In the overworld, enemies will often randomly appear and are fought in real time. The player can use a sword for close-range attacks, a rod for shooting long-range projectiles, and magic spells. Slaying enemies earns the player experience points that go towards increasing overall experience levels. Reaching higher levels improves the player's maximum attributes (HP and MP) and can sometimes enhance weapon strength or yield new magic spells. When transitioning between screens on the overhead map, the player will sometimes encounter random, turn-based battles with groups of enemies. The start of each battle gives the player the option to fight, escape, or attempt to bribe enemies into leaving. Fighting alone or with up to two allies, the player takes turns trading blows with enemy units by picking commands such as striking with equipped weapons or casting magic. Formations (learned for a fee at "Magic Universities" in certain towns) can also be created, which can grant the party added defense or enable them to cast powerful group magic spells; certain formations work particularly well against certain "squads" or "regiments". Finally, mercenary troopers, which can be hired in towns, can be used to aid the party in attacks.