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

Adjacent: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m changed link (Westwood needs a spellchecker, they named the tag Eligib'''i'''leForAllyBuilding )
DeathFish (talk | contribs)
m Dedeezirified completed, only four words remain unchanged in the content.
Tag: Undo
 
(15 intermediate revisions by 7 users not shown)
Line 2: Line 2:
|name=Adjacent
|name=Adjacent
|files={{Categ|Rules(md).ini}}
|files={{Categ|Rules(md).ini}}
|values=integer
|values={{Values|unsigned integer}}
|default=3
|default=3
|types={{Categ|BuildingTypes}}
|types={{Categ|BuildingTypes}}
|ts=yes
|fs=yes
|hp=yes
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
|ares=yes
}}
}}


After constructing a building in-game you are only allowed to place it near your existing {{TTL|Structures}}. There are two flags that control this.
After constructing a [[BuildingTypes|building]] in-game you are only allowed to place it near your existing structures, up to a distance in cells as defined by <tt>Adjacent=</tt> away, provided the nearby building also has {{f|BaseNormal|yes|link}} set.
One flag goes on the building you are placing and that flag is {{TTL|Adjacent}}<tt>=</tt>.
The other flag goes on all other {{TTL|BuildingTypes}} and that is <tt>BaseNormal=</tt>.


<tt>Adjacent=</tt> specifies the maximum number of cells away from one of your existing buildings (that does not have {{TTL|BaseNormal}}<tt>=no</tt> set) that you may place the new building.
<tt>Adjacent=0</tt> means the new building must be placed in contact with an existing building without gap.
An adjacency value of zero means the new building must be placed in contact with an existing building - there must be no gap. An adjacency value of 1 means there can be at most a 1 cell gap between an existing building and the new building.


Adjacency rules count North-East and North-West directions separately (a building with <tt>Adjacent=1</tt> set can be placed both 1 cell North-East away from an existing building and 1 cell North-West at the same time, i.e. diagonally).
<tt>Adjacent=1</tt> means there can be at most a 1 cell gap between an existing building and the new building.


== See also ==
== Notes ==
*{{TTL|BaseNormal}}
This effect only applies to Human players. For AI building placement, [[AIBaseSpacing]] is used instead of <tt>Adjacent</tt>.
*{{TTL|EligibileForAllyBuilding}}
 
Negative values will permanently disable placement.
 
Specifying too large a value, such as <tt>Adjacent=10000</tt>, will affect the game's speed.
 
==See also==
[[DeploysInto]]
 
[[AIBaseNormal]] (Ares 3.0 only)
 
[[EligibileForAllyBuilding]]

Latest revision as of 18:51, 20 April 2025

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Adjacent
File(s): Rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 3
Applicable to: BuildingTypes


After constructing a building in-game you are only allowed to place it near your existing structures, up to a distance in cells as defined by Adjacent= away, provided the nearby building also has BaseNormal=yes set.

Adjacent=0 means the new building must be placed in contact with an existing building without gap.

Adjacent=1 means there can be at most a 1 cell gap between an existing building and the new building.

Notes

This effect only applies to Human players. For AI building placement, AIBaseSpacing is used instead of Adjacent.

Negative values will permanently disable placement.

Specifying too large a value, such as Adjacent=10000, will affect the game's speed.

See also

DeploysInto

AIBaseNormal (Ares 3.0 only)

EligibileForAllyBuilding