Skip to content

Civilization

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference the civilizations in the game. This can be used in research tech conditions to check civ or set a players civ in the player manager.

Examples

Source code in AoE2ScenarioParser/datasets/object_support.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
class Civilization(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference the civilizations in the game.
    This can be used in research tech conditions to check civ or set a players civ in the player manager.

    **Examples**



    """
    GAIA = 0
    BRITONS = 1
    FRANKS = 2
    GOTHS = 3
    TEUTONS = 4
    JAPANESE = 5
    CHINESE = 6
    BYZANTINES = 7
    PERSIANS = 8
    SARACENS = 9
    TURKS = 10
    VIKINGS = 11
    MONGOLS = 12
    CELTS = 13
    SPANISH = 14
    AZTECS = 15
    MAYANS = 16
    HUNS = 17
    KOREANS = 18
    ITALIANS = 19
    HINDUSTANIS = 20
    INCAS = 21
    MAGYARS = 22
    SLAVS = 23
    PORTUGUESE = 24
    ETHIOPIANS = 25
    MALIANS = 26
    BERBERS = 27
    KHMER = 28
    MALAY = 29
    BURMESE = 30
    VIETNAMESE = 31
    BULGARIANS = 32
    TATARS = 33
    CUMANS = 34
    LITHUANIANS = 35
    BURGUNDIANS = 36
    SICILIANS = 37
    POLES = 38
    BOHEMIANS = 39
    DRAVIDIANS = 40
    BENGALIS = 41
    GURJARAS = 42
    ROMANS = 43
    ARMENIANS = 44
    GEORGIANS = 45
    ACHAEMENIDS = 46
    ATHENIANS = 47
    SPARTANS = 48
    RANDOM = 65537
    FULL_RANDOM = 65539

Attributes

GAIA = 0 class-attribute instance-attribute

Value: 0

BRITONS = 1 class-attribute instance-attribute

Value: 1

FRANKS = 2 class-attribute instance-attribute

Value: 2

GOTHS = 3 class-attribute instance-attribute

Value: 3

TEUTONS = 4 class-attribute instance-attribute

Value: 4

JAPANESE = 5 class-attribute instance-attribute

Value: 5

CHINESE = 6 class-attribute instance-attribute

Value: 6

BYZANTINES = 7 class-attribute instance-attribute

Value: 7

PERSIANS = 8 class-attribute instance-attribute

Value: 8

SARACENS = 9 class-attribute instance-attribute

Value: 9

TURKS = 10 class-attribute instance-attribute

Value: 10

VIKINGS = 11 class-attribute instance-attribute

Value: 11

MONGOLS = 12 class-attribute instance-attribute

Value: 12

CELTS = 13 class-attribute instance-attribute

Value: 13

SPANISH = 14 class-attribute instance-attribute

Value: 14

AZTECS = 15 class-attribute instance-attribute

Value: 15

MAYANS = 16 class-attribute instance-attribute

Value: 16

HUNS = 17 class-attribute instance-attribute

Value: 17

KOREANS = 18 class-attribute instance-attribute

Value: 18

ITALIANS = 19 class-attribute instance-attribute

Value: 19

HINDUSTANIS = 20 class-attribute instance-attribute

Value: 20

INCAS = 21 class-attribute instance-attribute

Value: 21

MAGYARS = 22 class-attribute instance-attribute

Value: 22

SLAVS = 23 class-attribute instance-attribute

Value: 23

PORTUGUESE = 24 class-attribute instance-attribute

Value: 24

ETHIOPIANS = 25 class-attribute instance-attribute

Value: 25

MALIANS = 26 class-attribute instance-attribute

Value: 26

BERBERS = 27 class-attribute instance-attribute

Value: 27

KHMER = 28 class-attribute instance-attribute

Value: 28

MALAY = 29 class-attribute instance-attribute

Value: 29

BURMESE = 30 class-attribute instance-attribute

Value: 30

VIETNAMESE = 31 class-attribute instance-attribute

Value: 31

BULGARIANS = 32 class-attribute instance-attribute

Value: 32

TATARS = 33 class-attribute instance-attribute

Value: 33

CUMANS = 34 class-attribute instance-attribute

Value: 34

LITHUANIANS = 35 class-attribute instance-attribute

Value: 35

BURGUNDIANS = 36 class-attribute instance-attribute

Value: 36

SICILIANS = 37 class-attribute instance-attribute

Value: 37

POLES = 38 class-attribute instance-attribute

Value: 38

BOHEMIANS = 39 class-attribute instance-attribute

Value: 39

DRAVIDIANS = 40 class-attribute instance-attribute

Value: 40

BENGALIS = 41 class-attribute instance-attribute

Value: 41

GURJARAS = 42 class-attribute instance-attribute

Value: 42

ROMANS = 43 class-attribute instance-attribute

Value: 43

ARMENIANS = 44 class-attribute instance-attribute

Value: 44

GEORGIANS = 45 class-attribute instance-attribute

Value: 45

ACHAEMENIDS = 46 class-attribute instance-attribute

Value: 46

ATHENIANS = 47 class-attribute instance-attribute

Value: 47

SPARTANS = 48 class-attribute instance-attribute

Value: 48

RANDOM = 65537 class-attribute instance-attribute

Value: 65537

FULL_RANDOM = 65539 class-attribute instance-attribute

Value: 65539