-
Notifications
You must be signed in to change notification settings - Fork 5
/
events.cwt
166 lines (145 loc) · 3.8 KB
/
events.cwt
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
enums = {
enum[event_types] = {
country_event
major_country_event
province_event
character_event
state_event
}
}
single_alias[complex_event_desc] = {
## cardinality = 0..inf
desc = localisation
## cardinality = 0..inf
random_valid = {
## cardinality = 2..inf
desc = localisation
}
## cardinality = 0..inf
first_valid = {
## cardinality = 1..inf
triggered_desc = {
desc = localisation
trigger = {
## cardinality = 1..inf
alias_name[trigger] = alias_match_left[trigger]
}
}
}
}
types = {
type[event] = {
path = "game/events"
## push_scope = country
subtype[country] = {
type = country_event
}
## push_scope = country
subtype[major_country] = {
type = major_country_event
}
## push_scope = province
subtype[province] = {
type = province_event
}
## push_scope = character
subtype[character] = {
type = character_event
}
## push_scope = state
subtype[state] = {
type = state_event
}
subtype[visible] = {
## cardinality = 0..1
hidden = no
}
subtype[complex_desc_and_visible] = {
## cardinality = 0..1
hidden = no
desc = {
}
}
subtype[non_complex_desc_and_visible] = {
## cardinality = 0..1
hidden = no
desc = localisation
}
localisation = {
subtype[visible] = {
title = title
}
subtype[non_complex_desc_and_visible] = {
description = desc
}
}
}
}
event = {
type = enum[event_types]
subtype[visible] = {
title = localisation
picture = <event_picture>
desc = localisation
desc = single_alias_right[complex_event_desc]
}
subtype[!visible] = {
# So that things don't yell at you if you make an event hidden for a lil while
## cardinality = 0..1
title = localisation
## cardinality = 0..1
picture = <event_picture>
## cardinality = 0..1
desc = localisation
## cardinality = 0..1
desc = single_alias_right[complex_event_desc]
}
## cardinality = 0..1
### Defaults to no.
hidden = bool
## cardinality = 0..1
### Defaults to no.
fire_only_once = bool
## cardinality = 0..inf
left_portrait = scope[character]
## cardinality = 0..inf
right_portrait = scope[character]
## cardinality = 0..1
goto_location = scope[province]
## cardinality = 0..1
weight_multiplier = single_alias_right[weight_block]
## cardinality = 0..1
trigger = {
## cardinality = 0..inf
alias_name[trigger] = alias_match_left[trigger]
}
## cardinality = 0..1
immediate = {
## cardinality = 0..inf
alias_name[effect] = alias_match_left[effect]
}
## cardinality = 0..inf
option = {
## cardinality = 0..1
name = localisation
## cardinality = 0..1
highlight = bool
## cardinality = 0..1
### Defaults to no.
exclusive = bool
## cardinality = 0..inf
alias_name[effect] = alias_match_left[effect]
## cardinality = 0..1
trigger = {
## cardinality = 0..inf
alias_name[trigger] = alias_match_left[trigger]
}
## cardinality = 0..1
ai_chance = single_alias_right[chance_block]
}
## cardinality = 0..inf
after = {
## cardinality = 0..inf
alias_name[effect] = alias_match_left[effect]
}
}