#textdomain wesnoth-utbs
# This file contains message to display when heroes die
# It is used until Scenario 6, when player get troll/dwarf ally hero

#define KALEH_DEATH
    [event]
        name=die
        [filter]
            description=Kaleh
        [/filter]

        [message]
            speaker=unit
            message= _ "I'm too young to die. What will happen to my people?"
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
#enddef

#define FRIEND_DEATH
    [event]
        name=die

        [filter]
            description=Nym
        [/filter]

        [message]
            speaker=unit
            message= _ "Save me Kaleh, I'm dying..."
        [/message]

#ifdef FINAL_FIGHT
	{VARIABLE nym_dead 0}
	{VARIABLE_OP allies_killed add 1}
#else		
        [endlevel]
            result=defeat
        [/endlevel]
#endif
    [/event]

    [event]
        name=die
        [filter]
            description=Zhul
        [/filter]

        [message]
            speaker=unit
            message= _ "Eloh protect us, I have fallen."
        [/message]

#ifdef FINAL_FIGHT
	{VARIABLE zhul_dead 0}
	{VARIABLE_OP allies_killed add 1}
#else		
        [endlevel]
            result=defeat
        [/endlevel]
#endif
    [/event]
#enddef

#define GARAK_DEATH
    [event]
        name=die

        [filter]
            description=Garak
        [/filter]

        [message]
            speaker=unit
            message= _ "Aaaargh! Curse you!"
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
#enddef

#define ALLY_DEATH
    [event]
        name=die

        [filter]
            description=$ally_name
        [/filter]

        [if]
            [variable]
                name=ally_race
                equals=Dwarf
            [/variable]

            [then]
                [message]
                    description=$ally_name
                    message= _ "I go now to join my forefathers..."
                [/message]
            [/then]

            [else]
                [message]
                    description=$ally_name
                    message= _ "No, $ally_name can't die now!"
                [/message]
            [/else]
        [/if]

        [if]
            [variable]
                name=ally_must_live
                numerical_equals=1
            [/variable]

            [then]
                [message]
                    description=Kaleh
                    message= _ "Without his guidance, how can we escape from these infernal caves? We are lost without him!"
                [/message]

                [endlevel]
                    result=defeat
                [/endlevel]
            [/then]

            [else]
                [message]
                    description=Kaleh
                    message= _ "He was a brave warrior and a true ally. He will be missed."
                [/message]
            [/else]
        [/if]

        [set_variable]
            name=ally_dead
            value=1
        [/set_variable]
    [/event]
#enddef

#define ESANOO_DEATH
    [event]
        name=die
        [filter]
            description=Esanoo
        [/filter]

        [message]
            speaker=unit
            message= _ "Farewell Nym, I go to the sea god. You elves must go on without me."
        [/message]

        [message]
            description=Nym
            message= _ "Farewell Esanoo. You were my favorite of the merfolk."
        [/message]
    [/event]
#enddef

#define KROMPH_DEATH
    [event]
        name=die
        [filter]
            description=Kromph
        [/filter]

        [message]
            speaker=unit
            message= _ "Aaauurrrgghhh!!!"
        [/message]
    [/event]
#enddef

#define LATE_ALLY_DEATH
    [event]
        name=die

        [filter]
            description=$ally_name
        [/filter]

        [if]
            [variable]
                name=ally_race
                equals=Dwarf
            [/variable]

            [then]
                [message]
                    description=$ally_name
                    message= _ "By Moradin, I have fallen!"
                [/message]
            [/then]

            [else]
                [message]
                    description=$ally_name
                    message= _ "No, $ally_name can't die now!"
                [/message]
            [/else]
        [/if]

        [set_variable]
            name=allies_killed
            add=1
        [/set_variable]

        [set_variable]
            name=ally_dead
            value=1
        [/set_variable]
    [/event]
#enddef

#define LATE_KALEH_DEATH
    [event]
        name=die
        [filter]
            description=Kaleh
        [/filter]

        [message]
            speaker=unit
            message= _ "To die on the cusp of victory. Oh the irony!"
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
#enddef

#define ELYSSA_DEATH
    [event]
        name=die

        [filter]
            description=Elyssa
        [/filter]

        [message]
            speaker=unit
            message= _ "This can't be the end, I have too much left to see."
        [/message]

        [message]
            description=Kaleh
            message= _ "How could we have let her die? I've never seen fire magic like that before. She will be sorely missed."
        [/message]
    [/event]
#enddef
