EI: convert unit WML to new syntax

This commit is contained in:
David Mikos 2013-10-16 02:15:55 +10:30
parent d3ad4d84b4
commit b1f7ec61f8
5 changed files with 46 additions and 148 deletions

View file

@ -40,6 +40,8 @@ Version 1.11.6+dev:
* Converted animation WML to the new syntax
* Descent Into Darkness:
* Converted animation WML to the new syntax
* Eastern Invasion:
* Converted animation WML to the new syntax
* Heir To The Throne:
* Converted animation WML to the new syntax
* Legend of Wesmere:

View file

@ -44,58 +44,28 @@
[filter_attack]
name=morning star
[/filter_attack]
start_time=-300
[frame]
begin=-300
end=-250
image="units/owaec-lord.png"
image="units/owaec-lord.png:200"
sound=horse-canter.wav
[/frame]
[if]
hits=no
[frame]
begin=-250
end=225
image="units/owaec-lord.png"
sound=flail-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-250
end=225
image="units/owaec-lord.png"
sound=flail.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[frame]
image="units/owaec-lord.png:325"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=greatsword
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-100
image="units/owaec-lord.png"
image="units/owaec-lord.png:100"
sound=horse-canter.wav
[/frame]
[if]
hits=no
[frame]
begin=-100
end=175
image="units/owaec-lord.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=175
image="units/owaec-lord.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[frame]
image="units/owaec-lord.png:275"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -8,30 +8,16 @@
[animation]
apply_to=summon
start_time=-300
[frame]
begin=-300
end=-200
image="units/undead-necromancers/ancient-lich-magic-1.png"
image="units/undead-necromancers/ancient-lich-magic-[1~3,1].png:100"
[/frame]
[frame]
begin=-200
end=-100
image="units/undead-necromancers/ancient-lich-magic-2.png"
sound_start_time=-200
[sound_frame]
sound=magic-dark-big.ogg
[/frame]
[/sound_frame]
[frame]
begin=-100
end=0
image="units/undead-necromancers/ancient-lich-magic-3.png"
[/frame]
[frame]
begin=0
end=100
image="units/undead-necromancers/ancient-lich-magic-1.png"
[/frame]
[frame]
duration=1
image="units/undead-necromancers/ancient-lich.png"
image="units/undead-necromancers/ancient-lich.png:1"
[/frame]
[/animation]
[animation]
@ -64,14 +50,14 @@
direction=n,ne,nw
[missile_frame]
halo="halo/holy/light-beam-[1-7,6-1].png:[30,30,30,30,30,30,130,70,70,70,70,70,70]"
halo="halo/holy/light-beam-[1~7,6~1].png:[30*6,130,70*6]"
[/missile_frame]
[/if]
[else]
direction=s,se,sw
[missile_frame]
halo="halo/holy/light-beam-[1-7,6-1].png~FL(vert):[30,30,30,30,30,30,130,70,70,70,70,70,70]"
halo="halo/holy/light-beam-[1~7,6~1].png~FL(vert):[30*6,130,70*6]"
[/missile_frame]
[/else]

View file

@ -40,58 +40,28 @@
[filter_attack]
name=morning star
[/filter_attack]
start_time=-300
[frame]
begin=-300
end=-250
image="units/owaec-fighter.png"
image="units/owaec-fighter.png:200"
sound=horse-canter.wav
[/frame]
[if]
hits=no
[frame]
begin=-250
end=225
image="units/owaec-fighter.png"
sound=flail-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-250
end=225
image="units/owaec-fighter.png"
sound=flail.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[frame]
image="units/owaec-fighter.png:325"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=sword
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-100
image="units/owaec-fighter.png"
image="units/owaec-fighter.png:100"
sound=horse-canter.wav
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=175
image="units/owaec-fighter.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=175
image="units/owaec-fighter.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[frame]
image="units/owaec-fighter.png:275"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -43,58 +43,28 @@
[filter_attack]
name=morning star
[/filter_attack]
start_time=-300
[frame]
begin=-300
end=-250
image="units/owaec-warrior.png"
image="units/owaec-warrior.png:200"
sound=horse-canter.wav
[/frame]
[if]
hits=no
[frame]
begin=-250
end=225
image="units/owaec-warrior.png"
sound=flail-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-250
end=225
image="units/owaec-warrior.png"
sound=flail.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
[frame]
image="units/owaec-warrior.png:325"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=greatsword
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-100
image="units/owaec-warrior.png"
image="units/owaec-warrior.png:100"
sound=horse-canter.wav
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=175
image="units/owaec-warrior.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=175
image="units/owaec-warrior.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[frame]
image="units/owaec-warrior.png:275"
[/frame]
[/attack_anim]
[/unit_type]