# Combat Diff Flag Workers Normal Priority

Grammar — Perform action action on the combat diffculty flag for player player - Workers Normal Priority
FlagsNative | Function

When enabled, allows the combat AI to target workers normally, instead of below most other targets.

# Arguments

Returns — bool

native bool AICombatDiffFlagCatWorkersNormalPrio(
	int player,
	int action,
);

Category: AI Advanced / Tactical / Functions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1208

        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatSortBuildingsPrio(PlayerGroupLoopCurrent(), c_combatFlagDisable);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1208

        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatWorkersNormalPrio(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagCatSortBuildingsPrio(PlayerGroupLoopCurrent(), c_combatFlagDisable);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:61

        AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));
        AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));
        AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirEasy  ,   c_combatFlagEnable));

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:74

        AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
        AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
        AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:111

	AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campVirtuoso,   c_combatFlagEnable));
	AICombatDiffFlagCatWorkersNormalPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
	AICombatDiffFlagCatSortBuildingsPrio   (player, AIDiffThreshold(player, c_combatFlagDisable, c_campAdvanced, c_combatFlagEnable));
	AICombatDiffFlagTieBreakHealers        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campVirtuoso,   c_combatFlagEnable));