====== GAME_CONDITION ====== Deprecated names: * EVENT_CONDITION //Abstract class//\\ **Category**: Data Inherited by: * [[:api:game_condition_above_surroundings | GAME_CONDITION_ABOVE_SURROUNDINGS]] * [[:api:game_condition_accumulate_in_storage | GAME_CONDITION_ACCUMULATE_IN_STORAGE]] * [[:api:game_condition_agent_killed | GAME_CONDITION_AGENT_KILLED]] * [[:api:game_condition_assign_job_to_all_villagers | GAME_CONDITION_ASSIGN_JOB_TO_ALL_VILLAGERS]] * [[:api:game_condition_assign_trade_resource | GAME_CONDITION_ASSIGN_TRADE_RESOURCE]] * [[:api:game_condition_available_villager_for_promotion | GAME_CONDITION_AVAILABLE_VILLAGER_FOR_PROMOTION]] * [[:api:game_condition_building | GAME_CONDITION_BUILDING]] * [[:api:game_condition_building_available | GAME_CONDITION_BUILDING_AVAILABLE]] * [[:api:game_condition_building_built | GAME_CONDITION_BUILDING_BUILT]] * [[:api:game_condition_building_function_assigned | GAME_CONDITION_BUILDING_FUNCTION_ASSIGNED]] * [[:api:game_condition_building_inventory | GAME_CONDITION_BUILDING_INVENTORY]] * [[:api:game_condition_building_in_layer | GAME_CONDITION_BUILDING_IN_LAYER]] * [[:api:game_condition_building_not_built | GAME_CONDITION_BUILDING_NOT_BUILT]] * [[:api:game_condition_building_part_in_layer | GAME_CONDITION_BUILDING_PART_IN_LAYER]] * [[:api:game_condition_building_splendor_amount_reached | GAME_CONDITION_BUILDING_SPLENDOR_AMOUNT_REACHED]] * [[:api:game_condition_company_formed | GAME_CONDITION_COMPANY_FORMED]] * [[:api:game_condition_company_strength_attained | GAME_CONDITION_COMPANY_STRENGTH_ATTAINED]] * [[:api:game_condition_day_count | GAME_CONDITION_DAY_COUNT]] * [[:api:game_condition_edict_activated | GAME_CONDITION_EDICT_ACTIVATED]] * [[:api:game_condition_enclosed_area_size | GAME_CONDITION_ENCLOSED_AREA_SIZE]] * [[:api:game_condition_execute_action_list | GAME_CONDITION_EXECUTE_ACTION_LIST]] * [[:api:game_condition_far_from_other_buildings | GAME_CONDITION_FAR_FROM_OTHER_BUILDINGS]] * [[:api:game_condition_fill_guest_requirements | GAME_CONDITION_FILL_GUEST_REQUIREMENTS]] * [[:api:game_condition_forest_surrounded | GAME_CONDITION_FOREST_SURROUNDED]] * [[:api:game_condition_game_flag | GAME_CONDITION_GAME_FLAG]] * [[:api:game_condition_game_step_condition_list | GAME_CONDITION_GAME_STEP_CONDITION_LIST]] * [[:api:game_condition_global_recipe_unlocked | GAME_CONDITION_GLOBAL_RECIPE_UNLOCKED]] * [[:dlc:agriculture|{{assets:dlc:agriculture.png?16x16|DLC agriculture}}]][[:api:game_condition_harvest_festival_drink_selected | GAME_CONDITION_HARVEST_FESTIVAL_DRINK_SELECTED]] * [[:dlc:agriculture|{{assets:dlc:agriculture.png?16x16|DLC agriculture}}]][[:api:game_condition_harvest_festival_meal_selected | GAME_CONDITION_HARVEST_FESTIVAL_MEAL_SELECTED]] * [[:dlc:agriculture|{{assets:dlc:agriculture.png?16x16|DLC agriculture}}]][[:api:game_condition_harvest_festival_meal_unlocked | GAME_CONDITION_HARVEST_FESTIVAL_MEAL_UNLOCKED]] * [[:api:game_condition_has_zone | GAME_CONDITION_HAS_ZONE]] * [[:api:game_condition_house_has_house_of_density_and_quality | GAME_CONDITION_HOUSE_HAS_HOUSE_OF_DENSITY_AND_QUALITY]] * [[:api:game_condition_influence_amount_reached | GAME_CONDITION_INFLUENCE_AMOUNT_REACHED]] * [[:api:game_condition_inside_zone | GAME_CONDITION_INSIDE_ZONE]] * [[:api:game_condition_job_status_required | GAME_CONDITION_JOB_STATUS_REQUIRED]] * [[:api:game_condition_lodging_opened | GAME_CONDITION_LODGING_OPENED]] * [[:api:game_condition_mandate_state | GAME_CONDITION_MANDATE_STATE]] * [[:api:game_condition_maximum_coin_capacity | GAME_CONDITION_MAXIMUM_COIN_CAPACITY]] * [[:api:game_condition_military_campaign_completed | GAME_CONDITION_MILITARY_CAMPAIGN_COMPLETED]] * [[:api:game_condition_military_campaign_ongoing | GAME_CONDITION_MILITARY_CAMPAIGN_ONGOING]] * [[:api:game_condition_military_company_behavior | GAME_CONDITION_MILITARY_COMPANY_BEHAVIOR]] * [[:api:game_condition_multiple_condition | GAME_CONDITION_MULTIPLE_CONDITION]] * [[:api:game_condition_population_count | GAME_CONDITION_POPULATION_COUNT]] * [[:api:game_condition_privilege_activated | GAME_CONDITION_PRIVILEGE_ACTIVATED]] * [[:api:game_condition_probability | GAME_CONDITION_PROBABILITY]] * [[:api:game_condition_quest_state | GAME_CONDITION_QUEST_STATE]] * [[:api:game_condition_resource_list_produced | GAME_CONDITION_RESOURCE_LIST_PRODUCED]] * [[:api:game_condition_resource_produced | GAME_CONDITION_RESOURCE_PRODUCED]] * [[:api:game_condition_resource_produced_for_need | GAME_CONDITION_RESOURCE_PRODUCED_FOR_NEED]] * [[:api:game_condition_resource_quantity_number | GAME_CONDITION_RESOURCE_QUANTITY_NUMBER]] * [[:api:game_condition_resource_unlocked | GAME_CONDITION_RESOURCE_UNLOCKED]] * [[:api:game_condition_ressource_assigned | GAME_CONDITION_RESSOURCE_ASSIGNED]] * [[:api:game_condition_revenue | GAME_CONDITION_REVENUE]] * [[:api:game_condition_score | GAME_CONDITION_SCORE]] * [[:api:game_condition_splendor_change | GAME_CONDITION_SPLENDOR_CHANGE]] * [[:api:game_condition_splendor_reached | GAME_CONDITION_SPLENDOR_REACHED]] * [[:api:game_condition_survive_bad_weather | GAME_CONDITION_SURVIVE_BAD_WEATHER]] * [[:api:game_condition_tax_activated | GAME_CONDITION_TAX_ACTIVATED]] * [[:api:game_condition_tax_meter_changed | GAME_CONDITION_TAX_METER_CHANGED]] * [[:api:game_condition_territory_bought | GAME_CONDITION_TERRITORY_BOUGHT]] * [[:api:game_condition_tier_unlocked | GAME_CONDITION_TIER_UNLOCKED]] * [[:api:game_condition_trade_amount | GAME_CONDITION_TRADE_AMOUNT]] * [[:api:game_condition_trade_resource_quantity | GAME_CONDITION_TRADE_RESOURCE_QUANTITY]] * [[:api:game_condition_trade_route_level | GAME_CONDITION_TRADE_ROUTE_LEVEL]] * [[:api:game_condition_trade_route_ready_to_be_upgraded | GAME_CONDITION_TRADE_ROUTE_READY_TO_BE_UPGRADED]] * [[:api:game_condition_unlockable_bought | GAME_CONDITION_UNLOCKABLE_BOUGHT]] * [[:api:game_condition_unlock_function_unlocked | GAME_CONDITION_UNLOCK_FUNCTION_UNLOCKED]] * [[:api:game_condition_unlock_trade_route | GAME_CONDITION_UNLOCK_TRADE_ROUTE]] * [[:api:game_condition_villager_happiness_count | GAME_CONDITION_VILLAGER_HAPPINESS_COUNT]] * [[:api:game_condition_villager_happiness_global | GAME_CONDITION_VILLAGER_HAPPINESS_GLOBAL]] * [[:api:game_condition_villager_need_filled | GAME_CONDITION_VILLAGER_NEED_FILLED]] * [[:api:game_condition_villager_promoted | GAME_CONDITION_VILLAGER_PROMOTED]] * [[:api:game_condition_villager_status_reached | GAME_CONDITION_VILLAGER_STATUS_REACHED]] * [[:api:game_condition_village_event_entertainer_selected | GAME_CONDITION_VILLAGE_EVENT_ENTERTAINER_SELECTED]] * [[:dlc:agriculture|{{assets:dlc:agriculture.png?16x16|DLC agriculture}}]][[:api:game_condition_village_event_need_filled | GAME_CONDITION_VILLAGE_EVENT_NEED_FILLED]] * [[:api:game_condition_visit | GAME_CONDITION_VISIT]] * [[:api:game_condition_wall_size | GAME_CONDITION_WALL_SIZE]] * [[:api:game_condition_worker_assigned | GAME_CONDITION_WORKER_ASSIGNED]] * [[:api:game_condition_workplace_recipe_yield | GAME_CONDITION_WORKPLACE_RECIPE_YIELD]] * [[:api:game_condition_wounded_count | GAME_CONDITION_WOUNDED_COUNT]] //[[:annotations#cloneable|Cloneable]]// ===== Properties ===== ---- ==== DebugComment ==== //[[:annotations#serialized|Serialized]]// Unlocalized string for debug purposes (could show in some logs) * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== OverrideDescription ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== CanConditionBeMetAtStart ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== IsNeedExecution ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== IsOptional ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== IsUsedForTitle ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== IsAReason ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== IsHidden ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== IsReverseCondition ==== //[[:annotations#serialized|Serialized]]// If condition is true, we consider it as false and vice-versa * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== ConditionOnMetAction ==== //[[:annotations#serialized|Serialized]]// What do we want to do when the condition is true. \\ ''TOGGLE'': Will toggle between ''MET''/''UNMET''. \\ ''TOGGLE_NEGATIVE'': Will toggle between ''MET''/''UNMET'' but display the condition as negative. \\ ''FAIL'': When condition is true, this condition will enter a ''FAILED'' state and won't change. \\ ''SUCCEED'': When condition is true, this condition will enter a ''SUCCESS'' state and won't change. * **Type**: ''[[:api:game_condition_on_met_action | GAME_CONDITION_ON_MET_ACTION]]'' * **Expected**: ''enum value'' * **Default value**: ''GAME_CONDITION_ON_MET_ACTION.TOGGLE''