-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
utils.cfg
116 lines (104 loc) · 3.34 KB
/
utils.cfg
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
#textdomain wesnoth-nr
#define PLACE_PRISONER_IMAGE IMAGE X Y
{PLACE_IMAGE "{IMAGE}~RC(magenta>red)~BLIT(items/cage.png)" {X} {Y}}
#enddef
#define RECALL_SUPPORTER
# Recall a walk-on to say lines. Prefer whoever was tagged with
# role=Supporter previously; if that unit is dead, pick anyone from side 1.
[if]
[have_unit]
side=1
role=Supporter
search_recall_list=yes
[/have_unit]
[then]
# Recall a supporter if we have one to do so
[recall]
role=Supporter
[/recall]
[/then]
[elseif]
# Else, make a new supporter
[have_unit]
side=1
[not]
id=Tallin
[/not]
search_recall_list=yes
[/have_unit]
[then]
[role]
side=1
[not]
id=Tallin
[/not]
role=Supporter
[/role]
[recall]
role=Supporter
[/recall]
[/then]
[/elseif]
[else]
# If that fails too, make a brand new supporter
[unit]
type=Peasant
side=1
role=Supporter
animate=yes
placement=leader
[/unit]
[/else]
[/if]
#enddef
#define RECALL_KRASH
# In S11a-13a Krash starts as the leader of a side if he is alive. He is not
# defined in the corresponding side tags for these scenarios, since if he is,
# that would cause Krash to be reborn if he was dead. Since [recall] requires
# a leader on the map, do this to get him off of his recall list without one.
[store_unit]
[filter]
id=Krash
[/filter]
variable=krash
kill=yes
[/store_unit]
[if]
{VARIABLE_CONDITIONAL krash.id equals Krash}
[then]
[store_starting_location]
side=$krash.side
variable=start_loc
[/store_starting_location]
[unstore_unit]
variable=krash
x,y=$start_loc.x,$start_loc.y
[/unstore_unit]
[/then]
[/if]
{CLEAR_VARIABLE krash,start_loc}
#enddef
#define STORY_PART_HAMEL SPEECH_STRING
{STORY_PART_SPEECH portraits/Hamel.png (_ "Hamel") {SPEECH_STRING} }
#enddef
#define STORY_PART_TALLIN SPEECH_STRING
{STORY_PART_SPEECH portraits/Tallin.png (_ "Tallin") {SPEECH_STRING} }
#enddef
#define STORY_PART_ARTHIAN SPEECH_STRING
{STORY_PART_SPEECH portraits/Arthian.png (_ "Arthian") {SPEECH_STRING} }
#enddef
#define STORY_PART_FATHER_MORVIN SPEECH_STRING
{STORY_PART_SPEECH portraits/Father_Morvin.png (_ "Father Morvin") {SPEECH_STRING} }
#enddef
#define STORY_PART_SISTER_THERA SPEECH_STRING
{STORY_PART_SPEECH portraits/Sister_Thera.png (_ "Sister Thera") {SPEECH_STRING} }
#enddef
#define STORY_PART_STALRAG SPEECH_STRING
{STORY_PART_SPEECH portraits/Stalrag.png (_ "Stalrag") {SPEECH_STRING} }
#enddef
#define STORY_PART_ERYSSA SPEECH_STRING
{STORY_PART_SPEECH portraits/Eryssa.png (_ "Eryssa") {SPEECH_STRING} }
#enddef
#define STORY_PART_HIDEL SPEECH_STRING
{STORY_PART_SPEECH portraits/Hidel.png (_ "Hidel") {SPEECH_STRING} }
#enddef