Most of the actions in an rpg are performed indirectly, with the player selecting an action and the character performing it by their own accord. Success at that action depends on the character’s numeric attributes. Role-playing video games often simulate die-rolling mechanics from non-electronic role-playing games to determine success or failure. As a character’s attributes improve, their chances of succeeding at a particular action will increase.
Many role-playing games allow players to play as an evil character. Although robbing and murdering indiscriminately may make it easier to get money, there are usually consequences in that other characters will become uncooperative or even hostile towards the player. Thus, these games allow players to make moral choices, but force players to live with the consequences of their actions. Games often let the player control an entire party of characters. However, if winning is contingent upon the survival of a single character, then that character effectively becomes the player’s avatar. An example of this would be in Baldur’s Gate, where if the character created by the player dies, the game ends and a previous save needs to be loaded.
Although some single-player role-playing games give the player an avatar that is largely predefined for the sake of telling a specific story, many role-playing games make use of a character creation screen. This allows players to choose their character’s sex, their race or species, and their character class. Although many of theses traits are cosmetic, there are functional aspects as well. Character classes will have different abilities and strengths. Common classes include fighters, spellcasters, thieves with stealth abilities, and clerics with healing abilities, or a mixed class, such as a fighter who can cast simple spells. Characters will also have a range of physical attributes such as dexterity and strength, which affect a player’s performance in combat. Mental attributes such as intelligence may affect a player’s ability to perform and learn spells, while social attributes such as charisma may limit the player’s choices while conversing with non-player characters. These attribute systems often strongly resemble the Dungeons & Dragons ruleset.
Some role-playing games make use of magical powers, or equivalents such as psychic powers or advanced technology. These abilities are confined to specific characters such as mages, spellcasters, or magic-users. In games where the player controls multiple characters, these magic-users usually complement the physical strength of other classes. Magic can be used to attack, to defend, or to temporarily change an enemy or ally’s attributes. While some games allow players to gradually consume a spell, as ammunition is consumed by a gun, most games offer players a finite amount of mana which can be spent on any spell. Mana is restored by resting or by consuming potions. Characters can also gain other non-magical skills, which stay with the character as long as he lives.