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

Owner

From ModEnc
Jump to navigation Jump to search
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: Owner
File(s): rules(md).ini
Values: Varied:
Red Alert
Comma-separated list of strings. (Limited to: Sides)


Tiberian Sun
Comma-separated list of strings. (Limited to: Houses)


Red Alert 2
Comma-separated list of strings. (Limited to: Countries, maximum of 32 entries)
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Red Alert, Counterstrike and Aftermath

Specifies a list of sides which should be able to construct this object. Recognized values for sides are allied, allies and soviet.

Tiberian Sun and Firestorm

Specifies a list of houses which should be able to construct this object, or gain this object as a multiplayer starting unit (if it also has AllowedToStartInMultiplayer=yes) or from a bonus crate.

Red Alert 2 and Yuri's Revenge

If a player owns a Factory=(UnitType, InfantryType, AircraftType or BuildingType) building with at least 1 Owner= country that both factory and unit share, then given you fulfill all the other Prerequisites you can build the unit in question.

If this list includes one country from Side A, it should also include the other countries of Side A. More granular permissions should be applied via Prerequisite, RequiredHouses and ForbiddenHouses.

Units with AllowedToStartInMultiplayer=yes are assigned based on the Owner at the start of the game, so you can differentiate by country.

The AI does not check the Owner when producing Infantry, vehicles, and aircraft in a taskforce, but the AI will only build buildings whose Owner= list includes the country that the AI is using (which is unrelated to the Factory).

  • The AI must have an available Power Plant, Ore Refinery, and War Factory; otherwise, it will cause a crash.

BuildingTypes generally include all multiplay-avaliable countries in this list. This is not completely necessary, but it can help new modders avoid the New Construction Options Bug in some cases if they keep this format.

If a country has the proper Prerequisites but does not have a listing in a unit's Owner= list this will result in the New Construction Options Bug.

Bugs/Side-Effects/Unexpected Limitations

Although AllowedToStartInMultiplayer does not check whether the player can meet the prerequisite for building these units, but there must be at least one initial Infantry. If you use a feature like TechLevel=11 to disable all available initial Infantry, then it will trigger EIP#005D7387 (YR).

  • This bug has been fixed in Ares 0.D.

See Also