ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.


From ModEnc
Jump to: navigation, search
This page should correctly be named "[Tags]"; it is wrong due to technical restrictions.

Map Tags are responsible for telling the game about the Triggers present on the map. Each trigger needs to be referred to by at least one tag to be considered "existant" by the game, even if the tag isn't attached to anything and thus never used itself. Tags can be simply placed in this section, and objects pre-placed on the map as well as TeamTypes can refer to the tags for additional functionality - if they do, those specific tags and their respective Triggers will be notified when the objects referring to them are somehow interacted with (detected, attacked, damaged, destroyed, etc.).


Tiberian Dawn

Section does not exist.

Red Alert, Counterstrike, Aftermath

Section does not exist.

Tiberian Sun, Firestorm, Red Alert 2, Yuri's Revenge

The [Tags] section in a map takes this format:

Meanings of each string
String Meaning
ID The Tag's ID. This is used to attach this Tag to other objects on the map.
What can be achieved by attaching tags? 
  • Events and
  • Actions
  • How should tags be attached? 
  • [Structures],
  • [Units,
  • [Infantry],
  • [Aircraft] and
  • [TeamTypes] → Tag.
  • REPEATING Can have values 0, 1 or 2:

    0 - Any of the associated objects - OR operator - one time
    1 - When all of the associated objects - AND operator - one time
    2 - Any of the associated objects - OR operator - repeat

    Tags could be associated with more than one objects, in such cases 0/1 can be used for any or all of them cases to activate this tag for one time. For example in case of 1, means activate this Tag one time when all the associated buildings having this TagID are destroyed, whereas a 0 would mean activate this Tag one time when any of those associated buildings get destroyed. By using 2, this Tag will not stop after one time, it will be triggered repeatedly. There is no AND operator for repeat or 3.

    NAME A plain text string used as a name of this Tag. Not used ingame, only in the map editor. Should not contain commas.
    TRIGGER_ID Reference to the Trigger related to this Tag. Again, each Trigger needs to be refered to by at least one Tag or it will not work. FinalSun and FinalAlert 2 create tags for you when you press "Place on map" in the Trigger Editor.