Skip to content

DifficultyLevel

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference difficulty level of the game. Used in the 'Difficulty Level' condition.

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/difficulty_level.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class DifficultyLevel(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference difficulty level of the game. Used in the 'Difficulty
    Level' condition.

    **Examples**



    """
    EASIEST = 4
    STANDARD = 3
    MODERATE = 2
    HARD = 1
    HARDEST = 0
    EXTREME = -1
    """
    The only exception in the entire scenario where the value -1 is NOT an unselected/invalid value. 
    This might cause issues in the parser, please report them if you find any.
    """

Attributes

EASIEST = 4 class-attribute instance-attribute

Value: 4

STANDARD = 3 class-attribute instance-attribute

Value: 3

MODERATE = 2 class-attribute instance-attribute

Value: 2

HARD = 1 class-attribute instance-attribute

Value: 1

HARDEST = 0 class-attribute instance-attribute

Value: 0

EXTREME = -1 class-attribute instance-attribute

Value: -1

The only exception in the entire scenario where the value -1 is NOT an unselected/invalid value. This might cause issues in the parser, please report them if you find any.