Moved Kaleh unit definition to one file, and changed advancement tree to AMLAs.

Added basic AMLAs (unbalanced).

Added a custom description for Kaleh and included it in the help.
This commit is contained in:
Jan Rietema 2007-10-31 16:20:24 +00:00
parent 28a0884c2e
commit cbaa724b22
8 changed files with 698 additions and 950 deletions

View file

@ -6,15 +6,11 @@
id="1_The_Morning_After"
name= _ "The Morning After"
label= _ "The Morning After"
map_data="{campaigns/Under_the_Burning_Suns/maps/1MorningAfter5.map}"
next_scenario=2_Across_the_Harsh_Sands
# don't display snapshot of map in saved games
snapshot="no"
{TURNS 34 32 30}
victory_when_enemies_defeated=no
@ -64,8 +60,9 @@
side=1
description=Kaleh
user_description= _ "Kaleh"
type=Kaleh Fighter
type=Kaleh
upkeep=free
variation=Youth
[modifications]
{TRAIT_RESILIENT}
{TRAIT_INTELLIGENT}

View file

@ -0,0 +1,694 @@
#define ENABLE_AMLA REQUISITE TYPE HP_RAISE DAMAGE XP
[advancement]
require_amla={REQUISITE}
[effect]
[/effect]
[effect]
apply_to=attack
increase_damage={DAMAGE}
[/effect]
[effect]
apply_to=variation
name={TYPE}
[/effect]
[effect]
apply_to=hitpoints
increase_total={HP_RAISE}
increase={HP_RAISE}
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase={XP}
[/effect]
[/advancement]
#enddef
#define CHANGE_AMLA TYPE HP_RAISE DAMAGE XP
[advancement]
[effect]
[/effect]
[effect]
apply_to=attack
range=melee
increase_damage={DAMAGE}
[/effect]
[effect]
apply_to=variation
name={TYPE}
[/effect]
[effect]
apply_to=hitpoints
increase_total={HP_RAISE}
increase={HP_RAISE}
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase={XP}
[/effect]
[/advancement]
#enddef
#define KALEH_ADVANCEMENT TIMES ID DESC IMAGE REQUISITE HP_RAISE XP EFFECT
[advancement]
id={ID}
description= {DESC}
image={IMAGE}
max_times={TIMES}
require_amla={REQUISITE}
[effect]
{EFFECT}
[/effect]
[effect]
apply_to=attack
range=melee
increase_damage=1
[/effect]
[effect]
apply_to=variation
name=Fighter
[/effect]
[effect]
apply_to=hitpoints
increase_total={HP_RAISE}
increase={HP_RAISE}
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase={XP}
[/effect]
[/advancement]
#enddef
[unit]
#textdomain wesnoth-utbs
id=Kaleh
race=elf
name= _ "Kaleh of the Quenoth Elves"
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
hitpoints=26
movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=24
level=1
profile=portraits/kaleh.png
alignment=lawful
image_leading=units/elves-desert/kaleh-leading.png
advanceto=null
cost=14
usage=fighter
[variation]
variation_name=Youth
inherit=yes
name= _ "Desert Youth"
[/variation]
# Kaleh 1: the low-damage 1st-level
[variation]
variation_name=Fighter
inherit=yes
name= _ "Desert Fighter"
# leadership
{ENABLE_AMLA "" Captain 4 1 12}
# swordskill
{CHANGE_AMLA Hero 6 1 8}
# bowskill 1
{CHANGE_AMLA Hero 4 1 4}
# bowskill 2
{CHANGE_AMLA Hero 4 1 4}
# bowskill 3
{CHANGE_AMLA Hero 4 1 5}
# bola
{CHANGE_AMLA Hero 4 1 6}
# camouflage
{CHANGE_AMLA Hero 4 1 5}
# sustenance
{CHANGE_AMLA Hero 4 1 8}
# armor-clad
{CHANGE_AMLA Hero 4 1 5}
# charisma
{CHANGE_AMLA Hero 4 1 10}
# stun
{CHANGE_AMLA Hero 4 1 5}
[/variation]
[variation]
variation_name=Captain
inherit=yes
level=2
name= _ "Desert Captain"
# leadership - moot
{CHANGE_AMLA Captain2 4 0 6}
# swordskill
{CHANGE_AMLA Captain2 4 0 6}
# bowskill 1
{CHANGE_AMLA Captain2 4 0 4}
# bowskill 2
{CHANGE_AMLA Captain2 4 0 4}
# bowskill 3
{CHANGE_AMLA Captain2 4 0 5}
# bola
{CHANGE_AMLA Captain2 4 0 6}
# camouflage
{CHANGE_AMLA Captain2 4 0 6}
# sustenance
{CHANGE_AMLA Captain2 4 0 6}
# armor-clad
{ENABLE_AMLA "sword" Captain2 4 0 8}
# charisma
{CHANGE_AMLA Captain2 4 0 10}
# stun
{ENABLE_AMLA "sword" Captain2 4 0 12}
[/variation]
[variation]
variation_name=Captain2
inherit=yes
level=2
name= _ "Desert Captain"
# leadership - moot
{CHANGE_AMLA Marshal 4 1 6}
# swordskill
{CHANGE_AMLA Marshal 4 1 6}
# bowskill 1
{CHANGE_AMLA Marshal 4 1 4}
# bowskill 2
{CHANGE_AMLA Marshal 4 1 4}
# bowskill 3
{CHANGE_AMLA Marshal 4 1 5}
# bola
{CHANGE_AMLA Marshal 4 1 6}
# camouflage
{CHANGE_AMLA Marshal 4 1 6}
# sustenance
{CHANGE_AMLA Marshal 4 1 6}
# armor-clad
{ENABLE_AMLA "" Marshal 4 1 8}
# charisma
{ENABLE_AMLA "" Marshal 4 1 10}
# stun - already enabled
{ENABLE_AMLA "" Marshal 4 1 12}
[/variation]
[variation]
variation_name=Hero
inherit=yes
level=2
name= _ "Desert Hero"
# leadership
{ENABLE_AMLA "" Captain2 4 0 8}
# swordskill
{CHANGE_AMLA Hero2 4 0 6}
# bowskill 1
{CHANGE_AMLA Hero2 4 0 4}
# bowskill 2
{CHANGE_AMLA Hero2 4 0 4}
# bowskill 3
{CHANGE_AMLA Hero2 4 0 5}
# bola
{CHANGE_AMLA Hero2 4 0 6}
# camouflage
{CHANGE_AMLA Hero2 4 0 6}
# sustenance
{CHANGE_AMLA Hero2 4 0 6}
# armor-clad
{ENABLE_AMLA "sword" Hero2 4 0 8}
# charisma
{CHANGE_AMLA Hero2 4 0 10}
# stun
{ENABLE_AMLA "sword" Hero2 4 0 12}
[/variation]
[variation]
variation_name=Hero2
inherit=yes
level=2
name= _ "Desert Hero"
# leadership - already enabled
{ENABLE_AMLA "" Marshal 4 2 8}
# swordskill
{CHANGE_AMLA Champion 4 1 6}
# bowskill 1
{CHANGE_AMLA Champion 4 1 4}
# bowskill 2
{CHANGE_AMLA Champion 4 1 4}
# bowskill 3
{CHANGE_AMLA Champion 4 1 5}
# bola
{CHANGE_AMLA Champion 4 1 6}
# camouflage
{CHANGE_AMLA Champion 4 1 6}
# sustenance
{CHANGE_AMLA Champion 4 1 6}
# armor-clad
{ENABLE_AMLA "" Champion 4 1 8}
# charisma
{CHANGE_AMLA Champion 4 1 10}
# stun - already enabled
{ENABLE_AMLA "" Champion 4 1 12}
[/variation]
[variation]
variation_name=Champion
inherit=yes
level=3
name= _ "Desert Champion"
[/variation]
[variation]
variation_name=Marshal
inherit=yes
level=3
name= _ "Desert Marshal"
[/variation]
# ADVANCEMENTS:
# I - LEADERSHIP
{KALEH_ADVANCEMENT 1 leadership (_ "a leader in battle") units/elves-desert/kaleh-leading.png not-allowed 4 20 (apply_to=new_ability
[abilities]
{ABILITY_LEADERSHIP_LEVEL_2}
[/abilities]
)}
# II - SWORDSKILL
{KALEH_ADVANCEMENT 2 sword (_ "a better swordsman") attacks/sword-elven.png "" 6 5 (apply_to=attack
range=melee
increase_damage=2
)}
# III - BOWSKILL 1
{KALEH_ADVANCEMENT 1 bow (_ "a better archer") attacks/bow-elven.png "" 5 5 (apply_to=attack
name=bow
increase_damage=1
increase_attacks=1
)}
# IV - BOWSKILL 2
{KALEH_ADVANCEMENT 1 bow2 (_ "a better archer") attacks/bow-elven.png bow 5 5 (apply_to=attack
name=bow
increase_damage=2
)}
# V - BOWSKILL 3
{KALEH_ADVANCEMENT 1 bow3 (_ "a marksman with the bow") attacks/bow-elven.png bow2 5 5 (apply_to=attack
name=bow
increase_damage=1
[set_specials]
{WEAPON_SPECIAL_MARKSMAN}
[/set_specials]
)}
# VI - BOLA
{KALEH_ADVANCEMENT 1 bola (_ "trained by Nym in using the bola") attacks/bolas.png "" 3 5 (apply_to=new_attack
name=bola
description= _"bola"
type=impact
range=ranged
damage=4
number=2
[specials]
{WEAPON_SPECIAL_SLOW}
[/specials]
icon=attacks/bolas.png
)}
# VII - CAMOUFLAGE
{KALEH_ADVANCEMENT 1 camouflage (_ "skilled in surviving the desert") units/elves-desert/kaleh-defend.png "" 3 5 (apply_to=new_ability
[abilities]
[hides]
id=camouflage
name= _ "camouflage"
name_inactive= _ "camouflage"
description= _ "Camouflage:
This unit can hide in desert dunes and desert mountains, and remain undetected by its enemies.
Enemy units cannot see this unit while it is in desert dunes and desert mountains, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
description_inactive= _ "Camouflage:
This unit can hide in desert dunes and desert mountains, and remain undetected by its enemies.
Enemy units cannot see this unit while it is in desert dunes and desert mountains, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
affect_self=yes
[filter_self]
[filter_location]
terrain=Dh,Dm
[/filter_location]
[/filter_self]
[/hides]
[/abilities]
)}
# VIII - SUSTENANCE
{KALEH_ADVANCEMENT 1 sustenance (_ "gain +20% resistance under the sun") attacks/sand-storm.png "camouflage" 3 5 (apply_to=new_ability
[abilities]
[resistance]
id=sustenance
add=20
max_value=30
apply_to=blade,pierce,impact,fire,cold,arcane
[filter_base_value]
greater_than=-1
[/filter_base_value]
[filter_self]
[filter_location]
time_of_day=lawful
[/filter_location]
[/filter_self]
name= _ "sustenance"
description= _ "Sustenance:
This unit's resistances are increased by 20% in daylight, on defense and attack. Vulnerabilities are not affected."
affect_self=yes
[/resistance]
[/abilities]
)}
# IX - ARMOR-CLAD
{KALEH_ADVANCEMENT 1 armor (_ "gain +10% resistance to blade, pierce and impact") attacks/heater-shield.png "non_existant" 3 5 (apply_to=new_ability
[abilities]
[resistance]
id=sustenance
add=10
max_value=30
apply_to=blade,pierce,impact
[filter_self]
[filter_location]
time_of_day=lawful
[/filter_location]
[/filter_self]
name= _ "armor-clad"
description= _ "Armor-Clad:
This unit's blade, pierce and impact resistances are increased by 10%."
affect_self=yes
[/resistance]
[/abilities]
)}
# X - CHARISMA
{KALEH_ADVANCEMENT 1 charisma (_ "a charismatic leader - all adjacent units pay no upkeep") attacks/whip.png "non_existant" 3 5 (apply_to=new_ability
[abilities]
[resistance]
id=charisma
max_value=-60
apply_to=none
[filter_base_value]
greater_than=100
[/filter_base_value]
name= _ "charisma"
description= _ "Charisma:
Adjacent units will be treated loyal and not pay upkeep."
affect_self=yes
[/resistance]
[/abilities]
)}
# XI - STUN
{KALEH_ADVANCEMENT 1 stun (_ "gain a stunning attack that disrupts enemy ZOC") attacks/scimitar.png "non_existant" 3 5 (apply_to=new_attack
name=sword_rush
description= _ "sword"
type=blade
icon=attacks/sword-elven.png
damage=5
number=4
range=melee
defense_weight=0
[specials]
[chance_to_hit]
id=fierce
name= _ "stun"
description= _ "Stun:
This attack puts enormous pressure on the enemy, disrupting his ZOC if a hit is landed. The attacker is exposing himself to attack and will be slowed as a result of the effort. Not active on defense."
name_inactive= _ "stun"
description_inactive= _ "Stun:
This attack puts enormous pressure on the enemy, disrupting his ZOC if a hit is landed. The attacker is exposing himself to attack and will be slowed as a result of the effort. Not active on defense."
apply_to=opponent
value=60
cumulative=yes
[/chance_to_hit]
[/specials]
)}
unit_description= _ "Kaleh is still a young Elf of the Quenoth, on the verge of adulthood. He trained with his father with the bow and sword, joining him in lighter expeditions and raids. When his father was lost, Kaleh became more serious and solemn than is usual for those who walk under the two suns. He turned inwards for answers and guidance, not knowing how much his people would look towards him for guidance in times to come."
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
# Melee damage increased by 1, ranged damage decreased by 1
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=5
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=2
number=3
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[if]
hits=yes
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[/else]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]
#define KALEH_ABILITIES
[event]
# charisma ability
name=moveto
first_time_only=no
[filter]
side=1
[filter_adjacent]
ability=charisma
[/filter_adjacent]
[or]
side=1
ability=charisma
[/or]
[or]
side=1
[wml_filter]
upkeep="loyal"
[/wml_filter]
[/or]
[/filter]
[store_unit]
variable=player_unit
kill=no
[filter]
side=1
[/filter]
[/store_unit]
{FOREACH player_unit i}
{VARIABLE player_unit[$i].upkeep "full"}
[unstore_unit]
variable=player_unit[$i]
[/unstore_unit]
{NEXT i}
[store_unit]
variable=player_unit
kill=no
[filter]
side=1
canrecruit=0
[filter_adjacent]
ability="charisma"
[/filter_adjacent]
[/filter]
[/store_unit]
{FOREACH player_unit i}
{VARIABLE player_unit[$i].upkeep "loyal"}
[unstore_unit]
variable=player_unit[$i]
[/unstore_unit]
{NEXT i}
[allow_undo]
[/allow_undo]
[/event]
# the stun attack
[event]
name=attacker_hits
first_time_only=no
[special_filter]
weapon=sword_rush
[/special_filter]
[filter_second]
[not]
level=0
[/not]
[not]
role="zoc_off"
[/not]
[/filter_second]
{VARIABLE second_unit.role "zoc_off"}
[unstore_unit]
variable=second_unit
text="stunned"
red,green,blue=150,120,250
[/unstore_unit]
{VARIABLE unit.status.slowed "on"}
[unstore_unit]
variable=unit
text="slowed"
red,green,blue=200,55,55
[/unstore_unit]
[object]
silent=yes
id=stun
[filter]
x,y=$x2,$y2
[/filter]
[effect]
apply_to=zoc
value=0
[/effect]
[/object]
[/event]
[event]
name=new turn
first_time_only=no
[store_unit]
variable=zoc_unit
kill=no
[filter]
role="zoc_off"
[/filter]
[/store_unit]
{FOREACH zoc_unit i}
{VARIABLE zoc_unit[$i].role ""}
[unstore_unit]
variable=zoc_unit[$i]
[/unstore_unit]
[object]
silent=yes
[filter]
x=$zoc_unit[$i].x
y=$zoc_unit[$i].y
[/filter]
[effect]
apply_to=zoc
value=1
[/effect]
[/object]
{NEXT i}
[/event]
#enddef

View file

@ -1,196 +0,0 @@
[unit]
#textdomain wesnoth-utbs
id=Kaleh Captain
name= _ "Desert Captain"
race=elf
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
profile=portraits/kaleh.png
image_leading=units/elves-desert/kaleh-leading.png
hitpoints=44
[abilities]
{ABILITY_LEADERSHIP_LEVEL_2}
[/abilities]
movement_type=woodland
# Desert elves move fast across the sands, but are not used to forests.
# They are also a bit faster in caves.
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=90
level=2
alignment=lawful
advanceto=Kaleh Marshal
cost=40
usage=fighter
unit_description= _ "Skilled in commanding other elves, Desert Captains provide a bonus to all level 1 units on adjacent hexes. Desert Captains prefer engaging the enemy in melee combat, but are trained in archery as well."
hide_help=true
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=8
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=5
number=3
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=yes
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=no
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]

View file

@ -1,204 +0,0 @@
[unit]
#textdomain wesnoth-utbs
id=Kaleh Champion
name= _ "Desert Champion"
race=elf
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
profile=portraits/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/champion-bow.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
hitpoints=70
movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=100
level=3
alignment=lawful
advanceto=null
{AMLA_TOUGH 3}
cost=100
usage=fighter
unit_description= _ "Desert Champions are awesome masters of swordsmanship, inflicting grievous wounds in close combat. Master fighters, they are also skilled with the bow, able to inflict damage on their enemies from both near and far."
hide_help=true
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=13
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=8
number=4
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=yes
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=no
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]

View file

@ -1,156 +0,0 @@
[unit]
#textdomain wesnoth-utbs
id=Kaleh Fighter
name= _ "Desert Fighter"
race=elf
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
profile=portraits/kaleh.png
hitpoints=32
movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=38
level=1
alignment=lawful
advanceto=Kaleh Captain,Kaleh Hero
cost=14
usage=fighter
unit_description= _ "Desert Fighters make up the bulk of the Elven military in Quenoth. They are trained in both sword and bow, though like most of their kin, they prefer swordplay to archery. These Elves are deft of foot, and fight best in the open sands."
hide_help=true
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
# Melee damage increased by 1, ranged damage decreased by 1
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=6
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=2
number=3
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[if]
hits=yes
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[/else]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]

View file

@ -1,192 +0,0 @@
[unit]
#textdomain wesnoth-utbs
id=Kaleh Hero
name= _ "Desert Hero"
race=elf
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
profile=portraits/kaleh.png
hitpoints=48
movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=80
level=2
alignment=lawful
advanceto=Kaleh Champion
cost=40
usage=fighter
unit_description= _ "Desert Heroes focus on individual performance on the battlefield, having tweaked their combat skills to the very maximum. Desert Heroes prefer fighting at close range with the sword, but also have some skill with the bow."
hide_help=true
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=9
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=5
number=3
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=yes
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=no
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]

View file

@ -1,197 +0,0 @@
[unit]
#textdomain wesnoth-utbs
id=Kaleh Marshal
name= _ "Desert Marshal"
race=elf
image=units/elves-desert/kaleh.png
[attack_anim]
apply_to=attack
start_time=-150
[frame]
duration=300
image=units/elves-desert/kaleh-ranged.png
[/frame]
[attack_filter]
range=ranged
[/attack_filter]
[/attack_anim]
profile=portraits/kaleh.png
image_leading=units/elves-desert/kaleh-leading.png
hitpoints=62
[abilities]
{ABILITY_LEADERSHIP_LEVEL_3}
[/abilities]
movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
[movement_costs]
sand=1
forest=2
cave=2
tundra=3
[/movement_costs]
[defense]
sand=40
forest=50
[/defense]
movement=5
experience=100
level=3
alignment=lawful
advanceto=null
{AMLA_TOUGH 3}
cost=80
usage=fighter
unit_description= _ "Desert Marshals are master commanders, able to inspire confidence in any level 1 or 2 unit in adjacent hexes, causing them to fight with increased skill. Desert Marshals prefer engaging the enemy in melee combat, but are trained in archery as well."
hide_help=true
die_sound={SOUND_LIST:ELF_HIT}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
[attack]
name=sword
description= _"sword"
type=blade
range=melee
damage=11
number=4
icon=attacks/sword-elven.png
[/attack]
[attack]
name=bow
description= _"bow"
type=pierce
range=ranged
damage=7
number=3
icon=attacks/bow-elven.png
[/attack]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=yes
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=bow
[/attack_filter]
hits=no
[missile_frame]
begin=-100
end=0
image=projectiles/missile-n.png
image_diagonal=projectiles/missile-ne.png
[/missile_frame]
[frame]
begin=-445
end=-380
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[frame]
begin=-380
end=-305
image="units/elves-desert/kaleh-ranged-1.png"
sound=bow-miss.ogg
[/frame]
[frame]
begin=-305
end=-230
image="units/elves-desert/kaleh-ranged-2.png"
[/frame]
[frame]
begin=-230
end=-130
image="units/elves-desert/kaleh-ranged-3.png"
[/frame]
[frame]
begin=-130
end=-100
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/elves-desert/kaleh-ranged-4.png"
[/frame]
[frame]
begin=0
end=65
image="units/elves-desert/kaleh-ranged.png"
[/frame]
[/attack_anim]
[attack_anim]
[attack_filter]
name=sword
[/attack_filter]
[frame]
begin=-200
end=-100
image=units/elves-desert/kaleh-melee-1.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/elves-desert/kaleh-melee-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/elves-desert/kaleh.png
[/frame]
[/attack_anim]
[/unit]

View file

@ -1,3 +1,5 @@
#textdomain wesnoth-utbs
# Make sure our special units keep the right portraits as they advance
{SET_PORTRAIT_ON_ADVANCE "Elyssa" "Silver Mage" "portraits/elyssa_silver.png"}
# add the events for Kaleh abilities
{KALEH_ABILITIES}