1#textdomain wesnoth
2# Utility macros for scenario-objective control.
3
4# These macros don't depend on any others.  Please don't change this.
5# ! in comments is used in generating HTML documentation, ignore it otherwise.
6
7# Max number of turns in a scenario, mainly for use as a turn upper bound
8# in ai declarations for aggression, etc.
9#define FOREVER
10999 #enddef
11
12# The effectively infinite radius.
13#define INFINITY
14999 #enddef
15
16# Everywhere on the map.  For filters that would otherwise touch recall lists.
17#define EVERYWHERE
18x,y=1-999,1-999 #enddef
19
20#define NO_MAP_DATA
21    # The display code in the game becomes confused if you give it a
22    # scenario with no map data (like, a text epilogue).  Use this
23    # macro to feed it dummy map data that won't actually be used.
24    map_data="Gg, Gg, Gg, Gg
25Gg, 1 Gg, 2 Gg, Gg
26Gg, Gg, Gg, Gg
27"
28#enddef
29
30#define AI_CANT_PLAY SIDES
31    # Displays a standard warning at the start of the first AI turn for each
32    # given side about the AI not knowing how to play this side properly. Use
33    # this to tag sides intended solely for human players in special multiplayer
34    # scenarios (ones with shops, custom right-click options and such).
35    #
36    # Example:
37    # ! {AI_CANT_PLAY 1,2,3,4}
38    [event]
39        name=ai turn
40        first_time_only=no
41        [filter_condition]
42            [have_unit]
43                side=$side_number
44
45                [and]
46                    side={SIDES}
47                [/and]
48            [/have_unit]
49
50            [variable]
51                name=side_$side_number|_ai_warning_displayed
52                not_equals=yes
53            [/variable]
54        [/filter_condition]
55
56        [message]
57            speaker=narrator
58            message= _ "The computer player might not be able to play side $side_number properly in this scenario. Side $side_number is intended to be played by a human player."
59            image=wesnoth-icon.png
60        [/message]
61
62        [set_variable]
63            name=side_$side_number|_ai_warning_displayed
64            value=yes
65        [/set_variable]
66    [/event]
67#enddef
68
69#define CAMPAIGN_DIFFICULTY DEFINE IMAGE LABEL DESCRIPTION
70    [difficulty]
71        define={DEFINE}
72        image={IMAGE}
73        label={LABEL}
74        description={DESCRIPTION}
75    [/difficulty]
76#enddef
77
78#define DEFAULT_DIFFICULTY
79    [+difficulty]
80        default=yes
81    [/difficulty]
82#enddef
83