# Difficulty Value (Unit Type)

Grammar — Difficulty(easy / normal / advanced / expert)
FlagsFunction

Returns the unit type parameter that matches the current difficulty setting. This is for campaign use (in which all players have the same difficulty setting), so player 1’s setting is used.

# Arguments

  • string [ gamelink::Unit ] — Easy
  • string [ gamelink::Unit ] — Normal
  • string [ gamelink::Unit ] — Advanced
  • string [ gamelink::Unit ] — Expert

Returns — string [ gamelink::Unit ]

string libNtve_gf_DifficultyValueUnitType(
	string lp_easy,
	string lp_normal,
	string lp_advanced,
	string lp_expert,
);

Category: AI / MiscCampaign / Functions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3277
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Hydralisk")
// L3286
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L3437
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L2534
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Roach")
// L2544
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk")
// L2933
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L2934
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Hydralisk")
// L2964
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Roach")
// L2992
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L2998
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3025
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3031
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L1304
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk")
// L1425
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1428
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1611
libNtve_gf_DifficultyValueUnitType("Swarmling", "Swarmling", "Zergling", "Zergling")
// L1619
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Hydralisk")
// L1656
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Ultralisk", "Ultralisk")
// L1863
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1899
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Baneling", "Baneling")
// L1899
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1931
libNtve_gf_DifficultyValueUnitType("Swarmling", "Swarmling", "Hydralisk", "Hydralisk")
// L3542
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "HydraliskBurrowed", "HydraliskBurrowed", "InfestedAbominationBurrowed")
// L3545
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "RoachBurrowed")
// L5209
libNtve_gf_DifficultyValueUnitType("InfestedTerranCampaignBurrowed", "InfestedTerranCampaignBurrowed", "BanelingBurrowed", "BanelingBurrowed")
// L581
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L603
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L605
libNtve_gf_DifficultyValueUnitType("Roach", "Ultralisk", "Ultralisk", "Ultralisk")
// L2108
libNtve_gf_DifficultyValueUnitType("Infestor", "Infestor", "Ultralisk", "Ultralisk")
// L3550
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "HydraliskBurrowed")
// L3620
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "HydraliskBurrowed")
// L3789
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "RoachBurrowed")
// L3812
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "RoachBurrowed", "UltraliskBurrowed", "UltraliskBurrowed")
// L3816
libNtve_gf_DifficultyValueUnitType("HybridReaver", "HybridReaver", "HybridDestroyer", "HybridDestroyer")
// L3971
libNtve_gf_DifficultyValueUnitType("Mutalisk", "Mutalisk", "BroodLord", "BroodLord")
// L4015
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "RoachBurrowed", "HybridReaver", "UltraliskBurrowed")
// L3277
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Hydralisk")
// L3286
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L3437
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L2534
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Roach")
// L2544
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk")
// L2933
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L2934
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Hydralisk")
// L2964
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Roach")
// L2992
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L2998
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3025
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3031
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L1304
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk")
// L1425
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1428
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1611
libNtve_gf_DifficultyValueUnitType("Swarmling", "Swarmling", "Zergling", "Zergling")
// L1619
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Hydralisk")
// L1656
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Ultralisk", "Ultralisk")
// L1863
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1899
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Baneling", "Baneling")
// L1899
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L1931
libNtve_gf_DifficultyValueUnitType("Swarmling", "Swarmling", "Hydralisk", "Hydralisk")
// L3542
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "HydraliskBurrowed", "HydraliskBurrowed", "InfestedAbominationBurrowed")
// L3545
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "RoachBurrowed")
// L5209
libNtve_gf_DifficultyValueUnitType("InfestedTerranCampaignBurrowed", "InfestedTerranCampaignBurrowed", "BanelingBurrowed", "BanelingBurrowed")
// L581
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L603
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Hydralisk", "Hydralisk")
// L605
libNtve_gf_DifficultyValueUnitType("Roach", "Ultralisk", "Ultralisk", "Ultralisk")
// L2108
libNtve_gf_DifficultyValueUnitType("Infestor", "Infestor", "Ultralisk", "Ultralisk")
// L3550
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "HydraliskBurrowed")
// L3620
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "HydraliskBurrowed")
// L3789
libNtve_gf_DifficultyValueUnitType("ZerglingBurrowed", "ZerglingBurrowed", "RoachBurrowed", "RoachBurrowed")
// L3812
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "RoachBurrowed", "UltraliskBurrowed", "UltraliskBurrowed")
// L3816
libNtve_gf_DifficultyValueUnitType("HybridReaver", "HybridReaver", "HybridDestroyer", "HybridDestroyer")
// L3971
libNtve_gf_DifficultyValueUnitType("Mutalisk", "Mutalisk", "BroodLord", "BroodLord")
// L4015
libNtve_gf_DifficultyValueUnitType("RoachBurrowed", "RoachBurrowed", "HybridReaver", "UltraliskBurrowed")
// L2380
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Roach", "Zergling")
// L2424
libNtve_gf_DifficultyValueUnitType("Hydralisk", "Hydralisk", "Hydralisk", "Zergling")
// L2380
libNtve_gf_DifficultyValueUnitType("Roach", "Roach", "Roach", "Zergling")
// L2424
libNtve_gf_DifficultyValueUnitType("Hydralisk", "Hydralisk", "Hydralisk", "Zergling")
// L3336
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L3337
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Hydralisk")
// L3385
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3391
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3439
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3445
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3530
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3536
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3579
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3585
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L4730
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Baneling", "Baneling")
// L3336
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Roach")
// L3337
libNtve_gf_DifficultyValueUnitType("Zergling", "Hydralisk", "Hydralisk", "Hydralisk")
// L3385
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3391
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3439
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3445
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3530
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3536
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L3579
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Roach", "Baneling")
// L3585
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Hydralisk", "Roach")
// L4730
libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Baneling", "Baneling")