#textdomain wesnoth-nr

#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.
    [recall]
        role=Supporter
    [/recall]

    [if]
        [not]
            [have_unit]
                role=Supporter
            [/have_unit]
        [/not]

        [then]
            [role]
                side=1
                [not]
                    id=Tallin
                [/not]
                role=Supporter
            [/role]

            [if]
                [not]
                    [have_unit]
                        role=Supporter
                    [/have_unit]
                [/not]

                [then]
                    [unit]
                        side=1
                        type=Peasant
                        x,y=recall,recall
                        role=Supporter
                    [/unit]
                [/then]
            [/if]

            [recall]
                role=Supporter
            [/recall]
        [/then]
    [/if]
#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

#macro for spawning a unit with ai guardian special
#define GENERIC_GUARDIAN_UNIT SIDE TYPE X Y
    {GENERIC_UNIT {SIDE} {TYPE} {X} {Y} }
    [+unit]
        ai_special=guardian
        animate=no
    [/unit]
#enddef
