The first step taken in the wilderness of early role-playing games could instantly summon a deadly foe, a mechanic that turned exploration into a gamble of life and death. This feature, known as the random encounter, emerged from the tabletop origins of Dungeons and Dragons in the 1970s to simulate the unpredictable dangers of a monster-infested environment. Unlike placed encounters where enemies wait in specific locations for the player to find them, random encounters occur sporadically without physical detection, forcing players to navigate hazardous terrain with the constant threat of an ambush. The gamemaster would roll dice against a random encounter table to determine if a fight would happen, with results modified by terrain, weather, or time of day. These tables were often customized to specific adventures, such as the hallways of a temple, creating a unique danger profile for every location. The primary purpose of these wandering monsters was to wear down player characters, draining their hit points, magic spells, and healing potions as a punishment for lingering too long in dangerous areas. This mechanic created a resource management layer that forced players to balance the risk of exploration against the cost of survival, establishing a core tension that would define the genre for decades.
The Algorithm of Fear
The transition from tabletop dice to video game code introduced a new layer of complexity to the random encounter, transforming it into a mathematical algorithm that could be exploited by savvy players. Early role-playing video games like 1981s Wizardry utilized both placed and random encounters, but by the mid-1980s, random encounters had become the bulk of battles in genre-defining titles such as Dragon Warrior, Final Fantasy, and The Bard's Tale. These encounters happened when the player traversed the game world, often using a world map or overworld, with the exact moment of encounter determined by programmed probabilities and pseudo-random number generators. The simplest algorithm would set a random integer between 0 and 99 for each step, triggering a fight if the number fell below a specific threshold based on terrain type. However, this simplicity led to distribution problems where players would experience droughts of encounters followed by floods of battles, causing them to feel bogged down by rapid succession fights. A more elaborate system would set a counter between 64 and 255, decrementing it with each step to ensure no more than one random encounter occurred every eight steps. This system, while more balanced, could be manipulated by players who paused the game or opened menus to reset the counter, a trick that became popular in speedruns to skip time-consuming battles or ensure rare encounters.The Resource War