-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathml_cohort_master_distinctions.txt
108 lines (95 loc) · 1.85 KB
/
ml_cohort_master_distinctions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
namespace = ml_cohort_master_distinctions
# changes cohort master count
ml_cohort_master_distinctions.1 = {
type = country_event
hidden = yes
trigger = {
scope:actor = {
has_legion_trigger = yes
}
}
immediate = {
every_governorships = {
limit = {
has_legion_trigger = yes
legion = scope:actor.legion
}
save_scope_as = legion_governorship
}
scope:legion_governorship = {
if = {
limit = {
has_variable = cohort_master
}
change_variable = {
name = cohort_master
add = 1
}
}
else = {
set_variable = {
name = cohort_master
value = 1
}
}
ROOT = {
trigger_event = {
id = ml_cohort_master_distinctions.2
}
}
}
}
}
## adds any cohort_master distinctions
ml_cohort_master_distinctions.2 = {
type = country_event
hidden = yes
trigger = {
scope:actor = {
has_legion_trigger = yes
has_variable = cohort_master
}
}
immediate = {
every_governorships = {
limit = {
has_legion_trigger = yes
legion = scope:actor.legion
}
save_scope_as = legion_governorship
}
scope:legion_governorship = {
if = {
limit = {
var:cohort_master = 3
scope:actor.legion = {
NOT = {
has_distinction = distinction_cohort_master_01
has_distinction = distinction_cohort_master_02
}
}
}
scope:actor.legion = {
add_distinction = distinction_cohort_master_01
}
}
else_if = {
limit = {
var:cohort_master = 6
scope:actor.legion = {
has_distinction = distinction_cohort_master_01
}
NOT = {
scope:actor.legion = {
has_distinction = distinction_cohort_master_02
}
}
}
scope:actor.legion = {
remove_distinction = distinction_cohort_master_01
add_distinction = distinction_cohort_master_02
}
}
}
}
}