Wizardry was first a Computer game.
History of RPGs from Wikipedia:
Role-playing video games began in 1975 as an offshoot of early university mainframe computer text RPGs on PDP-10 and Unix-based computers, starting with Dungeon and graphical RPGs on the PLATO System, pedit5 and dnd, themselves inspired by paper-and-pencil role-playing games. Other influences during this period were text adventures, Multiple-User Dungeons (MUDs) and roguelike games. Some of the first graphical CRPGs after pedit5 and dnd, were orthanc, avathar (later renamed avatar), oubliette, baradur, emprise, bnd, sorcery, moria, and dndworld, all of which were developed and became widely popular on PLATO during the latter 1970s, in large part due to PLATO's speed, fast graphics, nationwide network of terminals, and large number of players with access to those terminals. These were followed by (but did not always lead directly to) games on other platforms, such as Akalabeth (1980) (which gave rise to the well-known Ultima series), and Wizardry.
These early Ultima and Wizardry games are perhaps the largest influence on the later console RPG games that are now popular. Many innovations of Ultima III: Exodus (1983) eventually became standards of almost all RPGs in both the console market (if somewhat simplified to fit the gamepad) and the personal computer market. Later Dungeon Master (1987) introduced realtime gameplay and several user-interface innovations, such as direct manipulation of objects and the environment with the mouse, to first-person CRPGs.
The earliest console RPG was the Intellivision title AD&D Treasure of Tarmin (1982). Much later, in 1986, Enix made the NES title Dragon Quest (video game) (called Dragon Warrior in North America and would remain that way until the 8th game in the series). This was followed shortly by ports of the computer RPGs Wizardry and Ultima III, and by Final Fantasy (1987) by Squaresoft. Both of these games proved popular and spawned a series of sequels. Both game series remain popular today, Final Fantasy more so in North America, and Dragon Quest in Japan.
Dragon Quest and Final Fantasy both borrowed heavily from Ultima. For example, leveling up and saving must be done by speaking to the king in Dragon Quest, and in order to rest and get healed, the characters must visit the king (Dragon Quest) or stay the night at an inn (both games). The games are played in a top-down perspective, much like the Ultima games, as well. The combat style in Dragon Quest was borrowed from another series from the personal computer market, the Wizardry games.