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

Difference between revisions of "Tags"

From ModEnc
Jump to: navigation, search
m (Categorising.)
(Updating with new sidebar + anchors)
Line 1: Line 1:
 
{{WrongTitle|[Tags]}}
 
{{WrongTitle|[Tags]}}
  
{{SideBar|Map-specific INI sections|Template:Mapping}}
+
{{MappingBar}}
  
Map Tags are responsible for telling the game about the [[Maps/Triggers|Triggers]] present on the map. ''Each trigger needs to be refered 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 [[AI/TeamTypes/Tag|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.).
+
Map Tags are responsible for telling the game about the [[Maps/Triggers|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 [[AI/TeamTypes/Tag|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.).
  
 
__TOC__
 
__TOC__
{{clr}}
 
  
 
== Section ==
 
== Section ==
  
=== [[TD]]/[[CO]] ===
+
=== <span id="td"></span>{{td}} ===
  
=== [[RA]]/[[CS]]/[[AM]] ===
+
Section does not exist.
  
=== [[TS]]/[[FS]]/[[RA2]]/[[YR]] ===
+
=== <span id="ra"></span>{{ra}}, {{cs}}, {{am}} ===
 +
 
 +
Section does not exist.
 +
 
 +
=== <span id="ts"></span><span id="ra2"></span><span id="yr"></span>{{ts}}, {{fs}}, {{ra2}}, {{yr}} ===
  
 
The [{{Tt|Tags}}] section in a map takes this format:
 
The [{{Tt|Tags}}] section in a map takes this format:
Line 27: Line 30:
 
! {{Anchor|ID|ts}}
 
! {{Anchor|ID|ts}}
 
| The Tag's ID. This is used to attach this Tag to other objects on the map.<br>
 
| The Tag's ID. This is used to attach this Tag to other objects on the map.<br>
;What can be achieved by attaching tags? : see <li>[[Maps/Events|Events]] and <li> [[Maps/Actions|Actions]]  
+
;What can be achieved by attaching tags? : see <li>[[Events]] and <li> [[Actions]]  
;How should tags be attached? : see <li>&#91;[[Maps/Structures#ts_ATTACHED_TAG|Structures]]], <li> &#91;[[Maps/Units#ts_ATTACHED_TAG|Units]], <li> &#91;[[Maps/Infantry#ts_ATTACHED_TAG|Infantry]]], <li> &#91;[[Maps/Aircraft#ts_ATTACHED_TAG|Aircraft]]] and <li> [TeamTypes] {{arr|r}} [[AI/TeamTypes/Tag|Tag]].
+
;How should tags be attached? : see <li>&#91;[[Structures#ts_ATTACHED_TAG|Structures]]], <li> &#91;[[Units#ts_ATTACHED_TAG|Units]], <li> &#91;[[Infantry#ts_ATTACHED_TAG|Infantry]]], <li> &#91;[[Aircraft#ts_ATTACHED_TAG|Aircraft]]] and <li> [TeamTypes] {{arr|r}} [[Tag]].
 
|-
 
|-
 
! {{Anchor|REPEATING|ts}}
 
! {{Anchor|REPEATING|ts}}

Revision as of 16:58, 23 June 2008

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.).

Section

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:

ID=REPEATING,NAME,TRIGGER_ID
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? 
see
  • Events and
  • Actions
  • How should tags be attached? 
    see
  • [Structures],
  • [Units,
  • [Infantry],
  • [Aircraft] and
  • [TeamTypes] → Tag.
  • REPEATING Can be set to 2 ('enabled') or any other value ('disabled'). Specifies whether this Tag is repeating - that is, can it notify its attached objects more than once.
    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.