Mirror Template

From Heroes 3 wiki
Jump to navigation Jump to search

Introduction

Heroes 3 HD mod introduces handling of the Mirror Template. It is a special type of map, where ground and underground are nearly exactly the same. They can be easily distinguished from the other templates by their specific name, starting with mt_ or h3, f.e. mt_Jebus, h3dm1.


Map generated from the mirror template contain identical features on the surface and the underground level:

  • Terrain
  • Objects, with the exception of:
    • Monoliths
    • Heroes in prisons are different, but have the same class. They have the same army, with the exception of some unit specialists, f.e. Wystan
    • Grail and Obelisk cannot be generated
    • Grave artifact (probably bugged)
  • Towns, with exception of the ownership
  • Classes of the heroes in taverns and their starting troops roll
  • Artifacts, resources, mines, spells, spell research order in mirrored towns
  • Monsters and their count
  • Rewards in creature banks


Mirror template forces a specific player setup. When the Red player town is selected, the Blue player's town is automatically chosen as the same faction. Blue player's town will be generated at exactly same position as Red one, but in the underground layer. The pattern follows, so Tan town will be generated on the surface, Green town will be mirrored underground - with the same faction.

Therefore, if the first player picks Red and the second player picks Blue, their starting position will be identical. However, only one instance of a hero can exist in the game. For this reason, starting heroes are different. If they have different class, also their starting army will differ. Buying heroes in the tavern will reveal heroes of the same classes for both players, with same starting troops roll.

Template author will introduce special monolith connections, that will allow to travel between the map layers.

Creation of a Mirror template

Right now mirror templates are not handled by the HotA Template Editor. It is possible however, to create a base template with this tool and then transform it into the mirror template. Edition of the template file can be performed with any csv or text editor (f.e. Txt Edit by GrayFace).

  • Change the name of the folder containg rmg.txt, to mt_YourTemplateName or h3YourTemplateName. Folder name must begin with mt_ or h3.
  • Edit the rmg.txt:
    • Col 12: Put a single x under Mirror column
    • Col 15: Change the Map name so that is starts with mt_ or h3. If there are multiple templates in a template pack, make sure that they all follow this rule.
    • Col 16-17: Make sure that the size of the template will accept map with underground. F.e. for mirror template M (Medium size), use Minimum size = 4 and Maximum size = 8.
    • Col 29, 38: Confirm, that the number of players is less than 4 (it will be duplicated to 8. Extra players zones will be neutral). Check columns Zone -> Type -> human start and Zone -> Player towns -> Ownership
    • Col 117-118: Create connections with the underground, to allow players to meet. Add normal zone number in the column 117 and -1 in column 118. F.e. 5 -1 will create connection from the zone number 5 to the exact same zone underground.
    • Col 121: Set connection as a Border Guard. Insert the value as follows:
      • First you may put x. If you do, this monolith will be connected with a road. Put a space after x.
      • Choose the Monolith that will be present on the surface:
        • t1 - Two Way Monolith or Portal. Choose a number between 0-20 (without 8), to select the monolith color and type.
        • o1 - Monolith One Way Entrance. Choose any number between 0-11, to select the monolith color and type.
        • e1 - Monolith One Way Exit. Choose any number between 0-11, to select the monolith color and type.
        • s - Subterranean Gate. Impossible to select a variant.
        • r - Unknown
      • Follow up with a space and type the monolith type that will be present in the underground, in the mirrored zone. Follow the same rules as above. Be careful, road is connected the the portal on surface. When using a different type (1 squared monolith / 2 squared portal), the underground guard can be misplaced.

        F.e. x t0 t1 will create a green monolith on the surface and a brown monolith in the underground and both will be connected to the road (it will be necessary to create at least one t0 monolith in the underground and one t1 monolith on the surface to allow players to meet).

    • Setup Connection Restrictions the same way as for non-mirror map. F.e. if you create 1 vs 1 mirror template, create restrictions as 1 1 1 1 (min. human positions 1, max. human positions 1, min. total positions 1, max. total positions 1).

Extra notes

  • If maximum number of object on the map is restricted, half of them will be generated on surface and half underground. F.e. maximum number of 16 Star Axis can appear on surface and 16 underground.
  • When using the number of the zones in any calculation, f.e. for the dwellings values, only surface is taken into the account. Then, the underground is mirrored.


Monoliths codes

Monolith One Way Entrances:

o0 Blue

o1 Pink

o2 Orange

o3 Yellow

o8 Turquoise

o9 Violet

o10 Chartreuse

o11 White
Monolith One Way Exits:

Blue

Pink

Orange

Yellow

Turquoise

Violet

Chartreuse

White
Portal One Way Entrances:

o4 Purple

o5 Orange

o6 Red

o7 Cyan
Portal One Way Exits:

Purple

Orange

Red

Cyan
Two Way Monoliths:

t0 Green

t1 Brown

t2 Violet

t3 Orange

t9 Pink

t10 Turquoise

t11 Yellow

t12 Black

t17 Blue

t18 Red
Two Way Portals:

t4 Green

t5 Yellow

t6 Red

t7 Cyan

t13 Chartreuse

t14 Turquoise

t15 Violet

t16 Orange

t19 Pink

t20 Blue

See also