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

Naval: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Beowulf (talk | contribs)
No edit summary
Testid123 (talk | contribs)
mNo edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 2: Line 2:
|files={{Categ|ini=rules}}
|files={{Categ|ini=rules}}
|values={{values|Booleans}}
|values={{values|Booleans}}
|default=yes
|default=no
|types={{Categ|BuildingTypes}}, {{Categ|VehicleTypes}}
|types={{Categ|BuildingTypes}}, {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}
|yr=yes
|yr=yes
|ra2=yes
|ra2=yes
}}
}}
==On [[BuildingTypes]]==
==On [[BuildingTypes]]==
Determines whether the structure acts as a water-based production facility as opposed to land-based, as with {{TTL|WarFactory|yes}}.  
If set to yes, this flag forces a {{f|Factory|link}}<tt>=yes</tt> building to only build <tt>VehicleTypes</tt> with a corresponding <tt>Naval=yes</tt> flag set. This flag serves as the only real logical distinction between a land-based vehicle factory and a naval-based ship factory.
 
Naval=yes also prevents this BuildingType from being placed on non-Water tiles, or being deployed from a vehicle on non-Water tiles, regardless of the value of [[WaterBound]].
 
==On [[InfantryTypes]]==
Parasitic units with the tag '''<b>{{f|Naval|yes|Link}}</b>''' But not in the water Will not be able to attack anything on land.
 
If those parasite-type units can enter water But '''<b>{{f|Naval|no|Link}}</b>''' Will die immediately after eliminating the target.
 
Animation of parasites in the water will be hardcoded as '''<u><font style="color:red">Squid Attack (SQDG)</font></u>'''


==On [[VehicleTypes]]==
==On [[VehicleTypes]]==
Determines which factory the specified vehicle is produced.
If set to yes, determines that this vehicle can only be built by a factory with <tt>Naval=yes</tt> set.
 
Additionally, <tt>Naval=yes</tt> is used to designate what is considered a "naval" target for {{f|NavalTargeting|link}} logic.
 
==NCO Bug Warning==
Copied From {{f|EVA_NewConstructionOptions|link}}:<br>
 
The cause of the NCO bug is, indirectly, due to the developers' decision to treat {{f|Naval|link}} and land-based vehicles as members of the same VehicleType class, rather than creating a separate class. Shipyards are therefore classed as Factory=VehicleType, just like War Factories. This means the game will determine that you can build the land-based vehicles when you don't have a War Factory but do have a Shipyard, and vice versa for {{f|Naval|link}} vehicles.
 
The result of this is that, unless you set all ground vehicles to have a {{f|Prerequisite|link}} of at least one of the War Factories and set all {{f|Naval|link}} units to have a {{f|Prerequisite|link}} of at least one of the Shipyards, you'll get the NCO bug when you own one of the factories but not the other. You can add other prerequisites as well if you like, but all units must include a {{f|Prerequisite|link}} of a factory of the appropriate kind.


Additionally, <tt>Naval=yes</tt> invokes {{TTL|NavalTargeting}} logic.
{{f|PrerequisiteOverride|link}} makes this difficult, since a satisfied {{f|PrerequisiteOverride|link}} causes {{f|Prerequisite|link}} to be ignored. If you set {{f|PrerequisiteOverride|link}} to something other than the appropriate factory, you'll get the bug. So it's best to stay away from this tag where possible.
{{Bugs}}
*Adding '''Naval=yes''' to [[BuildingTypes]] on land will prevent the AI ​​from building them (the player can't build them if there are no ponds or seas)and the following effect will occur:<br>
If the AI's '''Allied Power Plant''' has the tag '''Naval=yes''', the AI ​​can build another [[BuildingTypes]] that uses the '''Allied Power Plant''' as a prerequisite for creation.<br>[[File:BuildingTypes On land and Naval=yes.png]]

Latest revision as of 13:25, 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: Naval
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes, InfantryTypes, VehicleTypes


On BuildingTypes

If set to yes, this flag forces a Factory=yes building to only build VehicleTypes with a corresponding Naval=yes flag set. This flag serves as the only real logical distinction between a land-based vehicle factory and a naval-based ship factory.

Naval=yes also prevents this BuildingType from being placed on non-Water tiles, or being deployed from a vehicle on non-Water tiles, regardless of the value of WaterBound.

On InfantryTypes

Parasitic units with the tag Naval=yes But not in the water Will not be able to attack anything on land.

If those parasite-type units can enter water But Naval=no Will die immediately after eliminating the target.

Animation of parasites in the water will be hardcoded as Squid Attack (SQDG)

On VehicleTypes

If set to yes, determines that this vehicle can only be built by a factory with Naval=yes set.

Additionally, Naval=yes is used to designate what is considered a "naval" target for NavalTargeting logic.

NCO Bug Warning

Copied From EVA_NewConstructionOptions:

The cause of the NCO bug is, indirectly, due to the developers' decision to treat Naval and land-based vehicles as members of the same VehicleType class, rather than creating a separate class. Shipyards are therefore classed as Factory=VehicleType, just like War Factories. This means the game will determine that you can build the land-based vehicles when you don't have a War Factory but do have a Shipyard, and vice versa for Naval vehicles.

The result of this is that, unless you set all ground vehicles to have a Prerequisite of at least one of the War Factories and set all Naval units to have a Prerequisite of at least one of the Shipyards, you'll get the NCO bug when you own one of the factories but not the other. You can add other prerequisites as well if you like, but all units must include a Prerequisite of a factory of the appropriate kind.

PrerequisiteOverride makes this difficult, since a satisfied PrerequisiteOverride causes Prerequisite to be ignored. If you set PrerequisiteOverride to something other than the appropriate factory, you'll get the bug. So it's best to stay away from this tag where possible.

Bugs/Side-Effects/Unexpected Limitations

  • Adding Naval=yes to BuildingTypes on land will prevent the AI ​​from building them (the player can't build them if there are no ponds or seas)and the following effect will occur:

If the AI's Allied Power Plant has the tag Naval=yes, the AI ​​can build another BuildingTypes that uses the Allied Power Plant as a prerequisite for creation.