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

Difference between revisions of "CellTags"

From ModEnc
Jump to: navigation, search
m (Maps/CellTags moved to CellTags: Moving the Maps/ sections' pages to main space.)
m
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{WrongTitle|[CellTags]}}
 
{{WrongTitle|[CellTags]}}
  
{{SideBar|Map-specific INI sections|Template:Mapping}}
+
{{MappingBar}}
  
CellTags bind a [[Maps/Tags|Tag]] (and through them, a [[Maps/Triggers|Trigger]]) with a map cell. When something enters this cell/crosses its vertical or horizontal coordinate, they notify their Tag's Trigger of this, thus possibly activating some of its [[Maps/Events|Events]].
+
CellTags attach a [[Tags|Tag]] to a map cell. It is used to trigger the associated [[Events|event]] when a unit enters this cell or crosses its vertical/horizontal coordinate.
  
 
__TOC__
 
__TOC__
{{clr}}
 
  
 
== Section ==
 
== Section ==
  
=== [[TD]]/[[CO]] ===
+
=== <span id="td"></span>{{td}} ===
  
=== [[RA]]/[[CS]]/[[AM]] ===
+
=== <span id="ra"></span>{{ra}}, {{cs}}, {{am}} ===
  
=== [[TS]]/[[FS]]/[[RA2]]/[[YR]] ===
+
=== <span id="ts"></span><span id="ra2"></span><span id="yr"></span>{{ts}}, {{fs}}, {{ra2}}, {{yr}} ===
  
 
The [{{Tt|CellTags}}] section takes the following format:
 
The [{{Tt|CellTags}}] section takes the following format:
Line 27: Line 26:
 
|-
 
|-
 
! {{Anchor|COORDS|ts}}
 
! {{Anchor|COORDS|ts}}
| This is a number that stores the coordinates of the target cell. Their format depends on the value of [{{Tt|[[Maps/Basic|Basic]]}}] {{arr|r}} {{TTL|NewINIFormat}} : when it's less than four, the number is {{Tt|X * 128 + Y}}, otherwise it's {{Tt|X * 1000 + Y}}. The X and Y coordinates can be seen in the status bar when hovering the mouse over the cell in [[FinalSun]]/[[FinalAlert 2]].
+
| Coordinates of the target cell. Their format depends on the value of {{sl|Basic|NewINIFormat}} : when it's less than four, the number is {{Tt|Y * 128 + X}} , otherwise it is {{Tt|Y * 1000 + X}}.
 
|-
 
|-
 
! {{Anchor|TAG_ID|ts}}
 
! {{Anchor|TAG_ID|ts}}
| The Tag's ID. This refers to the Tag, and through it a Trigger, that should be notified when this CellTag is activated.
+
| The attached TAG ID, that should be notified when this CellTag is activated.  
 
|}
 
|}
 +
 +
[[Category:Map Information]]

Latest revision as of 17:33, 14 October 2020

This page should correctly be named "[CellTags]"; it is wrong due to technical restrictions.


CellTags attach a Tag to a map cell. It is used to trigger the associated event when a unit enters this cell or crosses its vertical/horizontal coordinate.

Section

Tiberian Dawn

Red Alert, Counterstrike, Aftermath

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

The [CellTags] section takes the following format:

[CellTags]
COORDS=TAG_ID
Meanings of each string
String Meaning
COORDS Coordinates of the target cell. Their format depends on the value of [Basic]NewINIFormat= : when it's less than four, the number is Y * 128 + X , otherwise it is Y * 1000 + X.
TAG_ID The attached TAG ID, that should be notified when this CellTag is activated.