# Difficulty Is (two)

Grammar — Difficulty is difficulty1 or difficulty2
FlagsOperator | CustomScript | Function

Returns true if the current difficulty setting is either of these. This is for campaign use (in which all players have the same difficulty setting), so player 1’s setting is used.

# Arguments

  • int<difficulty> — Difficulty1
  • int<difficulty> — Difficulty2

Returns — bool

(PlayerDifficulty(1) == #PARAM(difficulty1) || PlayerDifficulty(1) == #PARAM(difficulty2))

Category: AI / MiscCampaign / Functions

# Examples

— None found —