In most cases, the DM will determine encounter distance based upon knowledge of the placement of creatures in the environment. Sometimes, random placement will be desired or called for.
When indoor encounters occur, the distance between concerned parties will be 5” to 10” (1d6+4) subject to the following modifying factors.
Line of Sight. If this is unobstructed and light is involved, the distance possible for determination of another party present is virtually infinite. It could likewise be sharply restricted due to obstructions.
Noise. If one party is making considerable noise which is discernible by the other party, the latter will have the options of fleeing or concealment; the former negating the encounter, the latter allowing distance to be 1” to 4” (1d4) before discovery by the noisy party.
Actual Area. If the encountered party is in a small area, distance between the two can be no greater than the maximum distance possible for discovery of the one by the other, i.e. opening a door into a 20 ft. by 20 ft. room will mean the distance between the two parties can be under 10 ft., 10 ft. or thereabouts, or 20 ft. (d6, 1-2 = striking distance, 3-4 = 10 ft. distance, 5-6 = 20 ft. distance).
Planned or Unplanned Appearance. The sudden precipitation of one party upon the other due to any of a number of factors (teleportation, dimension door spell, other magical means, a chute, etc.) will cause distance similar to that found when actual area is a factor.
Surprise. Surprise can only be a factor in close encounter situations. If either or both parties are surprised, the distance must be either 1” to 3” (1d3) or it must be less as determined by the actual area modifier. Thus if the actual area were a 40 ft. by 60 ft. room, if surprise exists, the distance between the parties will be 1” to 3” (1d3).
Light. The illumination factor or visual capability of the concerned parties will affect encounter distance as follows. (See Additional Rules, Exploration.) A light source reliance limits the maximum encounter distance to twice the normal vision radius of the source (2x radius of the light source). Infravision and/or ultravision operate only to the stated limit of their range and limit maximum encounter distance accordingly.
Normal encounter distance outdoors is 18” to 72” (18d4). (If using a modified scale, know that these values have already been modified by 1:3.)
If either party is surprised, the encounter distance is determined by subtracting the value of surprise (in surprise segments in inches) from normal encounter distance.
In addition to modification for surprise, terrain will also modify encounter distance as follows:
Plains, desert, hills, and mountains do not alter encounter distance variables unless one of the three modifying types of terrain also exists.