#textdomain wesnoth-sof
#define RECRUIT E N H
#ifdef EASY
    recruit={E}
#endif
#ifdef NORMAL
    recruit={N}
#endif
#ifdef HARD
    recruit={H}
#endif
#enddef

#define SOF_DEATHS
    [event]
        name=die
        [filter]
            id=Rugnur
        [/filter]
        [message]
            speaker=Rugnur
            message= _ "Gahahh..."	# wmllint: no spellcheck
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
    [event]
        name=die
        [filter]
            id=Haldric II
        [/filter]
        [message]
            speaker=Haldric II
            message= _ "Maghah..."	# wmllint: no spellcheck
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
    [event]
        name=die
        [filter]
            id=Alanin
        [/filter]
        [message]
            speaker=Alanin
            message= _ "Ahhgg..."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
    [event]
        name=die
        [filter]
            id=Baglur
        [/filter]
        [message]
            speaker=Baglur
            message= _ "Gaanngh..."	# wmllint: no spellcheck
        [/message]
    [/event]
    [event]
        name=die
        [filter]
            id=Krawg
        [/filter]
        [message]
            speaker=Krawg
            message= _ "Kraa..."	# wmllint: no spellcheck
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
    [event]
        name=die
        [filter]
            id=Thursagan
        [/filter]
        [message]
            speaker=Thursagan
            message= _ "Ayahahh..."	# wmllint: no spellcheck
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
#enddef

#define ROLEMACRO X
    [role]
        role=temp{X}
        type=Dwarvish Lord,Dwarvish Dragonguard,Dwarvish Runemaster_alt,Dwarvish Sentinel,Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Runesmith,Dwarvish Stalwart,Gryphon Master,Gryphon Rider,Dwarvish Thunderer,Dwarvish Guardsman,Dwarvish Fighter
    [/role]
    [store_unit]
        [filter]
            role=temp{X}
        [/filter]
        variable=temp{X}
        kill=yes
    [/store_unit]
#enddef

#define HEROMACRO ID_STRING
    [store_unit]
        [filter]
            id={ID_STRING}
        [/filter]
        variable=temp{ID_STRING}
        kill=yes
    [/store_unit]
#enddef

#define RECALLMACRO VALUE
    [unstore_unit]
        variable=temp{VALUE}
    [/unstore_unit]
    [recall]
        role=temp{VALUE}
    [/recall]
    [recall]
        id={VALUE}
    [/recall]
    [clear_variable]
        name=temp{VALUE}
    [/clear_variable]
#enddef
