-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloyalty_test.txt
156 lines (128 loc) · 2.41 KB
/
loyalty_test.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
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
namespace = loyalty_test
loyalty_test.1 = { #You hit
type = character_event
hidden = yes
immediate = {
set_variable = {
name = roll
value = { integer_range = { min = 1 max = 20 } }
}
if = {
limit = {
has_variable = roll
var:roll <= scope:target.zeal
}
scope:loyalty_officer = { #He hits
trigger_event = {
id = loyalty_test.3
days = 3
}
}
}
else = {
scope:actor = { #YOU WIN
trigger_event = {
id = loyalty_test.4
days = 3
}
}
}
remove_variable = roll
}
}
loyalty_test.2 = { #You miss
type = character_event
hidden = yes
immediate = {
set_variable = {
name = roll
value = { integer_range = { min = 1 max = 20 } }
}
if = {
limit = {
has_variable = roll
var:roll <= scope:target.zeal
}
scope:actor = { #YOU LOSE
trigger_event = {
id = loyalty_test.5
days = 3
}
}
}
else = {
scope:loyalty_officer = { #LOOP
trigger_event = {
id = loyalty_test.3
days = 3
}
}
}
remove_variable = roll
}
}
loyalty_test.3 = { #You go
type = character_event
hidden = yes
immediate = {
set_variable = {
name = roll
value = { integer_range = { min = 1 max = 20 } }
}
if = {
limit = {
has_variable = roll
var:roll <= scope:loyalty_officer.zeal
}
scope:target = { #You hit
trigger_event = {
id = loyalty_test.1
days = 3
}
}
}
else = {
scope:target = { #You miss
trigger_event = {
id = loyalty_test.2
days = 3
}
}
}
remove_variable = roll
}
}
loyalty_test.4 = { #Report results
type = country_event
title = "loyalty_test.4.t"
desc = "loyalty_test.4.desc"
picture = interesting_histories_india_city
left_portrait = scope:actor.current_ruler
left_portrait = scope:loyalty_officer
right_portrait = scope:target
immediate = {
}
option = { #Continue
name = "loyalty_test.4.a"
scope:target = {
add_loyalty = loyalty_test_passed
}
}
}
loyalty_test.5 = { #Report results
type = country_event
title = "loyalty_test.5.t"
desc = "loyalty_test.5.desc"
picture = interesting_histories_india_city
left_portrait = scope:actor.current_ruler
left_portrait = scope:loyalty_officer
right_portrait = scope:target
immediate = {
}
option = { #Continue
name = "loyalty_test.5.a"
scope:target = {
add_loyalty = loyalty_test_failed
}
}
}