Jump to content

Adjacent: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
en>Marshall
Rewrite
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
This determines the number of cells away from other structures that this BuildingType can be placed on the map when it has been built. Either way, it can only be placed adjacent to structures which do not have BaseNormal=no set.
|name=Adjacent
|files={{Categ|Rules(md).ini}}
|values=integer
|default=3
|types={{Categ|BuildingTypes}}
|ra2=yes
|yr=yes
|rp=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.
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.
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).
 
== See also ==
{{TTL|BaseNormal}}
{{TTL|EligibleForAllyBuilding}}

Revision as of 00:45, 2 April 2008

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Adjacent
File(s): Rules(md).ini
Values: integer
Default: 3
Applicable to: BuildingTypes


After constructing a building in-game you are only allowed to place it near your existing Template:TTL. There are two flags that control this. One flag goes on the building you are placing and that flag is Template:TTL=. The other flag goes on all other Template:TTL and that is BaseNormal=.

Adjacent= specifies the maximum number of cells away from one of your existing buildings (that does not have Template:TTL=no set) that you may place the new building. 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 Adjacent=1 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).

See also

Template:TTL Template:TTL