#textdomain wesnoth-tutorial

#define TEACHER MESSAGE_TEXT
    [message]
        speaker=Galdrad
        message={MESSAGE_TEXT}
    [/message]
#enddef

#define STUDENT MESSAGE_TEXT
    [message]
        speaker=student
        message={MESSAGE_TEXT}
    [/message]
#enddef

#define NARRATOR MESSAGE_TEXT
    [message]
        speaker=narrator
        message={MESSAGE_TEXT}
        image=wesnoth-icon.png
    [/message]
#enddef

#define UNDO_REMINDER
    {NARRATOR (_"<big>Remember:</big>
You can press 'u' to undo most things; useful for correcting mistakes.")}
    [allow_undo][/allow_undo]
#enddef

#define TALK_ABOUT ID_STRING MESSAGE_TEXT
    [scroll_to_unit]
        id={ID_STRING}
    [/scroll_to_unit]
    # Pretend this is narrator, since otherwise we scroll back.
    [message]
        speaker=narrator
        image=portraits/elves/captain.png
        message="<big>" + _ "Galdrad" + "</big>
" + {MESSAGE_TEXT}
    [/message]
#enddef

#define TALK_NO_MOVE MESSAGE_TEXT
    # Pretend this is narrator, since otherwise we scroll back.
    [message]
        speaker=narrator
        image=portraits/elves/captain.png
        message="<big>" + _ "Galdrad" + "</big>
" + {MESSAGE_TEXT}
    [/message]
#enddef

#define TALK_ABOUT_LOC POSITION MESSAGE_TEXT
    [scroll_to]
        x,y={POSITION}
    [/scroll_to]
    # Pretend this is narrator, since otherwise we scroll back.
    [message]
        speaker=narrator
        image=portraits/elves/captain.png
        message="<big>" + _ "Galdrad" + "</big>
" + {MESSAGE_TEXT}
    [/message]
#enddef

#define EXPLAIN_STRONG_INTELLIGENT ID_STRING
    [if]
        [variable]
            name=strongint_explained
            not_equals=done
        [/variable]
        [then]
            {TEACHER ({ID_STRING} + _", your new recruit, has two traits: strong and intelligent. Strong means a unit does more damage, and intelligent means it requires less experience to advance a level.")}
            {VARIABLE strongint_explained done}
        [/then]
    [/if]
#enddef

#define EXPLAIN_QUICK_RESILIENT ID_STRING
    [if]
        [variable]
            name=quickres_explained
            not_equals=done
        [/variable]
        [then]
            {TEACHER ({ID_STRING} + _" has two traits: quick and resilient. Quick means a unit can move one tile further each turn, and resilient means it has more hitpoints.")}
            {VARIABLE quickres_explained done}
        [/then]
    [/if]
#enddef
