-
-
Notifications
You must be signed in to change notification settings - Fork 992
/
macros.cfg
185 lines (164 loc) · 5.04 KB
/
macros.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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#textdomain wesnoth-thot
#define CONDITIONAL_MAGE_RECRUITING
[event]
name=die
first_time_only=no
[filter]
side=1
type_adv_tree=Mage
[not]
id=Ratheln
[/not]
[filter_wml]
[modifications]
[trait]
id=loyal
[/trait]
[/modifications]
[/filter_wml]
[/filter]
[if]
[not]
[have_unit]
search_recall_list=yes
side=1
type_adv_tree=Mage
[not]
id=Ratheln
[/not]
[filter_wml]
[modifications]
[trait]
id=loyal
[/trait]
[/modifications]
[/filter_wml]
[/have_unit]
[/not]
[then]
[message]
speaker=narrator
message= _ "Without magic users from Master Perrin’s academy in your party, you can no longer recruit new ones."
image=wesnoth-icon.png
[/message]
[disallow_recruit]
side=1
type=Mage
[/disallow_recruit]
[/then]
[/if]
[/event]
#enddef
#define OBJ_STAFF_OF_RIGHTEOUS_FLAME X Y
{PLACE_IMAGE "scenery/temple1.png" {X} {Y}}
[event]
name=moveto
[filter]
side=1
x,y={X},{Y}
[/filter]
[message]
speaker=unit
message= _ "There an altar in this temple, and a staff lies upon it."
[/message]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=1
x,y={X},{Y}
[/filter]
[object]
id=sorf # Prevent it from being picked up more than once.
name= _ "Staff of Righteous Flame"
image=items/staff-magic.png
duration=forever
description= _ "This staff gives a dying mage a final strike that will destroy all nearby enemies."
cannot_use_message= _ "Only a mage may wield this Staff."
[filter]
side=1
type_adv_tree=Mage
x,y=$x1,$y1
[/filter]
[then]
[modify_unit]
[filter]
id=$unit.id
[/filter]
overlays=misc/righteous-flame-icon.png
[event]
id=death_of_sorf_holder
name=last breath
delayed_variable_substitution=no
[filter]
id=$unit.id
[/filter]
[message]
speaker=unit
message=_"Aaarrgh! Though I die, the flame of righteousness shall send you down to darkness!"
[/message]
[animate_unit]
[filter]
id=$unit.id
[/filter]
flag=boo
[/animate_unit]
[kill]
[filter_adjacent]
id=$unit.id
is_enemy=yes
[/filter_adjacent]
animate=yes
fire_event=yes
[/kill]
[redraw][/redraw]
[/event]
[/modify_unit]
[/then]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_STEADFAST}
[/abilities]
[/effect]
[effect]
apply_to=new_animation
[extra_anim]
flag=boo
start_time=0
[frame]
duration=700
halo=halo/elven/faerie-fire-halo[1~7].png
blend_color=255,0,0
blend_ratio=0.5
sound=fire.wav
[/frame]
[/extra_anim]
[/effect]
[/object]
[/event]
#enddef
#define RECALL_VETERAN TYPE X Y
[recall]
type={TYPE}
[or]
race=dwarf
[/or]
[not]
id=Aiglondur,Dulcatulos
[/not]
x,y={X},{Y}
[/recall]
#enddef
#define RENAME_MASKED_DWARVES SIDE
# The Masked Dwarves are nameless, it's a part of their charm...
[event]
name=recruit
first_time_only=no
[filter]
side={SIDE}
[/filter]
{MODIFY_UNIT x,y=$x1,$y1 name ( _ "Masked Dwarf")}
[/event]
#enddef