#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]

            [recall]
                role=Supporter
            [/recall]
        [/then]
    [/if]
#enddef

## These macros support a fourth difficulty level, NIGHTMARE.

#macro to define a 'quantity' differently based on difficulty levels
#define QUANTITY4 NAME EASY_VALUE NORMAL_VALUE HARD_VALUE NIGHTMARE_VALUE
#ifdef EASY
    {NAME}={EASY_VALUE}
#endif

#ifdef NORMAL
    {NAME}={NORMAL_VALUE}
#endif

#ifdef HARD
    {NAME}={HARD_VALUE}
#endif

#ifdef NIGHTMARE
    {NAME}={NIGHTMARE_VALUE}
#endif
#enddef

#macro to define number of turns for different difficulty levels
#define TURNS4 EASY_AMOUNT NORMAL_AMOUNT HARD_AMOUNT NIGHTMARE_AMOUNT
    {QUANTITY4 turns {EASY_AMOUNT} {NORMAL_AMOUNT} {HARD_AMOUNT} {NIGHTMARE_AMOUNT}}
#enddef

#macro which will let you go {GOLD w/x y z} to set
#the gold depending on newbie/easy/medium/hard - w/x/y/z

#define GOLD4 EASY_AMOUNT NORMAL_AMOUNT HARD_AMOUNT NIGHTMARE_AMOUNT
    {QUANTITY4 gold {EASY_AMOUNT} {NORMAL_AMOUNT} {HARD_AMOUNT} {NIGHTMARE_AMOUNT}}
#enddef

#define INCOME4 EASY_AMOUNT NORMAL_AMOUNT HARD_AMOUNT NIGHTMARE_AMOUNT
    {QUANTITY4 income {EASY_AMOUNT} {NORMAL_AMOUNT} {HARD_AMOUNT} {NIGHTMARE_AMOUNT}}
#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_STALRAG SPEECH_STRING
    {STORY_PART_SPEECH portraits/Stalrag.png (_ "Stalrag") {SPEECH_STRING} }
#enddef
