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
Testid123 (talk | contribs)
mNo edit summary
Testid123 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|values={{Values|unsigned integer}}
|values={{Values|unsigned integer}}
|default=3
|default=3
|special= -1 to -2147483647
|types={{Categ|BuildingTypes}}
|types={{Categ|BuildingTypes}}
|ts=yes
|ts=yes
Line 12: 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]] in-game you are only allowed to place it near your existing structures.


{{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}} 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|1}} means there can be at most a 1 cell gap between an existing building and the new building. And so on.
{{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>
 
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).
 
For AI building placements, [[AIBaseSpacing]] is used instead of {{f|Adjacent}}.


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.



Latest revision as of 13:36, 9 October 2024

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.
Special Values: -1 to -2147483647
Default: 3
Applicable to: BuildingTypes


After constructing a building in-game you are only allowed to place it near your existing structures.

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

A building with 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).
For AI building placements, AIBaseSpacing is used instead of Adjacent.
If Adjacent=0 then we cannot place BuildingTypes, but it is exempt from the tag. DeploysInto.
Special Values ​​-1 to -2147483647 will result in players being unable to place BuildingTypes But the AI ​​can and places those BuildingTypes normally.

Bugs/Side-Effects/Unexpected Limitations

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

See also