Home › Requirements › Requirements: UNITS

Available out of the box. Usable from Lua in the unmodified game.

Requirements: UNITS

33 entries. Subject class "UNITS" is the community list's grouping (what the modifier applies to).

Requirement Arguments Engine functions called Availability Addresses (symbol→current)
REQUIREMENT_GREAT_PERSON_TYPE_MATCHES GreatPersonClassType (String), TurnsToIgnoreLiberatorTroops (Integer) Definitions::GetGreatPersonClassDefinitions
Definitions::GetUnitDefinitions
Base game+ Test 0x877c70→0x8905a0
OnInitialize 0x877560→0x890050
REQUIREMENT_OPPONENT_ERA_AT_LEAST MinimumEraType (String) Definitions::GetEraDefinitions
District::Instance::GetOwner
Rules::Era::Get
Rules::Era::Shared::Instance::GetEraOfPrereqs
GameEffects::Requirements::ConstRequirement::SetState
— OnInitialize 0x8ac300→0x8c6620
REQUIREMENT_OPPONENT_IS_BARBARIAN — District::Instance::GetOwner
Player::Manager::Edit
Player::Manager::IsBarbarian
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8c3f90→0x8de090
REQUIREMENT_OPPONENT_IS_DISTRICT — District::Instance::GetOwner
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x88fd00→0x8a9100
REQUIREMENT_OPPONENT_IS_FORTIFIED — District::Instance::GetOwner
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8a1b50→0x8b9e90
REQUIREMENT_OPPONENT_IS_MINOR_CIV — District::Instance::GetOwner
Player::Manager::Edit
Player::Manager::IsMinor
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8f5310→0x7fa7f0
REQUIREMENT_OPPONENT_IS_OTHER_RELIGION — District::Instance::GetOwner
GameEffects::Requirements::OpponentIsOtherReligion::ArePlayersFollowingDifferentReligions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8b30c0→0x8ccb30
REQUIREMENT_OPPONENT_IS_WOUNDED — District::Instance::GetOwner
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8e3870→0x7e9530
REQUIREMENT_OPPONENT_UNIT_DOMAIN_MATCHES UnitDomain (String) District::Instance::GetOwner
Definitions::GetUnitDefinitions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x7e3c20→0x7fbf10
REQUIREMENT_OPPONENT_UNIT_PROMOTION_CLASS_MATCHES UnitPromotionClass (String) District::Instance::GetOwner
Definitions::GetUnitDefinitions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x7f9a00→0x8121c0
REQUIREMENT_OPPONENT_UNIT_TAG_MATCHES Tag (String) District::Instance::GetOwner
Definitions::GetUnitDefinitions
Tag::Repository::HasTag
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8109a0→0x82a080
REQUIREMENT_OPPONENT_UNIT_TYPE_MATCHES UnitType (String) Definitions::GetUnitDefinitions
District::Instance::GetOwner
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x826dd0→0x83fa60
REQUIREMENT_UNIT_ADJACENT_TO_OWNER_TERRITORY — Map::Plot::Instance::IsAdjacentPlayer Base game+ Test 0x7fd4f0→0x8150d0
OnInitialize 0x7fd050→0x814dc0
REQUIREMENT_UNIT_DAMAGE_MINIMUM MinimumAmount (Integer) GameEffects::Requirements::ConstRequirement::SetState
GameEffects::ArgumentFunction::GetFunctions
Base game+ OnInitialize 0x88f750→0x8a8eb0
REQUIREMENT_UNIT_DOMAIN_MATCHES UnitDomain (String) Definitions::GetUnitDefinitions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x852160→0x86af60
REQUIREMENT_UNIT_EMBARKED — Unit::CInstance::IsEmbarked GS, NFP, BlackDeath, WarMachine Test 0x8626f0→0x87a8d0
OnInitialize 0x862090→0x879d70
REQUIREMENT_UNIT_ERA_TYPE_MATCHES EraType (String) Definitions::GetEraDefinitions
Unit::Instance::GetEra
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x86a0b0→0x8816d0
REQUIREMENT_UNIT_FORMATION_CLASS_MATCHES FormationClass (String) Definitions::GetUnitDefinitions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x87a720→0x893400
REQUIREMENT_UNIT_HAS_ABILITY UnitAbilityType (String) Unit::Instance::HasAbility
Definitions::GetUnitAbilityDefinitions
Base game+ Test 0x890cd0→0x8a9db0
OnInitialize 0x890020→0x8a95d0
REQUIREMENT_UNIT_HAS_PROMOTION (untested in the community list) — Definitions::GetUnitPromotionDefinitions
Unit::Experience::HasPromotion
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8203c0→0x839580
REQUIREMENT_UNIT_IN_EMERGENCY_TARGET_TERRITORY — Emergency::Manager::Get
Emergency::Manager::GetEmergency
R&F, GS, NFP, BlackDeath, WarMachine Test 0x8edd50→0x7f3b70
OnInitialize 0x8ed460→?
REQUIREMENT_UNIT_IN_ENEMY_TERRITORY — Player::Diplomacy::IsAtWarWith Base game+ Test 0x832bd0→0x84beb0
OnInitialize 0x832750→?
REQUIREMENT_UNIT_IN_FORMATION — — Base game+ Test 0x8c6130→0x8dff80
OnInitialize 0x8c5e10→0x8dfc90
REQUIREMENT_UNIT_IN_OWNER_TERRITORY — — Base game+ Test 0x83ce50→0x855d20
OnInitialize 0x83cbf0→0x855ae0
REQUIREMENT_UNIT_IS_BARBARIAN — Unit::Instance::IsBarbarian
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x834510→0x84dea0
REQUIREMENT_UNIT_IS_COMBAT — Unit::Instance::GetCombat
Unit::Instance::GetRangedCombat
Unit::Instance::GetBombardCombat
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x847da0→0x861750
REQUIREMENT_UNIT_IS_LEVIED — — R&F, GS, NFP, BlackDeath, WarMachine Test 0x879840→0x892580
OnInitialize 0x8793b0→0x8920c0
REQUIREMENT_UNIT_ON_COAST Water (Boolean) Map::Plot::Instance::IsShallowWater
Map::Plot::Instance::IsCoastalLand
Base game+ Test 0x8cdf10→0x8e7150
OnInitialize 0x8cd090→0x8e68e0
REQUIREMENT_UNIT_ON_HOME_CONTINENT — Player::Instance::GetCapitalContinent Base game+ Test 0x84c320→0x865960
OnInitialize 0x84bfe0→0x8653a0
REQUIREMENT_UNIT_PLOT_HAS_NATIONAL_PARK MaxDistance (Integer), MinDistance (Integer), SameOwner (Boolean) Map::IInstance::IterateNeighbors
GameEffects::ArgumentFunction::GetFunctions
GS, BlackDeath, WarMachine Test 0x7ee250→0x806060
OnInitialize 0x7ed6b0→0x805280
REQUIREMENT_UNIT_PROMOTION_CLASS_MATCHES UnitPromotionClass (String) District::Instance::GetOwner
Definitions::GetUnitDefinitions
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8dafb0→0x8f3750
REQUIREMENT_UNIT_TAG_MATCHES Tag (String) GameEffects::ProposedCombat::PlayerIsAttacking
Definitions::GetUnitDefinitions
Tag::Repository::HasTag
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x8f5490→0x7fa970
REQUIREMENT_UNIT_TYPE_MATCHES UnitType (String) Definitions::GetUnitDefinitions
District::Instance::GetOwner
GameEffects::Requirements::ConstRequirement::SetState
Base game+ OnInitialize 0x7f8a00→0x810fe0