Merge pull request #78 from bumbadadabum/master

Updated HttT animations
This commit is contained in:
Alexander van Gessel 2013-10-12 10:38:30 -07:00
commit 412720c3ff
9 changed files with 190 additions and 532 deletions

View file

@ -415,10 +415,14 @@
[filter_second]
id=Graak
[/filter_second]
[kill]
id=Graak
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 12 18 (Rampant Graak) ( _ "Rampant Graak")}
[modify_unit]
[filter]
id=Graak
[/filter]
type=Gryphon
id=Rampant Graak
name= _ "Rampant Graak"
[/modify_unit]
[/event]
[event]
@ -426,10 +430,14 @@
[filter_second]
id=Grook
[/filter_second]
[kill]
id=Grook
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 16 16 (Rampant Grook) ( _ "Rampant Grook")}
[modify_unit]
[filter]
id=Grook
[/filter]
type=Gryphon
id=Rampant Grook
name= _ "Rampant Grook"
[/modify_unit]
[/event]
[event]
@ -437,10 +445,14 @@
[filter_second]
id=Gruak
[/filter_second]
[kill]
id=Gruak
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 10 14 (Rampant Gruak) ( _ "Rampant Gruak")}
[modify_unit]
[filter]
id=Gruak
[/filter]
type=Gryphon
id=Rampant Gruak
name= _ "Rampant Gruak"
[/modify_unit]
[/event]
#
@ -452,58 +464,44 @@
[filter]
id=Graak
[/filter]
[kill]
id=Graak
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 12 18 (Rampant Graak) ( _ "Rampant Graak")}
[/event]
[event]
name=attack
[filter]
id=Grook
[/filter]
[kill]
id=Grook
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 16 16 (Rampant Grook) ( _ "Rampant Grook")}
[/event]
[event]
name=attack
[filter]
id=Gruak
[/filter]
[kill]
id=Gruak
[/kill]
{NAMED_LOYAL_UNIT 3 (Gryphon) 10 14 (Rampant Gruak) ( _ "Rampant Gruak")}
[/event]
#
# Neutralize the movement goal for sleeping gryphons every turn
#
[event]
name=side turn
first_time_only=no
[store_unit]
variable=sleepy_gryphon_store
[modify_unit]
[filter]
type=Sleeping Gryphon
id=Graak
[/filter]
[/store_unit]
{FOREACH sleepy_gryphon_store i}
{VARIABLE x_temp $sleepy_gryphon_store[$i].x}
{VARIABLE y_temp $sleepy_gryphon_store[$i].y}
{VARIABLE sleepy_gryphon_store[$i].goto_x x_temp}
{VARIABLE sleepy_gryphon_store[$i].goto_y y_temp}
[unstore_unit]
variable=sleepy_gryphon_store[$i]
[/unstore_unit]
{NEXT i}
{CLEAR_VARIABLE sleepy_gryphon_store}
{CLEAR_VARIABLE x_temp}
{CLEAR_VARIABLE y_temp}
type=Gryphon
id=Rampant Graak
name= _ "Rampant Graak"
[/modify_unit]
[/event]
[event]
name=attack
[filter]
id=Grook
[/filter]
[modify_unit]
[filter]
id=Grook
[/filter]
type=Gryphon
id=Rampant Grook
name= _ "Rampant Grook"
[/modify_unit]
[/event]
[event]
name=attack
[filter]
id=Gruak
[/filter]
[modify_unit]
[filter]
id=Gruak
[/filter]
type=Gryphon
id=Rampant Gruak
name= _ "Rampant Gruak"
[/modify_unit]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -7,13 +7,7 @@
image="units/human-battleprincess.png"
{MAGENTA_IS_THE_TEAM_COLOR}
{DEFENSE_ANIM "units/human-battleprincess-defend-2.png" "units/human-battleprincess-defend-1.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
[leading_anim]
[frame]
begin=-150
end=150
image="units/human-battleprincess-leading.png"
[/frame]
[/leading_anim]
{LEADING_ANIM "units/human-battleprincess-leading.png" "units/human-battleprincess.png" -5,-16}
hitpoints=52
movement_type=smallfoot
[resistance]
@ -47,39 +41,17 @@
[filter_attack]
range=melee
[/filter_attack]
start_time=-175
[frame]
begin=-200
end=-175
image="units/human-battleprincess.png"
image="units/human-battleprincess.png:25"
[/frame]
[frame]
begin=-175
end=-75
image="units/human-battleprincess-attack-1.png"
[/frame]
[if]
hits=no
[frame]
begin=-75
end=100
image="units/human-battleprincess-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-75
end=100
image="units/human-battleprincess-attack-2.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=100
end=200
image="units/human-battleprincess-attack-1.png"
image="units/human-battleprincess-attack-[1,2,1].png:[100,175,100]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -50}
[/attack_anim]
[variation]
variation_name=scepter
@ -89,13 +61,7 @@
image="units/human-battleprincess-scepter.png"
{MAGENTA_IS_THE_TEAM_COLOR}
{DEFENSE_ANIM "units/human-battleprincess-scepter-defend-2.png" "units/human-battleprincess-scepter-defend-1.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
[leading_anim]
[frame]
begin=-150
end=150
image="units/human-battleprincess-scepter-leading.png"
[/frame]
[/leading_anim]
{LEADING_ANIM "units/human-battleprincess-scepter-leading.png" "units/human-battleprincess-scepter.png" -16,-30}
hitpoints=52
movement_type=smallfoot
[resistance]
@ -143,11 +109,11 @@
name=scepter of fire
[/filter_attack]
{MISSILE_FRAME_FIREBALL}
start_time=-550
start_time=-300
[frame]
duration=200
image="units/human-battleprincess-scepter-leading.png"
image="units/human-battleprincess-scepter-leading.png:200"
sound=fire.wav
[/frame]
[/attack_anim]
@ -155,39 +121,17 @@
[filter_attack]
range=melee
[/filter_attack]
start_time=-175
[frame]
begin=-200
end=-175
image="units/human-battleprincess-scepter.png"
image="units/human-battleprincess-scepter.png:25"
[/frame]
[frame]
begin=-175
end=-75
image="units/human-battleprincess-scepter-attack-1.png"
[/frame]
[if]
hits=no
[frame]
begin=-75
end=100
image="units/human-battleprincess-scepter-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-75
end=100
image="units/human-battleprincess-scepter-attack-2.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=100
end=200
image="units/human-battleprincess-scepter-attack-1.png"
image="units/human-battleprincess-scepter-attack-[1,2,1].png:[100,175,100]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -50}
[/attack_anim]
[/variation]
[/unit_type]

View file

@ -5,13 +5,6 @@
name= _ "Commander"
race=human
image="units/konrad-commander{AFFIX}.png"
[leading_anim]
[frame]
begin=-150
end=150
image="units/konrad-commander{AFFIX}-leading.png"
[/frame]
[/leading_anim]
hitpoints=45
[abilities]
{ABILITY_LEADERSHIP_LEVEL_2}
@ -46,104 +39,56 @@
[filter_attack]
name=sword
[/filter_attack]
start_time=-175
[frame]
begin=-200
end=-175
image="units/konrad-commander{AFFIX}.png"
image="units/konrad-commander{AFFIX}.png:25"
[/frame]
[frame]
begin=-175
end=-100
image="units/konrad-commander{AFFIX}-attack-1.png"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=50
image="units/konrad-commander{AFFIX}-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=50
image="units/konrad-commander{AFFIX}-attack-2.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=50
end=125
image="units/konrad-commander{AFFIX}-attack-3.png"
[/frame]
[frame]
begin=125
end=200
image="units/konrad-commander{AFFIX}-attack-4.png"
image="units/konrad-commander{AFFIX}-attack-[1~4].png:[75,150,75*2]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[/attack_anim]
[attack_anim]
[filter_attack]
name=bow
[/filter_attack]
missile_start_time=-150
start_time=-475
[missile_frame]
begin=-150
end=0
duration=150
image="projectiles/missile-n.png"
image_diagonal="projectiles/missile-ne.png"
[/missile_frame]
[frame]
begin=-475
end=-400
image="units/konrad-commander-bow.png"
image="units/konrad-commander-bow.png:75"
[/frame]
[frame]
begin=-400
end=-325
image="units/konrad-commander-bow-attack1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-325
end=-250
image="units/konrad-commander-bow-attack2.png"
sound=bow.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-325
end=-250
image="units/konrad-commander-bow-attack2.png"
sound=bow-miss.ogg
[/frame]
[/else]
[frame]
begin=-250
end=-175
image="units/konrad-commander-bow-attack3.png"
image="units/konrad-commander-bow-attack[1~4].png:75"
[/frame]
[frame]
begin=-175
end=-100
image="units/konrad-commander-bow-attack4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/konrad-commander-bow.png"
image="units/konrad-commander-bow.png:100"
[/frame]
{SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -275}
[/attack_anim]
#enddef
[unit_type]
{HTTT_COMMANDER ()}
cost=40
[leading_anim]
start_time=-150
[frame]
image="units/konrad-commander-leading.png:300"
[/frame]
[/leading_anim]
description= _ "The rank of Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
{DEFENSE_ANIM_RANGE "units/konrad-commander-bow-defend.png" "units/konrad-commander-bow.png" {SOUND_LIST:HUMAN_HIT} ranged}
@ -151,6 +96,7 @@
{HTTT_COMMANDER -scepter}
variation_name=scepter
cost=60
{LEADING_ANIM "units/konrad-commander-scepter-leading.png" "units/konrad-commander-scepter.png" 17,-22}
description= _ "The rank of Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_MAGICAL}
[attack]
name=scepter of fire
@ -180,11 +126,10 @@
name=scepter of fire
[/filter_attack]
{MISSILE_FRAME_FIREBALL}
start_time=-550
start_time=-300
[frame]
sound=fire.wav
duration=200
image="units/konrad-commander-scepter-leading.png"
image="units/konrad-commander-scepter-leading.png:200"
[/frame]
[/attack_anim]
[/variation]

View file

@ -45,35 +45,15 @@
name=raging blizzard
[/filter_attack]
{MISSILE_FRAME_FAERIE_FIRE}
[if]
hits=yes
[frame]
begin=-450
end=-375
image="units/human-queen.png"
sound=magic-faeriefire.ogg
halo=halo/elven/faerie-fire-halo1.png
halo_x,halo_y=0,-35
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-450
end=-375
image="units/human-queen.png"
sound=magic-faeriefire-miss.ogg
halo=halo/elven/faerie-fire-halo1.png
halo_x,halo_y=0,-35
[/frame]
[/else]
[frame]
begin=-375
end=75
image="units/human-queen.png"
halo=halo/elven/faerie-fire-halo[2~7].png:75
halo_start_time=-450
[halo_frame]
halo=halo/elven/faerie-fire-halo[1~7].png:75
halo_x,halo_y=0,-35
[/frame]
[/halo_frame]
{SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -450}
[/attack_anim]
[attack_anim]
[filter_attack]

View file

@ -28,39 +28,20 @@
[filter_attack]
name=sword
[/filter_attack]
start_time=-125
[frame]
begin=-200
end=-150
image="units/konrad-fighter.png"
[/frame]
[if]
hits=no
[frame]
begin=-150
end=50
image="units/konrad-fighter-attack-1.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-150
end=50
image="units/konrad-fighter-attack-1.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=50
end=150
image="units/konrad-fighter-attack-2.png"
image="units/konrad-fighter.png:50"
[/frame]
[frame]
begin=150
end=200
image="units/konrad-fighter.png"
image="units/konrad-fighter-attack-[1~2].png[150,100]"
[/frame]
[frame]
image="units/konrad-fighter.png:50"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[/attack_anim]
#enddef
@ -91,12 +72,12 @@
name=scepter of fire
[/filter_attack]
{MISSILE_FRAME_FIREBALL}
start_time=-550
sound_start_time=-300
[frame]
[sound_frame]
sound=fire.wav
duration=200
[/frame]
[/sound_frame]
[/attack_anim]
[/variation]
[/unit_type]

View file

@ -5,13 +5,6 @@
name= _ "Lord"
race=human
image="units/konrad-lord{AFFIX}.png"
[leading_anim]
[frame]
begin=-150
end=150
image="units/konrad-lord{AFFIX}-leading.png"
[/frame]
[/leading_anim]
hitpoints=68
[abilities]
{ABILITY_LEADERSHIP_LEVEL_3}
@ -49,134 +42,74 @@
name=sword
[/filter_attack]
direction=nw,n,ne
start_time=-175
[frame]
begin=-200
end=-100
image="units/konrad-lord{AFFIX}-attack-w1.png"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image="units/konrad-lord{AFFIX}-attack-w3.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image="units/konrad-lord{AFFIX}-attack-w3.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=100
end=175
image="units/konrad-lord{AFFIX}-attack-w1.png"
image="units/konrad-lord{AFFIX}-attack-w[1,3,1].png:[100,200,75]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[/attack_anim]
[attack_anim]
[filter_attack]
name=sword
[/filter_attack]
direction=sw,s,se
start_time=-175
[frame]
begin=-200
end=-100
image="units/konrad-lord{AFFIX}-attack-w1.png"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image="units/konrad-lord{AFFIX}-attack-w2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image="units/konrad-lord{AFFIX}-attack-w2.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=100
end=175
image="units/konrad-lord{AFFIX}-attack-w1.png"
image="units/konrad-lord{AFFIX}-attack-w[1,2,1].png:[100,200,75]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[/attack_anim]
[attack_anim]
[filter_attack]
name=bow
[/filter_attack]
missile_start_time=-150
start_time=-475
[missile_frame]
begin=-150
end=0
duration=150
image="projectiles/missile-n.png"
image_diagonal="projectiles/missile-ne.png"
[/missile_frame]
[frame]
begin=-475
end=-400
image="units/konrad-lord-bow.png"
image="units/konrad-lord-bow.png:75"
[/frame]
[frame]
begin=-400
end=-325
image="units/konrad-lord-bow-attack1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-325
end=-250
image="units/konrad-lord-bow-attack2.png"
sound=bow.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-325
end=-250
image="units/konrad-lord-bow-attack2.png"
sound=bow-miss.ogg
[/frame]
[/else]
[frame]
begin=-250
end=-175
image="units/konrad-lord-bow-attack3.png"
image="units/konrad-lord-bow-attack[1~4].png:75"
[/frame]
[frame]
begin=-175
end=-100
image="units/konrad-lord-bow-attack4.png"
[/frame]
[frame]
begin=-100
end=0
image="units/konrad-lord-bow.png"
image="units/konrad-lord-bow.png:100"
[/frame]
{SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -275}
[/attack_anim]
#enddef
[unit_type]
{HTTT_LORD ()}
cost=65
[leading_anim]
start_time=-150
[frame]
image="units/konrad-lord-leading.png:300"
[/frame]
[/leading_anim]
description= _ "The noble leaders of many troops, Lords are especially strong in melee combat, and also possess skill with the bow. Like Commanders, Lords possess leadership skills, and improve the fighting ability of all adjacent lower-level units."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
{DEFENSE_ANIM_RANGE "units/konrad-lord-bow-defend.png" "units/konrad-lord-bow.png" {SOUND_LIST:HUMAN_HIT} ranged}
[variation]
{HTTT_LORD -scepter}
variation_name=scepter
cost=85
{LEADING_ANIM "units/konrad-lord-scepter-leading.png" "units/konrad-lord-scepter.png" -16,-21}
description= _ "The noble leaders of many troops, Lords are especially strong in melee combat, and also possess skill with the bow. Like Commanders, Lords possess leadership skills, and improve the fighting ability of all adjacent lower-level units."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_MAGICAL}
{DEFENSE_ANIM_FILTERED "units/konrad-lord-scepter-defend.png" "units/konrad-lord-scepter.png" {SOUND_LIST:HUMAN_HIT} (
[filter_second_attack]
@ -206,11 +139,10 @@
name=scepter of fire
[/filter_attack]
{MISSILE_FRAME_FIREBALL}
start_time=-550
start_time=-300
[frame]
duration=200
sound=fire.wav
image="units/konrad-lord-scepter-leading.png"
image="units/konrad-lord-scepter-leading.png:200"
[/frame]
[/attack_anim]
[/variation]

View file

@ -7,10 +7,10 @@
image="units/human-princess.png"
{DEFENSE_ANIM "units/human-princess-defend.png" "units/human-princess.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="units/human-princess-leading.png"
image="units/human-princess-leading.png:300"
[/frame]
[/leading_anim]
hitpoints=48
@ -44,83 +44,21 @@
{STANDARD_IDLE_FILTER}
start_time=0
[frame]
duration=100
image="units/human-princess-idle-1.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-2.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-3.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-4.png"
[/frame]
[frame]
duration=150
image="units/human-princess-idle-5.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-3.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-4.png"
[/frame]
[frame]
duration=200
image="units/human-princess-idle-5.png"
[/frame]
[frame]
duration=100
image="units/human-princess-idle-6.png"
image="units/human-princess-idle-[1~5,3~6].png:[100*4,150,100*2,200,100]"
[/frame]
[/idle_anim]
[attack_anim]
[filter_attack]
range=melee
[/filter_attack]
start_time=-175
[frame]
begin=-225
end=-175
image="units/human-princess-attack-1.png"
image="units/human-princess-attack-[1~4].png:[50*2,125,150]"
[/frame]
[frame]
begin=-175
end=-125
image="units/human-princess-attack-2.png"
[/frame]
[if]
hits=yes
[frame]
begin=-125
end=0
image="units/human-princess-attack-3.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-125
end=0
image="units/human-princess-attack-3.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=0
end=150
image="units/human-princess-attack-4.png"
[/frame]
[frame]
begin=150
end=175
image="units/human-princess.png"
image="units/human-princess.png:25"
[/frame]
[/attack_anim]
[variation]
@ -130,13 +68,7 @@
race=human
image="units/human-princess-scepter.png"
{DEFENSE_ANIM "units/human-princess-scepter-defend.png" "units/human-princess-scepter.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
[leading_anim]
[frame]
begin=-150
end=150
image="units/human-princess-scepter-leading.png"
[/frame]
[/leading_anim]
{LEADING_ANIM "units/human-princess-scepter-leading.png" "units/human-princess-scepter.png" -16,-19}
hitpoints=48
movement_type=smallfoot
[resistance]
@ -183,10 +115,9 @@
[/filter_attack]
{MISSILE_FRAME_FIREBALL}
start_time=-550
start_time=-300
[frame]
duration=200
image="units/human-princess-scepter-leading.png"
image="units/human-princess-scepter-leading.png:200"
sound=fire.wav
[/frame]
[/attack_anim]
@ -194,43 +125,14 @@
[filter_attack]
range=melee
[/filter_attack]
start_time=-175
[frame]
begin=-225
end=-175
image="units/human-princess-attack-1.png"
image="units/human-princess-attack-[1~4].png:[50*2,125,150]"
[/frame]
[frame]
begin=-175
end=-125
image="units/human-princess-attack-2.png"
[/frame]
[if]
hits=yes
[frame]
begin=-125
end=0
image="units/human-princess-attack-3.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-125
end=0
image="units/human-princess-attack-3.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=0
end=150
image="units/human-princess-attack-4.png"
[/frame]
[frame]
begin=150
end=175
image="units/human-princess.png"
image="units/human-princess.png:25"
[/frame]
[/attack_anim]
[/variation]

View file

@ -30,33 +30,16 @@
[filter_attack]
name=sword
[/filter_attack]
start_time=-100
[frame]
begin=-150
end=-100
image="units/sea-orc.png"
image="units/sea-orc.png:50"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image="units/sea-orc-attack.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image="units/sea-orc-attack.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
begin=100
end=150
image="units/sea-orc-attack.png"
image="units/sea-orc-attack.png:150"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -50}
[/attack_anim]
[/unit_type]

View file

@ -3,10 +3,14 @@
id=Sleeping Gryphon
name= _ "Sleeping Gryphon"
race=gryphon
ignore_race_traits=yes
{TRAIT_STRONG}
{TRAIT_INTELLIGENT}
{TRAIT_RESILIENT}
image="units/gryphon-sleeping.png"
hitpoints=44
movement_type=fly
movement=1
movement=0
experience=100
level=2
alignment=neutral
@ -17,17 +21,6 @@
# wmllint: local spelling Shhhh
description= _ "Shhhh! The Gryphon is sleeping! Youd better not wake it up!"
{DEFENSE_ANIM "units/gryphon-sleeping.png" "units/gryphon-sleeping.png" groan.wav}
#
# Note: do not set this units movement to zero (causes weird infinite movement behavior)
# Also, do not remove this units attack (causes game to crash)
# Finally, make sure the movement costs are >1 for any terrain it is placed next to
#
[movement_costs]
shallow_water=3
hills=3
mountains=3
castle=3
[/movement_costs]
[defense]
mountains=40
[/defense]