/
utils.cfg
129 lines (109 loc) · 2.51 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
117
118
119
120
121
122
123
124
125
126
127
128
129
#textdomain wesnoth-tutorial
#define PRINT STRING
[floating_label]
text={STRING}
size=18
duration=10000
color=255,255,255
[/floating_label]
#enddef
#define CLEAR_PRINT
[floating_label]
text="" # wmllint: ignore
[/floating_label]
#enddef
#define GENDER MALE_WML FEMALE_WML
[if]
[have_unit]
id=student
gender=male
[/have_unit]
[then]
{MALE_WML}
[/then]
[else]
{FEMALE_WML}
[/else]
[/if]
#enddef
#define ALLOW_END_TURN_AFTER_ATTACK
# for the case the player disobeys delfador's order and attacks
[event]
name=attack_end
id=prevent deadlock
[filter]
id=student
[/filter]
[allow_end_turn][/allow_end_turn]
[/event]
[event]
name=turn end
[remove_event]
id=prevent deadlock
[/remove_event]
[/event]
#enddef
#define UNDO_REMINDER
[if]
[variable]
name=undo_option
equals=yes
[/variable]
[then]
[message]
speaker=narrator
caption= _"Undo"
image=wesnoth-icon.png
message= _"Don’t forget, you can press <b>u</b> to undo most things if you make a mistake."
[/message]
[cancel_action] [/cancel_action]
{CLEAR_VARIABLE undo_option}
[/then]
[/if]
[allow_undo][/allow_undo]
#enddef
#define TALK_ABOUT ID_STRING MESSAGE_TEXT
[scroll_to_unit]
id={ID_STRING}
highlight=yes
[/scroll_to_unit]
[message]
speaker=Galdrad
scroll=no
highlight=no
message={MESSAGE_TEXT}
[/message]
#enddef
#define TALK_ABOUT_LOC POSITION MESSAGE_TEXT
[scroll_to]
x,y={POSITION}
highlight=yes
[/scroll_to]
[message]
speaker=Galdrad
scroll=no
highlight=no
message={MESSAGE_TEXT}
[/message]
#enddef
#define TALK_ABOUT_LOCS POSITION1 POSITION2 MESSAGE_TEXT
[scroll_to]
x,y={POSITION1}
highlight=yes
[/scroll_to]
[scroll_to]
x,y={POSITION2}
highlight=yes
[/scroll_to]
[message]
speaker=Galdrad
scroll=no
highlight=no
message={MESSAGE_TEXT}
[/message]
#enddef
# Note: we would not like the user to "press any key" (for example, Esc)
#define CONTINUE_MSG
_"
<big>Click a mouse button or press the spacebar to continue...</big>"
#enddef