-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarfare_events_ck_2_0.txt
121 lines (117 loc) · 2.18 KB
/
warfare_events_ck_2_0.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
109
110
111
112
113
114
115
116
117
118
119
120
121
namespace = warfare
warfare.1 = {
type = character_event
hidden = yes
trigger = {
is_governor = no
NOT = { employer = { tag = BAR } }
scope:target = {
OR = {
ROOT = {
is_mercenary = yes
}
NOT = { owner = root.employer }
}
OR = {
has_city_status = yes
is_capital = yes
}
NOR = {
has_variable = sacking_cooldown
has_province_modifier = utterly_sacked
}
}
}
immediate = {
save_scope_as = siege_instigator
save_scope_as = actor
add_popularity = popularity_small
if = {
limit = {
NOT = {
has_variable = sieginator
}
}
set_variable = {
name = sieginator
value = 1
}
}
else = {
change_variable = {
name = sieginator
add = 1
}
}
hidden_effect = { #Nickname assignation
if = {
limit = {
has_nickname = no
has_variable = sieginator
var:sieginator >= 20
has_culture_group = latin
}
add_nickname = NICKNAME_IMPERIOSUS
if = { limit = { is_minor_character = no } family = { add_prestige = prestige_small } }
}
else_if = {
limit = {
has_nickname = no
has_variable = sieginator
var:sieginator >= 20
NOT = {
has_culture_group = latin
}
}
add_nickname = NICKNAME_THE_BESIEGER
if = { limit = { is_minor_character = no } family = { add_prestige = prestige_small } }
}
if = {
limit = {
has_culture_group = latin
scope:target = {
province_id = 3256
}
}
random_list = {
25 = {
add_nickname = NICKNAME_AFRICANUS
if = { limit = { is_minor_character = no } family = { add_prestige = prestige_small } }
}
75 = { }
}
}
}
set_local_variable = {
name = sieged_city
value = scope:target
}
scope:target = {
save_scope_as = temp_city_scope_warfare_1
set_variable = {
name = sacking_cooldown
days = 1825 # 5 years
}
owner = {
current_ruler = {
save_scope_as = enemy_ruler
}
}
}
if = {
limit = {
has_character_modifier = commander_king
}
employer = {
trigger_event = {
id = city_looting_events.1
}
}
}
else = {
trigger_event = {
id = city_looting_events.2
}
}
}
}