THoT: convert unit WML to new syntax

This commit is contained in:
David Mikos 2013-10-16 13:50:27 +10:30
parent b8be294dff
commit 4cda4c8706
14 changed files with 227 additions and 960 deletions

View file

@ -59,6 +59,8 @@ Version 1.11.6+dev:
* Converted animation WML to the new syntax
* Son of the Black Eye:
* Converted animation WML to the new syntax
* The Hammer of Thursagan:
* Converted animation WML to the new syntax
* Engine:
* CampaignWML support for MP including difficulties, extra defines etc.
* Use the same codepath to initialize every MP campaign's scenario, thus

View file

@ -44,64 +44,11 @@
[filter_attack]
name=morningstar
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-225
image=units/annalist-attack1.png
[/frame]
[frame]
begin=-225
end=-200
image=units/annalist-attack2.png
[/frame]
[frame]
begin=-200
end=-175
image=units/annalist-attack3.png
[/frame]
[frame]
begin=-175
end=-150
image=units/annalist-attack4.png
[/frame]
[frame]
begin=-150
end=-100
image=units/annalist-attack5.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/annalist-attack6.png
sound=flail.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/annalist-attack6.png
sound=flail-miss.ogg
[/frame]
[/else]
[frame]
begin=100
end=175
image=units/annalist-attack7.png
[/frame]
[frame]
begin=175
end=225
image=units/annalist-attack8.png
[/frame]
[frame]
begin=225
end=300
image=units/annalist-attack9.png
image=units/annalist-attack[1~9].png:[25*4,50,200,75,50,75]
[/frame]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[/attack_anim]
[attack]
@ -121,62 +68,40 @@
[filter_attack]
name=bolas
[/filter_attack]
missile_start_time=-200
[missile_frame]
begin=-150
end=0
duration=200
image=projectiles/bolas-n.png
image_diagonal=projectiles/bolas-ne.png
[/missile_frame]
[if]
hits=yes
[frame]
begin=-300
end=-200
image=units/annalist-ranged1.png
sound=hatchet.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-300
end=-200
image=units/annalist-ranged1.png
sound=hatchet-miss.wav
[/frame]
[/else]
start_time=-350
[frame]
begin=-200
end=-100
image=units/annalist-ranged2.png
image=units/annalist-ranged[1~2].png:[150,300]
[/frame]
{SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -200}
{SOUND:SLOW}
[frame]
image="units/annalist.png:50"
[/frame]
[/attack_anim]
[defend]
start_time=-126
[frame]
begin=-126
end=-125
image="units/annalist.png"
image="units/annalist.png:1"
[/frame]
[frame]
begin=-125
end=-42
image="units/annalist-defend1.png"
duration=250
image="units/annalist-defend[1~3].png"
[/frame]
[frame]
begin=-42
end=41
image="units/annalist-defend2.png"
[/frame]
[frame]
begin=41
end=125
image="units/annalist-defend3.png"
[/frame]
[frame]
begin=125
end=126
image="units/annalist.png"
image="units/annalist.png:1"
[/frame]
[if]
hit_sound_start_time=-25
hits=hit
[hit_sound_frame]
sound={SOUND_LIST:DWARF_HIT}
[/hit_sound_frame]
[/if]
[/defend]
[/unit_type]

View file

@ -48,69 +48,11 @@
name=morningstar
range=melee
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-225
image=units/loremaster-attack1.png
[/frame]
[frame]
begin=-225
end=-200
image=units/loremaster-attack2.png
[/frame]
[frame]
begin=-200
end=-175
image=units/loremaster-attack3.png
[/frame]
[frame]
begin=-175
end=-150
image=units/loremaster-attack4.png
[/frame]
[frame]
begin=-150
end=-100
image=units/loremaster-attack5.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/loremaster-attack6.png
sound=flail.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/loremaster-attack6.png
sound=flail-miss.ogg
[/frame]
[/else]
[frame]
begin=100
end=175
image=units/loremaster-attack7.png
[/frame]
[frame]
begin=175
end=225
image=units/loremaster-attack8.png
[/frame]
[frame]
begin=225
end=300
image=units/loremaster-attack9.png
[/frame]
[frame]
begin=300
end=375
image=units/loremaster-attack10.png
image=units/loremaster-attack[1~10].png:[25*4,50,200,75,50,75*2]
[/frame]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[/attack_anim]
[attack]
@ -130,62 +72,40 @@
[filter_attack]
name=bolas
[/filter_attack]
missile_start_time=-200
[missile_frame]
begin=-150
end=0
duration=200
image=projectiles/bolas-n.png
image_diagonal=projectiles/bolas-ne.png
[/missile_frame]
[if]
hits=yes
[frame]
begin=-300
end=-200
image=units/loremaster-ranged1.png
sound=hatchet.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-300
end=-200
image=units/loremaster-ranged1.png
sound=hatchet-miss.wav
[/frame]
[/else]
start_time=-350
[frame]
begin=-200
end=-100
image=units/loremaster-ranged2.png
image=units/loremaster-ranged[1~2].png:[150,300]
[/frame]
{SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -200}
{SOUND:SLOW}
[frame]
image="units/loremaster.png:50"
[/frame]
[/attack_anim]
[defend]
start_time=-126
[frame]
begin=-126
end=-125
image="units/loremaster.png"
image="units/loremaster.png:1"
[/frame]
[frame]
begin=-125
end=-42
image="units/loremaster-defend1.png"
duration=250
image="units/loremaster-defend[1~3].png"
[/frame]
[frame]
begin=-42
end=41
image="units/loremaster-defend2.png"
[/frame]
[frame]
begin=41
end=125
image="units/loremaster-defend3.png"
[/frame]
[frame]
begin=125
end=126
image="units/loremaster.png"
image="units/loremaster.png:1"
[/frame]
[if]
hit_sound_start_time=-25
hits=hit
[hit_sound_frame]
sound={SOUND_LIST:DWARF_HIT}
[/hit_sound_frame]
[/if]
[/defend]
[/unit_type]

View file

@ -43,19 +43,16 @@
[filter_attack]
name=dragonstaff
[/filter_attack]
start_time=-600
[frame]
begin=-600
end=-400
image="units/masked_dragonguard-defend.png"
image="units/masked_dragonguard-defend.png:200"
[/frame]
[if]
{MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_SOUTH 0 0}
direction=se,sw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-se.png"
image="units/masked_dragonguard-attack-se.png:400"
sound=dragonstick.ogg
[/frame]
[/if]
@ -64,9 +61,7 @@
direction=se,sw
hits=no
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-se.png"
image="units/masked_dragonguard-attack-se.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -75,9 +70,7 @@
direction=ne,nw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-ne.png"
image="units/masked_dragonguard-attack-ne.png:400"
sound=dragonstick.ogg
[/frame]
[/else]
@ -86,9 +79,7 @@
direction=ne,nw
hits=no
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-ne.png"
image="units/masked_dragonguard-attack-ne.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -97,9 +88,7 @@
hits=yes
direction=n
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-n.png"
image="units/masked_dragonguard-attack-n.png:400"
sound=dragonstick.ogg
[/frame]
[/else]
@ -108,9 +97,7 @@
hits=no
direction=n
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-n.png"
image="units/masked_dragonguard-attack-n.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -119,9 +106,7 @@
direction=s
hits=yes
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-s.png"
image="units/masked_dragonguard-attack-s.png:400"
sound=dragonstick.ogg
[/frame]
[/else]
@ -130,49 +115,22 @@
direction=s
hits=no
[frame]
begin=-400
end=0
image="units/masked_dragonguard-attack-s.png"
image="units/masked_dragonguard-attack-s.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
[frame]
begin=0
end=1
image="units/masked_dragonguard-attack-se.png"
image="units/masked_dragonguard-attack-se.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=dagger
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-100
image="units/masked_dragonguard-melee1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_dragonguard-melee2.png"
sound=dagger-swish.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_dragonguard-melee2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=50
end=150
image="units/masked_dragonguard-melee1.png"
image="units/masked_dragonguard-melee[1,2,1].png:[100,150,100]"
[/frame]
{SOUND:HIT_AND_MISS dagger-swish.wav {SOUND_LIST:MISS} -100}
[/attack_anim]
[/unit_type]

View file

@ -51,91 +51,26 @@
[filter_attack]
name=hammer
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-150
image="units/masked_fighter-hammer.png"
image="units/masked_fighter-hammer.png:50"
[/frame]
[frame]
begin=-150
end=-100
image="units/masked_fighter-hammer1.png"
image="units/masked_fighter-hammer[1~3].png:[50,200,75]"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image="units/masked_fighter-hammer2.png"
sound=mace.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image="units/masked_fighter-hammer2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=100
end=175
image="units/masked_fighter-hammer3.png"
[/frame]
[frame]
begin=175
end=200
image="units/masked_fighter-hammer.png"
image="units/masked_fighter-hammer.png:25"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=axe
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-175
image="units/masked_fighter-axe5.png"
[/frame]
[frame]
begin=-175
end=-100
image="units/masked_fighter-axe1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_fighter-axe2.png"
sound=axe.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_fighter-axe2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=50
end=100
image="units/masked_fighter-axe3.png"
[/frame]
[frame]
begin=100
end=150
image="units/masked_fighter-axe4.png"
[/frame]
[frame]
begin=150
end=200
image="units/masked_fighter-axe5.png"
image="units/masked_fighter-axe[5,1~5].png:[25,75,150,50*3]"
[/frame]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -100}
[/attack_anim]
[/unit_type]

View file

@ -48,82 +48,45 @@
[filter_attack]
name=javelin
[/filter_attack]
missile_start_time=-150
[missile_frame]
begin=-150
end=0
duration=150
image="projectiles/spear-n.png"
image_diagonal="projectiles/spear-ne.png"
[/missile_frame]
start_time=-250
[frame]
begin=-250
end=-150
image="units/masked_guard_defend1.png"
image="units/masked_guard_defend1.png:100"
sound={SOUND_LIST:THROW}
[/frame]
[if]
hits=yes
[frame]
begin=-150
end=-50
image="units/masked_guard_attack.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-150
end=-50
image="units/masked_guard_attack.png"
[/frame]
[/else]
{SOUND:HIT spear.ogg -150}
[frame]
begin=-50
end=0
image="units/masked_guard.png"
image="units/masked_guard_attack.png:100"
[/frame]
[frame]
image="units/masked_guard.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=spear
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-150
image="units/masked_guard.png"
image="units/masked_guard.png:50"
[/frame]
[frame]
begin=-150
end=-100
image="units/masked_guard_defend1.png"
image="units/masked_guard_defend1.png:50"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_guard_attack.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_guard_attack.png"
sound=spear-miss.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=50
end=75
image="units/masked_guard_defend2.png"
image="units/masked_guard_attack.png:150"
[/frame]
[frame]
begin=75
end=150
image="units/masked_guard.png"
image="units/masked_guard_defend2.png:25"
[/frame]
[frame]
image="units/masked_guard.png:75"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -56,94 +56,45 @@
name=hatchet
[/filter_attack]
{MISSILE_FRAME_HATCHET}
[if]
hits=yes
[frame]
begin=-250
end=-100
image="units/masked_lord-defend.png"
sound=hatchet.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-250
end=-100
image="units/masked_lord-defend.png"
sound=hatchet-miss.wav
[/frame]
[/else]
start_time=-350
[frame]
begin=-100
end=0
image="units/masked_lord-ranged.png"
image="units/masked_lord-defend.png:150"
[/frame]
{SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -200}
[frame]
image="units/masked_lord-ranged.png:300"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=hammer
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-100
image="units/masked_lord.png"
image="units/masked_lord.png:150"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_lord-attack-hammer.png"
sound=mace.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_lord-attack-hammer.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=150
image="units/masked_lord.png"
image="units/masked_lord-attack-hammer.png:150"
[/frame]
[frame]
image="units/masked_lord.png:100"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=battle axe
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-100
image="units/masked_lord.png"
image="units/masked_lord.png:150"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_lord-attack.png"
sound=axe.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_lord-attack.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=150
image="units/masked_lord.png"
image="units/masked_lord-attack.png:150"
[/frame]
[frame]
image="units/masked_lord.png:100"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -56,82 +56,45 @@
[filter_attack]
name=javelin
[/filter_attack]
missile_start_time=-150
[missile_frame]
begin=-150
end=0
duration=150
image="projectiles/spear-n.png"
image_diagonal="projectiles/spear-ne.png"
[/missile_frame]
start_time=-250
[frame]
begin=-250
end=-150
image="units/masked_sentinel_defend1.png"
image="units/masked_sentinel_defend1.png:100"
sound={SOUND_LIST:THROW}
[/frame]
[if]
hits=yes
[frame]
begin=-150
end=-50
image="units/masked_sentinel_attack1.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-150
end=-50
image="units/masked_sentinel_attack1.png"
[/frame]
[/else]
{SOUND:HIT spear.ogg -150}
[frame]
begin=-50
end=0
image="units/masked_sentinel.png"
image="units/masked_sentinel_attack1.png:100"
[/frame]
[frame]
image="units/masked_sentinel.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=spear
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-150
image="units/masked_sentinel.png"
image="units/masked_sentinel.png:50"
[/frame]
[frame]
begin=-150
end=-100
image="units/masked_sentinel_defend1.png"
image="units/masked_sentinel_defend1.png:50"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_sentinel_attack1.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_sentinel_attack1.png"
sound=spear-miss.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=50
end=75
image="units/masked_sentinel_defend1.png"
image="units/masked_sentinel_attack1.png:150"
[/frame]
[frame]
begin=75
end=150
image="units/masked_sentinel.png"
image="units/masked_sentinel_defend1.png:25"
[/frame]
[frame]
image="units/masked_sentinel.png:75"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -51,82 +51,45 @@
[filter_attack]
name=javelin
[/filter_attack]
missile_start_time=-150
[missile_frame]
begin=-150
end=0
duration=150
image="projectiles/spear-n.png"
image_diagonal="projectiles/spear-ne.png"
[/missile_frame]
start_time=-250
[frame]
begin=-250
end=-150
image="units/masked_stalwart_defend1.png"
image="units/masked_stalwart_defend1.png:100"
sound={SOUND_LIST:THROW}
[/frame]
[if]
hits=yes
[frame]
begin=-150
end=-50
image="units/masked_stalwart_attack1.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-150
end=-50
image="units/masked_stalwart_attack1.png"
[/frame]
[/else]
{SOUND:HIT spear.ogg -150}
[frame]
begin=-50
end=0
image="units/masked_stalwart.png"
image="units/masked_stalwart_attack1.png:100"
[/frame]
[frame]
image="units/masked_stalwart.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=spear
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-150
image="units/masked_stalwart.png"
image="units/masked_stalwart.png:50"
[/frame]
[frame]
begin=-150
end=-100
image="units/masked_stalwart_defend1.png"
image="units/masked_stalwart_defend1.png:50"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_stalwart_attack1.png"
sound=spear.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_stalwart_attack1.png"
sound=spear-miss.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=50
end=75
image="units/masked_stalwart_defend1.png"
image="units/masked_stalwart_attack1.png:150"
[/frame]
[frame]
begin=75
end=150
image="units/masked_stalwart.png"
image="units/masked_stalwart_defend1.png:25"
[/frame]
[frame]
image="units/masked_stalwart.png:75"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -47,66 +47,32 @@
[filter_attack]
name=hammer
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-100
image="units/masked_steelclad.png"
image="units/masked_steelclad.png:150"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_steelclad-attack-hammer.png"
sound=mace.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_steelclad-attack-hammer.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=150
image="units/masked_steelclad.png"
image="units/masked_steelclad-attack-hammer.png:150"
[/frame]
[frame]
image="units/masked_steelclad.png:100"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=battle axe
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-100
image="units/masked_steelclad.png"
image="units/masked_steelclad.png:150"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_steelclad-attack.png"
sound=axe.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_steelclad-attack.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=150
image="units/masked_steelclad.png"
image="units/masked_steelclad-attack.png:150"
[/frame]
[frame]
image="units/masked_steelclad.png:100"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -20,20 +20,9 @@
{DEFENSE_ANIM_RANGE "units/masked_thunderer-defend.png" units/masked_thunderer.png {SOUND_LIST:DWARF_HIT} melee}
{DEFENSE_ANIM_RANGE "units/masked_thunderer-defend.png" units/masked_thunderer.png {SOUND_LIST:DWARF_HIT} ranged}
[death]
start_time=0
[frame]
begin=0
end=200
image="units/masked_thunderer-die1.png"
[/frame]
[frame]
begin=200
end=400
image="units/masked_thunderer-die2.png"
[/frame]
[frame]
begin=400
end=600
image="units/masked_thunderer-die3.png"
image="units/masked_thunderer-die[1~3].png:200"
[/frame]
[/death]
[attack]
@ -59,14 +48,13 @@
[filter_attack]
name=thunderstick
[/filter_attack]
start_time=-400
[if]
{MISSILE_FRAME_MUZZLE_FLARE_HIT_SOUTH 0 0}
direction=s
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-s.png"
image="units/masked_thunderer-attack-s.png:400"
sound=thunderstick.ogg
[/frame]
[/if]
@ -75,9 +63,7 @@
direction=s
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-s.png"
image="units/masked_thunderer-attack-s.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -86,9 +72,7 @@
direction=ne,nw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-ne.png"
image="units/masked_thunderer-attack-ne.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -97,9 +81,7 @@
direction=ne,nw
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-ne.png"
image="units/masked_thunderer-attack-ne.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -108,9 +90,7 @@
direction=n
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-n.png"
image="units/masked_thunderer-attack-n.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -119,9 +99,7 @@
direction=n
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-n.png"
image="units/masked_thunderer-attack-n.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -130,9 +108,7 @@
direction=se,sw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-se.png"
image="units/masked_thunderer-attack-se.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -141,59 +117,28 @@
direction=se,sw
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderer-attack-se.png"
image="units/masked_thunderer-attack-se.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
[frame]
begin=0
end=1
image="units/masked_thunderer-attack-se.png"
image="units/masked_thunderer-attack-se.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=dagger
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-200
image="units/masked_thunderer.png"
image="units/masked_thunderer.png:50"
[/frame]
[frame]
begin=-200
end=-100
image="units/masked_thunderer-melee1.png"
image="units/masked_thunderer-melee[1,2,1].png:[100,150,50]"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_thunderer-melee2.png"
sound=dagger-swish.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_thunderer-melee2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS dagger-swish.wav {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=100
image="units/masked_thunderer-melee1.png"
[/frame]
[frame]
begin=100
end=125
image="units/masked_thunderer.png"
image="units/masked_thunderer.png:25"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -45,14 +45,13 @@ Though a single shot from these thundersticks can take several minutes to
[filter_attack]
name=thunderstick
[/filter_attack]
start_time=-400
[if]
{MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_SOUTH 0 0}
direction=se,sw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-se.png"
image="units/masked_thunderguard-attack-se.png:400"
sound=thunderstick.ogg
[/frame]
[/if]
@ -61,9 +60,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=se,sw
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-se.png"
image="units/masked_thunderguard-attack-se.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -72,9 +69,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=ne,nw
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-ne.png"
image="units/masked_thunderguard-attack-ne.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -83,9 +78,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=ne,nw
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-ne.png"
image="units/masked_thunderguard-attack-ne.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -94,9 +87,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=n
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-n.png"
image="units/masked_thunderguard-attack-n.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -105,9 +96,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=n
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-n.png"
image="units/masked_thunderguard-attack-n.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
@ -116,9 +105,7 @@ Though a single shot from these thundersticks can take several minutes to
direction=s
hits=yes
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-s.png"
image="units/masked_thunderguard-attack-s.png:400"
sound=thunderstick.ogg
[/frame]
[/else]
@ -127,59 +114,28 @@ Though a single shot from these thundersticks can take several minutes to
direction=s
hits=no
[frame]
begin=-400
end=0
image="units/masked_thunderguard-attack-s.png"
image="units/masked_thunderguard-attack-s.png:400"
sound=thunderstick-miss.ogg
[/frame]
[/else]
[frame]
begin=0
end=1
image="units/masked_thunderguard-attack-se.png"
image="units/masked_thunderguard-attack-se.png:50"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=dagger
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-200
image="units/masked_thunderguard.png"
image="units/masked_thunderguard.png:50"
[/frame]
[frame]
begin=-200
end=-100
image="units/masked_thunderguard-melee1.png"
image="units/masked_thunderguard-melee[1,2,1].png:[100,150,50]"
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/masked_thunderguard-melee2.png"
sound=dagger-swish.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/masked_thunderguard-melee2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS dagger-swish.wav {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=100
image="units/masked_thunderguard-melee1.png"
[/frame]
[frame]
begin=100
end=125
image="units/masked_thunderguard.png"
image="units/masked_thunderguard.png:25"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -68,51 +68,17 @@
name=hammer
[/filter_attack]
start_time=-400
offset=0.0~-0.17,-0.17~-0.25,-0.25~0.0,-0.0~0.8,0.8~0.4,0.4~0.0
[frame]
begin=-400
end=-300
image=units/karrag-attack1.png
halo=halo/karrag-attack1_halo.png
image=units/karrag-attack[1~4].png:[100*3,200]
halo=halo/karrag-attack[1~4]_halo.png:[100*3,200]
[/frame]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=-300
end=-200
image=units/karrag-attack2.png
halo=halo/karrag-attack2_halo.png
[/frame]
[frame]
begin=-200
end=-100
image=units/karrag-attack3.png
halo=halo/karrag-attack3_halo.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/karrag-attack4.png
halo=halo/karrag-attack4_halo.png
sound=mace.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/karrag-attack4.png
halo=halo/karrag-attack4_halo.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
image=units/karrag.png
halo=halo/karrag_halo.png
image=units/karrag.png:100
halo=halo/karrag_halo.png:100
[/frame]
[/attack_anim]
[attack_anim]
@ -120,94 +86,28 @@
range=ranged
[/filter_attack]
missile_start_time=-50
[missile_frame]
begin=-50
end=50
duration=100
image="projectiles/darkmissile-n.png"
image_diagonal="projectiles/darkmissile-ne.png"
x=4~0
y=3~0
[/missile_frame]
start_time=-500
[frame]
begin=-500
end=-450
image=units/karrag-ranged1.png
halo=halo/karrag-ranged1_halo.png
image=units/karrag-ranged[1~3].png:[50*2,100]
halo=halo/karrag-ranged[1~4]_halo.png:50
[/frame]
[frame]
begin=-450
end=-400
image=units/karrag-ranged2.png
halo=halo/karrag-ranged2_halo.png
image=units/karrag-ranged3.png:50
[/frame]
[frame]
begin=-400
end=-350
image=units/karrag-ranged3.png
halo=halo/karrag-ranged3_halo.png
[/frame]
[frame]
begin=-350
end=-300
image=units/karrag-ranged3.png
halo=halo/karrag-ranged4_halo.png
[/frame]
[frame]
begin=-300
end=-250
image=units/karrag-ranged3.png
[/frame]
[frame]
begin=-300
end=-250
image=units/karrag-ranged3.png
halo=halo/karrag-ranged5_halo.png
[/frame]
[if]
hits=yes
[frame]
begin=-250
end=-200
image=units/karrag-ranged3.png
halo=halo/karrag-ranged6_halo.png
sound=magic-dark-big.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-250
end=-200
image=units/karrag-ranged3.png
halo=halo/karrag-ranged6_halo.png
sound=magic-dark-miss.ogg
[/frame]
[/else]
[frame]
begin=-200
end=-150
image=units/karrag-ranged3.png
halo=halo/karrag-ranged7_halo.png
[/frame]
[frame]
begin=-150
end=-100
image=units/karrag-ranged3.png
halo=halo/karrag-ranged8_halo.png
[/frame]
[frame]
begin=-100
end=-50
image=units/karrag-ranged3.png
halo=halo/karrag-ranged9_halo.png
[/frame]
[frame]
begin=-50
end=50
image=units/karrag-ranged3.png
halo=halo/karrag-ranged10_halo.png
halo=halo/karrag-ranged[5~10]_halo.png:[50*5,100]
[/frame]
{SOUND:HIT_AND_MISS magic-dark-big.ogg magic-dark-miss.ogg -250}
[/attack_anim]
[/unit_type]

View file

@ -49,69 +49,11 @@
[filter_attack]
name=morningstar
[/filter_attack]
start_time=-250
[frame]
begin=-250
end=-225
image=units/witness-attack1.png
[/frame]
[frame]
begin=-225
end=-200
image=units/witness-attack2.png
[/frame]
[frame]
begin=-200
end=-175
image=units/witness-attack3.png
[/frame]
[frame]
begin=-175
end=-150
image=units/witness-attack4.png
[/frame]
[frame]
begin=-150
end=-100
image=units/witness-attack5.png
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=100
image=units/witness-attack6.png
sound=flail.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=100
image=units/witness-attack6.png
sound=flail-miss.ogg
[/frame]
[/else]
[frame]
begin=100
end=175
image=units/witness-attack7.png
[/frame]
[frame]
begin=175
end=225
image=units/witness-attack8.png
[/frame]
[frame]
begin=225
end=300
image=units/witness-attack9.png
[/frame]
[frame]
begin=300
end=375
image=units/witness-attack10.png
image=units/witness-attack[1~10].png:[25*4,50,200,75,50,75*2]
[/frame]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[/attack_anim]
[attack]
@ -131,62 +73,40 @@
[filter_attack]
name=bolas
[/filter_attack]
missile_start_time=-200
[missile_frame]
begin=-150
end=0
duration=200
image=projectiles/bolas-n.png
image_diagonal=projectiles/bolas-ne.png
[/missile_frame]
[if]
hits=yes
[frame]
begin=-300
end=-200
image=units/witness-ranged1.png
sound=hatchet.wav
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-300
end=-200
image=units/witness-ranged1.png
sound=hatchet-miss.wav
[/frame]
[/else]
start_time=-350
[frame]
begin=-200
end=-100
image=units/witness-ranged2.png
image=units/witness-ranged[1~2].png:[150,300]
[/frame]
{SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -200}
{SOUND:SLOW}
[frame]
image="units/witness.png:50"
[/frame]
[/attack_anim]
[defend]
start_time=-126
[frame]
begin=-126
end=-125
image="units/witness.png"
image="units/witness.png:1"
[/frame]
[frame]
begin=-125
end=-42
image="units/witness-defend1.png"
duration=250
image="units/witness-defend[1~3].png"
[/frame]
[frame]
begin=-42
end=41
image="units/witness-defend2.png"
[/frame]
[frame]
begin=41
end=125
image="units/witness-defend3.png"
[/frame]
[frame]
begin=125
end=126
image="units/witness.png"
image="units/witness.png:1"
[/frame]
[if]
hit_sound_start_time=-25
hits=hit
[hit_sound_frame]
sound={SOUND_LIST:DWARF_HIT}
[/hit_sound_frame]
[/if]
[/defend]
[/unit_type]