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
({{ts}}, {{fs}}, {{ra2}}, {{yr}})
m (Corrections)
Line 3: Line 3:
 
{{MappingBar}}
 
{{MappingBar}}
  
CellTags bind a [[Triggers|Trigger]] with a map cell. When something enters this cell/crosses its vertical or horizontal coordinate, they notify their Trigger of this, thus possibly activating some of its [[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__
Line 18: Line 18:
  
 
  [CellTags]
 
  [CellTags]
  COORDS=TRIGGER_ID
+
  COORDS=TAG_ID
  
 
{| style="width: 80%" border=1 class="table_descrowdesccol"
 
{| style="width: 80%" border=1 class="table_descrowdesccol"
Line 26: 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 {{sl|Basic|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}} which used in TS and RA2.
 
|-
 
|-
! {{Anchor|TRIGGER_ID|ts}}
+
! {{Anchor|TAG_ID|ts}}
| The Trigger's ID. This refers to the Trigger, that should be notified when this CellTag is activated.
+
| The attached TAG ID, that should be notified when this CellTag is activated. TS and RA2 uses Tag whereas earlier games didn't have Tag, so those use Trigger ID.
 
|}
 
|}
  
 
[[Category:Map Information]]
 
[[Category:Map Information]]

Revision as of 17:22, 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 which used in TS and RA2.
TAG_ID The attached TAG ID, that should be notified when this CellTag is activated. TS and RA2 uses Tag whereas earlier games didn't have Tag, so those use Trigger ID.