#textdomain wesnoth-low

#define PLAYABLE
    unrenamable=yes
    controller=human
    canrecruit=yes
    team_name=player
    user_team_name= _ "Player"
    village_gold=1
#ifdef MULTIPLAYER
    persistent=yes
    team_lock=yes
    gold_lock=yes
    income_lock=yes
    faction=Custom
#endif
#enddef

### Main Characters ###

#define KALENZ
    id=Kalenz
    unrenamable=yes
    name= _ "Kalenz"
    profile="portraits/kalenz_young.png"
    type=Elvish Fighter
    canrecruit=yes
    placement=map,leader
    [filter_recall]
        type={ELVES_STEEL}
    [/filter_recall]
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
#enddef

### Kalenz's pals ###

#define HURALDUR
    id=Huraldur
    name= _ "Huraldur"
    type=Elvish Scout
    unrenamable=yes
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#define SCOUT
    id=scout
    #    name= _ "Huraldur"
    type=Elvish Scout
    unrenamable=yes
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#define LANDAR
    id=Landar
    name= _ "Landar"
    unrenamable=yes
    profile="portraits/landar.png"
    type=Elvish Archer
    gender=male
    canrecruit=yes
    placement=map,leader
    [filter_recall]
        type={ELVES_STEEL}
    [/filter_recall]
    [modifications]
        {TRAIT_DEXTROUS}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
#enddef

### Cleodil and her pals

#define CLEODIL
    id=Cleodil
    name= _ "Cleodil"
    profile="portraits/cleodil.png"
    type=Elvish Shyde
    canrecruit=yes
    extra_recruit=Elvish Scout, Elvish Shaman, Wose
    unrenamable=yes
    placement=map,leader
    [filter_recall]
        type={ELVES_NON_STEEL}
    [/filter_recall]
    [abilities]
#ifndef MULTIPLAYER
        {ABILITY_ELATES_KALENZ}
        {ABILITY_HEALS_KALENZ}
#endif
        #TODO test the whole extra traits things.
        #        {ABILITY_EXTRA_HEAL}
        {ABILITY_CURES}
    [/abilities]
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
#enddef

#define LARIL
    id=Laril
    name= _ "Laril"
    type=Elvish Druid
    unrenamable=yes
    [modifications]
        {TRAIT_STRONG}
        {TRAIT_INTELLIGENT}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#define TAMERIL_ISIMERIL
    id=Tameril-Isimeril
    name= _ "Tameril-Isimeril"
    type=Elvish Sorceress
    unrenamable=yes
    [modifications]
        {TRAIT_DEXTROUS}
        {TRAIT_RESILIENT}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#define OLURF
    id=Olurf
    name= _ "Olurf"
    profile="portraits/olurf.png"
    unrenamable=yes
    type=Dwarvish Steelclad
    extra_recruit=Dwarvish Fighter, Dwarvish Scout, Dwarvish Thunderer, Dwarvish Ulfserker, Dwarvish Guardsman
    placement=map,leader
    [filter_recall]
        race=dwarf
    [/filter_recall]
    [modifications]
        {TRAIT_STRONG}
        {TRAIT_RESILIENT}
    [/modifications]
#enddef

#define OLURF_PARTY SIDE
    [unit]
        id=Bulrod
        name=_ "Bulrod"
        type=Dwarvish Steelclad
        side={SIDE}
        #placement=leader
        unrenamable=yes
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]
    [/unit]
    [unit]
        id=Simclon
        name=_ "Simclon"
        unrenamable=yes
        type=Dwarvish Thunderer
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]

    [unit]
        id=Harald
        name=_ "Harald"
        unrenamable=yes
        type=Dwarvish Berserker
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]

    [unit]
        id=Budrin
        name=_ "Budrin"
        unrenamable=yes
        type=Dwarvish Berserker
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]
    [/unit]

    [unit]
        id=Dudan
        name=_ "Dudan"
        unrenamable=yes
        type=Dwarvish Fighter
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]
    [/unit]

    [unit]
        id=Korbun
        name=_ "Korbun"
        unrenamable=yes
        type=Dwarvish Scout
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_QUICK}
            {TRAIT_HEALTHY}
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]

    [unit]
        id=Merhun
        name=_ "Merhun"
        unrenamable=yes
        type=Dwarvish Berserker
        side={SIDE}
        x=$olurf_entry.x
        y=$olurf_entry.y
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]
    [/unit]
#enddef

#define GALTRID
    id=Galtrid
    name= _ "Galtrid"
    unrenamable=yes
    profile="portraits/galtrid.png"
    type=Elvish Captain
    canrecruit=yes
    placement=map,leader
    [modifications]
        {TRAIT_STRONG}
        {TRAIT_RESILIENT}
    [/modifications]
#enddef

#define ERADION
    id=Eradion
    name= _ "Eradion"
    unrenamable=yes
    type=Elvish Marshal
    canrecruit=yes
    placement=map,leader
#enddef

#define EL_ISOMITHIR
    id=El_Isomithir
    name= _ "El’Isomithir"
    unrenamable=yes
    #team_name=player
    #user_team_name= _ "Player"
    type=Elvish Hero
    canrecruit=yes
    placement=map,leader
    [modifications]
        #TODO define some different traits for him
        {TRAIT_STRONG}
        {TRAIT_RESILIENT}
    [/modifications]
#enddef

#define URADREDIA
    {ELF_SETUP}
    id=Uradredia
    name= _ "Uradredia"
    unrenamable=yes
    profile="portraits/uradredia.png"
    type=Elvish Marshal
    [modifications]
        {TRAIT_STRONG}
        {TRAIT_RESILIENT}
    [/modifications]
    color=white
    canrecruit=yes
    placement=map,leader
    recruit=Elvish Fighter,Elvish Archer,Elvish Ranger,Elvish Scout,Elvish Hero,Elvish Marksman
    user_team_name= _ "Player"
    team_name=player
#enddef

#define ANDUILAS
    id=Anduilas
    name= _ "Anduilas"
    unrenamable=yes
    type=Elvish Archer
    gender=male
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_DEXTROUS}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#define ARKILDUR
    id=Arkildur
    name= _ "Arkildur"
    unrenamable=yes
    type=Elvish Fighter
    [modifications]
        {TRAIT_QUICK}
        {TRAIT_STRONG}
        {TRAIT_LOYAL}
    [/modifications]
    {IS_LOYAL}
#enddef

#TODO bring the macro to use.
#define SPEECH_CLEODIL
    [event]
        name=attacks
        [filter_second]
            id=Cleodil
        [/filter_second]
        [message]
            speaker=unit
            message= _ "Prepare to die, elven witch!"
        [/message]
        [message]
            id=Kalenz
            message= _ "I will slay any who harms her without mercy."
        [/message]
        [message]
            id=Cleodil
            message= _ "Nor will you find me an easy foe!"
        [/message]
    [/event]
    [event]
        name=attacker hits
        [filter_second]
            id=Cleodil
        [/filter_second]
        [message]
            id=Cleodil
            message= _ "I am wounded!"
        [/message]
        [message]
            id=Kalenz
            message= _ "Cleodil! No! I will aid you."
        [/message]
    [/event]
#enddef
