Jump to content

Adjacent: Difference between revisions

From ModEnc²
m 11 revisions imported
ATHSE (talk | contribs)
simplified
Line 13: Line 13:
|ares=yes
|ares=yes
}}
}}
After constructing a [[BuildingTypes|building]] in-game you are only allowed to place it near your existing structures.
After constructing a [[BuildingTypes|building]], human players are only allowed to place it near their existing structures, at a maxiumum distance away from any of them in cells, as specified by Adjacent, assuming those existing structures have {{f|BaseNormal|yes|link}} set.


{{f|Adjacent}} specifies the maximum number of cells away from one of your existing buildings (that does not have {{f|BaseNormal|no|link}} set) that you may place the new building.
* {{f|Adjacent|0}} means the new building must be placed in contact with an existing building, there must be no gap.
{{f|Adjacent|0}} means the new building must be placed in contact with an existing building - there must be no gap. {{f|Adjacent|1}} means there can be at most a 1 cell gap between an existing building and the new building. And so on.<br>
* {{f|Adjacent|1}} means there can be at most a 1 cell gap between an existing building and the new building. And so on.<br>
 
==Note==
AI players use a different system for building placements, [[AIBaseSpacing]] is used instead of Adjacent, where the distance specified is a preferred spacing rather than a limit.


A building with {{f|Adjacent|1}} set can be placed both 1 cell North-East and 1 cell North-West of an existing building at the same time (i.e. diagonally).<br>For AI building placements, [[AIBaseSpacing]] is used instead of {{f|Adjacent}}.<br>If <b>Adjacent=0</b> then we cannot place [[ BuildingTypes]], but it is exempt from the tag. [[DeploysInto]].<br>
'''Special Values''' ​​-1 to -2147483647 will result in players being unable to place [[BuildingTypes]] But the AI ​​can and places those [[BuildingTypes]] normally.<br>[[File:Adjacent=-1.png]]
{{Bugs}}
{{Bugs}}
Specifying too large a value, such as '''Adjacent=10000''' will affect the game's speed.
Specifying too large a value, such as '''Adjacent=10000''' will affect the game's speed.


=See also=
'''Special Values''' ​​-1 to -2147483647 will result in players being unable to place [[BuildingTypes]] But the AI ​​can and places those [[BuildingTypes]] normally.
*[[BaseNormal]]
 
*[[EligibileForAllyBuilding]]
==See also==
[[EligibileForAllyBuilding]]
 
[[DeploysInto]]

Revision as of 02:27, 5 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Adjacent
File(s): Rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Special Values: -1 to -2147483647
Default: 3
Applicable to: BuildingTypes


After constructing a building, human players are only allowed to place it near their existing structures, at a maxiumum distance away from any of them in cells, as specified by Adjacent, assuming those existing structures have BaseNormal=yes set.

  • Adjacent=0 means the new building must be placed in contact with an existing building, there must be no gap.
  • Adjacent=1 means there can be at most a 1 cell gap between an existing building and the new building. And so on.

Note

AI players use a different system for building placements, AIBaseSpacing is used instead of Adjacent, where the distance specified is a preferred spacing rather than a limit.

Bugs/Side-Effects/Unexpected Limitations Specifying too large a value, such as Adjacent=10000 will affect the game's speed.

Special Values ​​-1 to -2147483647 will result in players being unable to place BuildingTypes But the AI ​​can and places those BuildingTypes normally.

See also

EligibileForAllyBuilding

DeploysInto