SoF: convert unit WML to new syntax

This commit is contained in:
David Mikos 2013-10-16 02:22:49 +10:30
parent b1f7ec61f8
commit b825400c2f
3 changed files with 19 additions and 67 deletions

View file

@ -55,6 +55,8 @@ Version 1.11.6+dev:
* Liberty:
* New AI for wolf riders in "The Raid"
* Converted animation WML to the new syntax
* Sceptre of Fire:
* 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

@ -62,8 +62,7 @@
[/filter]
start_time=0
[frame]
duration=1000
image=units/dwarves/miner-laden.png
image=units/dwarves/miner-laden.png:1000
[/frame]
[/standing_anim]
@ -83,8 +82,7 @@
[/filter]
start_time=0
[frame]
duration=1000
image=units/dwarves/miner.png
image=units/dwarves/miner.png:1000
[/frame]
[/standing_anim]
[attack_anim]
@ -102,30 +100,15 @@
[/or]
[/not]
[/filter]
start_time=-350
offset=0.0~0.3,0.3~0.5,0.5~0.6,0.6~0.5,0.5~0.3,0.3~0.0
[frame]
begin=-350
end=-100
image=units/dwarves/miner.png
image=units/dwarves/miner.png:250
[/frame]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -100}
[frame]
image=units/dwarves/miner.png:350
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=250
image=units/dwarves/miner.png
sound=axe.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=250
image=units/dwarves/miner.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[/attack_anim]
[attack_anim]
[filter_attack]
@ -140,29 +123,14 @@
role=has_gold
[/or]
[/filter]
start_time=-350
offset=0.0~0.3,0.3~0.5,0.5~0.6,0.6~0.5,0.5~0.3,0.3~0.0
[frame]
begin=-350
end=-100
image=units/dwarves/miner-laden.png
image=units/dwarves/miner-laden.png:250
[/frame]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -100}
[frame]
image=units/dwarves/miner-laden.png:350
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=250
image=units/dwarves/miner-laden.png
sound=axe.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=250
image=units/dwarves/miner-laden.png
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[/attack_anim]
[/unit_type]

View file

@ -33,31 +33,13 @@
[filter_attack]
name=sword
[/filter_attack]
start_time=-200
[frame]
begin=-200
end=-125
image="units/heroes/haldric-ii-sword-1.png"
[/frame]
[frame]
begin=-125
end=-50
image="units/heroes/haldric-ii-sword-2.png"
image="units/heroes/haldric-ii-sword-[1~4].png:[75*2,150,75]"
[/frame]
{SOUND:HIT_AND_MISS sword-1.ogg {SOUND_LIST:MISS} -100}
[frame]
begin=-50
end=100
image="units/heroes/haldric-ii-sword-3.png"
[/frame]
[frame]
begin=100
end=175
image="units/heroes/haldric-ii-sword-4.png"
[/frame]
[frame]
begin=175
end=200
image="units/heroes/haldric-ii.png"
image="units/heroes/haldric-ii.png:25"
[/frame]
[/attack_anim]
[/unit_type]