# Difficulty Value (Real)

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

Returns the real 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

  • fixed — Easy
  • fixed — Normal
  • fixed — Advanced
  • fixed — Expert

Returns — fixed

fixed libNtve_gf_DifficultyValueFixed(
	fixed lp_easy,
	fixed lp_normal,
	fixed lp_advanced,
	fixed lp_expert,
);

Category: AI / MiscCampaign / Functions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L819
libNtve_gf_DifficultyValueFixed(12.0, 12.0, 9.0, 8.0)
// L820
libNtve_gf_DifficultyValueFixed(200.0, 200.0, 350.0, 500.0)
// L822
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 25.0, 15.0)
// L712
libNtve_gf_DifficultyValueFixed(480.0, 360.0, 240.0, 180.0)
// L713
libNtve_gf_DifficultyValueFixed(300.0, 300.0, 270.0, 270.0)
// L714
libNtve_gf_DifficultyValueFixed(16.0, 12.0, 8.0, 8.0)
// L1418
libNtve_gf_DifficultyValueFixed(5.0, 5.0, 10.0, 1000.0)
// L3043
libNtve_gf_DifficultyValueFixed(80.0, 80.0, 50.0, 50.0)
// L3072
libNtve_gf_DifficultyValueFixed(100.0, 100.0, 70.0, 70.0)
// L3099
libNtve_gf_DifficultyValueFixed(60.0, 60.0, 30.0, 30.0)
// L3128
libNtve_gf_DifficultyValueFixed(60.0, 60.0, 30.0, 30.0)
// L3164
libNtve_gf_DifficultyValueFixed(60.0, 60.0, 30.0, 30.0)
// L3202
libNtve_gf_DifficultyValueFixed(30.0, 30.0, 0.0, 0.0)
// L853
libNtve_gf_DifficultyValueFixed(90.0, 90.0, 60.0, 45.0)
// L854
libNtve_gf_DifficultyValueFixed(4000.0, 6000.0, 7000.0, 8000.0)
// L858
libNtve_gf_DifficultyValueFixed(3000.0, 3000.0, 5000.0, 6000.0)
// L3980
libNtve_gf_DifficultyValueFixed(30.0, 30.0, 30.0, 40.0)
// L3998
libNtve_gf_DifficultyValueFixed(15.0, 15.0, 20.0, 30.0)
// L4018
libNtve_gf_DifficultyValueFixed(25.0, 25.0, 35.0, 45.0)
// L4036
libNtve_gf_DifficultyValueFixed(60.0, 60.0, 70.0, 80.0)
// L1175
libNtve_gf_DifficultyValueFixed(600.0, 600.0, 500.0, 400.0)
// L1176
libNtve_gf_DifficultyValueFixed(240.0, 240.0, 150.0, 120.0)
// L1177
libNtve_gf_DifficultyValueFixed(80.0, 80.0, 60.0, 50.0)
// L1178
libNtve_gf_DifficultyValueFixed(20.0, 20.0, 15.0, 13.0)
// L1179
libNtve_gf_DifficultyValueFixed(250.0, 500.0, 700.0, 800.0)
// L1180
libNtve_gf_DifficultyValueFixed(200.0, 400.0, 750.0, 1000.0)
// L1432
libNtve_gf_DifficultyValueFixed(340.0, 340.0, 280.0, 280.0)
// L1434
libNtve_gf_DifficultyValueFixed(340.0, 340.0, 310.0, 310.0)
// L1435
libNtve_gf_DifficultyValueFixed(330.0, 330.0, 300.0, 300.0)
// L1436
libNtve_gf_DifficultyValueFixed(320.0, 320.0, 290.0, 290.0)
// L885
libNtve_gf_DifficultyValueFixed(180.0, 180.0, 180.0, 150.0)
// L1398
libNtve_gf_DifficultyValueFixed(2000.0, 2000.0, 3000.0, 3500.0)
// L1399
libNtve_gf_DifficultyValueFixed(0.85, 0.85, 0.85, 0.85)
// L1400
libNtve_gf_DifficultyValueFixed(1.35, 1.35, 1.4, 1.45)
// L4311
libNtve_gf_DifficultyValueFixed(40.0, 40.0, 40.0, 40.0)
// L2523
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2581
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2639
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2697
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2755
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2813
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2871
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2929
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 160.0, 180.0)
// L2199
libNtve_gf_DifficultyValueFixed(90.0, 90.0, 75.0, 75.0)
// L2456
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 105.0, 105.0)
// L2731
libNtve_gf_DifficultyValueFixed(90.0, 90.0, 75.0, 75.0)
// L2980
libNtve_gf_DifficultyValueFixed(120.0, 120.0, 105.0, 105.0)
// L3693
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 25.0, 25.0)
// L3780
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 25.0, 25.0)
// L3825
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 25.0, 25.0)
// L648
libNtve_gf_DifficultyValueFixed(180.0, 180.0, 180.0, 150.0)
// L651
libNtve_gf_DifficultyValueFixed(210.0, 210.0, 165.0, 135.0)
// L654
libNtve_gf_DifficultyValueFixed(240.0, 240.0, 150.0, 120.0)
// L1119
libNtve_gf_DifficultyValueFixed(300.0, 300.0, 270.0, 240.0)
// L865
libNtve_gf_DifficultyValueFixed(400.0, 400.0, 500.0, 600.0)
// L1072
libNtve_gf_DifficultyValueFixed(500.0, 500.0, 350.0, 250.0)
// L1073
libNtve_gf_DifficultyValueFixed(1000.0, 1500.0, 1500.0, 1500.0)
// L1079
libNtve_gf_DifficultyValueFixed(63.0, 125.0, 250.0, 300.0)
// L1087
libNtve_gf_DifficultyValueFixed(63.0, 125.0, 250.0, 300.0)
// L11804
libNtve_gf_DifficultyValueFixed(1.5, 1.5, 1.2, 1.1)
// L1751
libNtve_gf_DifficultyValueFixed(0.0, 0.0, 0.0, 1.0)
// L1888
libNtve_gf_DifficultyValueFixed(210.0, 130.0, 130.0, 130.0)
// L1890
libNtve_gf_DifficultyValueFixed(230.0, 220.0, 220.0, 220.0)
// L2439
libNtve_gf_DifficultyValueFixed(150.0, 70.0, 70.0, 70.0)
// L2534
libNtve_gf_DifficultyValueFixed(1.5, 1.0, 1.0, 1.0)
// L2571
libNtve_gf_DifficultyValueFixed(260.0, 180.0, 180.0, 180.0)
// L2592
libNtve_gf_DifficultyValueFixed(30.0, 0.0, 0.0, 0.0)
// L2602
libNtve_gf_DifficultyValueFixed(0.0, 75.0, 75.0, 75.0)
// L2607
libNtve_gf_DifficultyValueFixed(25.0, 20.0, 20.0, 20.0)
// L2677
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 30.0, 30.0)
// L2684
libNtve_gf_DifficultyValueFixed(15.0, 15.0, 25.0, 25.0)
// L521
libNtve_gf_DifficultyValueFixed(300.0, 300.0, 270.0, 240.0)
// L542
libNtve_gf_DifficultyValueFixed(1.5, 1.5, 2.0, 2.5)
// L543
libNtve_gf_DifficultyValueFixed(400.0, 750.0, 1000.0, 1500.0)
// L813
libNtve_gf_DifficultyValueFixed(40.0, 40.0, 10.0, 0.0)
// L821
libNtve_gf_DifficultyValueFixed(50.0, 50.0, 20.0, 0.0)
// L826
libNtve_gf_DifficultyValueFixed(80.0, 80.0, 50.0, 20.0)
// L872
libNtve_gf_DifficultyValueFixed(670.0, 670.0, 610.0, 550.0)
// L875
libNtve_gf_DifficultyValueFixed(80.0, 80.0, 50.0, 20.0)
// L880
libNtve_gf_DifficultyValueFixed(80.0, 80.0, 50.0, 20.0)
// L1557
libNtve_gf_DifficultyValueFixed(8.0, 8.0, 6.0, 4.0)
// L461
libNtve_gf_DifficultyValueFixed(250.0, 250.0, 250.0, 200.0)
// L2602
libNtve_gf_DifficultyValueFixed(7.0, 7.0, 10.0, 10.0)
// L2605
libNtve_gf_DifficultyValueFixed(6.0, 6.0, 10.0, 10.0)
// L4484
libNtve_gf_DifficultyValueFixed(10.0, 8.0, 5.0, 3.5)
// L4526
libNtve_gf_DifficultyValueFixed(10.0, 8.0, 5.0, 3.5)
// L248
libNtve_gf_DifficultyValueFixed(30.0, 0.0, 0.0, 0.0)
// L252
libNtve_gf_DifficultyValueFixed(90.0, 60.0, 30.0, 15.0)
// L587
libNtve_gf_DifficultyValueFixed(300.0, 500.0, 750.0, 1000.0)
// L3257
libNtve_gf_DifficultyValueFixed(2700.0, 1800.0, 1440.0, 1260.0)
// L3309
libNtve_gf_DifficultyValueFixed(240.0, 240.0, 210.0, 180.0)
// L3344
libNtve_gf_DifficultyValueFixed(300.0, 240.0, 180.0, 180.0)
// L3359
libNtve_gf_DifficultyValueFixed(240.0, 180.0, 160.0, 160.0)
// L3374
libNtve_gf_DifficultyValueFixed(300.0, 270.0, 200.0, 200.0)
// L636
libNtve_gf_DifficultyValueFixed(40.0, 30.0, 25.0, 20.0)
// L2942
libNtve_gf_DifficultyValueFixed(5.0, 5.0, 25.0, 20.0)
// L716
libNtve_gf_DifficultyValueFixed(240.0, 180.0, 160.0, 150.0)
// L717
libNtve_gf_DifficultyValueFixed(2000.0, 2000.0, 3000.0, 3500.0)
// L2302
libNtve_gf_DifficultyValueFixed(90.0, 90.0, 75.0, 60.0)
// L2338
libNtve_gf_DifficultyValueFixed(90.0, 90.0, 75.0, 60.0)