TSG: convert unit WML to new syntax

This commit is contained in:
David Mikos 2013-10-16 18:05:58 +10:30
parent dd63f95a7b
commit 8609bc68da
7 changed files with 71 additions and 354 deletions

View file

@ -63,6 +63,8 @@ Version 1.11.6+dev:
* Converted animation WML to the new syntax
* The Rise of Wesnoth:
* Converted animation WML to the new syntax
* The South Guard:
* Converted animation WML to the new syntax
* Tutorial:
* Converted animation WML to the new syntax
* Engine:

View file

@ -41,43 +41,13 @@
[filter_attack]
range=melee
[/filter_attack]
start_time=-300
[frame]
begin=-300
end=-250
image=units/eyestalk.png
image=units/eyestalk.png:50
[/frame]
[if]
hits=no
[frame]
begin=-250
end=-150
image=units/eyestalk-attack-1.png
[/frame]
[frame]
begin=-150
end=100
image=units/eyestalk-attack-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-250
end=-150
image=units/eyestalk-attack-1.png
sound=tail.ogg
[/frame]
[frame]
begin=-150
end=100
image=units/eyestalk-attack-2.png
[/frame]
[/else]
{SOUND:HIT_AND_MISS tail.ogg {SOUND_LIST:MISS} -150}
[frame]
begin=100
end=250
image=units/eyestalk-attack-1.png
image=units/eyestalk-attack-[1~2,1].png:[100,250,150]
[/frame]
[/attack_anim]
[attack]
@ -97,32 +67,22 @@
[filter_attack]
range=ranged
[/filter_attack]
missile_start_time=0
[missile_frame]
begin=0
end=300
duration=300
halo="halo/elven/ice-halo[1~6].png:50"
offset=1.0~0.0:300
[/missile_frame]
start_time=-200
[frame]
begin=-200
end=-150
image=units/eyestalk.png
image=units/eyestalk.png:50
[/frame]
[frame]
begin=-150
end=-50
image=units/eyestalk-attack-1.png
image=units/eyestalk-attack-1.png:100
sound=hiss-die.wav
[/frame]
[frame]
begin=-50
end=200
image=units/eyestalk-attack-2.png
[/frame]
[frame]
begin=200
end=300
image=units/eyestalk-attack-1.png
image=units/eyestalk-attack-[2,1].png:[250,100]
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -5,10 +5,9 @@
race=human
image=deoran/horseman-commander.png
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="deoran/horseman-commander-defend.png"
image="deoran/horseman-commander-defend.png:300"
[/frame]
[/leading_anim]
profile=portraits/deoran.png
@ -46,10 +45,9 @@
number=2
[/attack]
[movement_anim]
start_time=0
[frame]
begin=0
end=150
image=deoran/horseman-commander-moving.png
image=deoran/horseman-commander-moving.png:150
[/frame]
[/movement_anim]
{DEFENSE_ANIM "deoran/horseman-commander-defend.png" "deoran/horseman-commander.png" {SOUND_LIST:HORSE_HIT} }
@ -57,88 +55,46 @@
[filter_attack]
name=lance
[/filter_attack]
start_time=-225
[frame]
begin=-225
end=-200
image=deoran/horseman-commander.png
image=deoran/horseman-commander.png:25
sound=horse-canter.wav
[/frame]
[frame]
begin=-200
end=-100
image=deoran/horseman-commander-moving.png
image=deoran/horseman-commander-moving.png:100
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image=deoran/horseman-commander-attack.png
sound=spear-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image=deoran/horseman-commander-attack.png
sound=spear.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=100
end=175
image=deoran/horseman-commander-moving.png
image=deoran/horseman-commander-attack.png:200
[/frame]
[frame]
begin=175
end=200
image=deoran/horseman-commander.png
image=deoran/horseman-commander-moving.png:75
[/frame]
[frame]
image=deoran/horseman-commander.png:25
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=mace
[/filter_attack]
start_time=-225
[frame]
begin=-225
end=-200
image=deoran/horseman-commander.png
image=deoran/horseman-commander.png:25
sound=horse-canter.wav
[/frame]
[frame]
begin=-200
end=-100
image=deoran/horseman-commander-moving.png
image=deoran/horseman-commander-moving.png:100
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image=deoran/horseman-commander-attack.png
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image=deoran/horseman-commander-attack.png
sound=mace.wav
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=100
end=175
image=deoran/horseman-commander-moving.png
image=deoran/horseman-commander-attack.png:200
[/frame]
[frame]
begin=175
end=200
image=deoran/horseman-commander.png
image=deoran/horseman-commander-moving.png:75
[/frame]
[frame]
image=deoran/horseman-commander.png:25
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -6,10 +6,9 @@
image="units/infantry-commander.png"
{MAGENTA_IS_THE_TEAM_COLOR}
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="units/infantry-commander.png"
image="units/infantry-commander.png:300"
[/frame]
[/leading_anim]
hitpoints=64
@ -55,49 +54,9 @@
name=glaive
[/filter_attack]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[if]
hits=no
[frame]
duration=100
image="units/infantry-commander.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
duration=100
image="units/infantry-commander.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
image="units/infantry-commander.png:[100*8]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[/attack_anim]
[attack_anim]
start_time=-500
@ -105,48 +64,8 @@
name=shield
[/filter_attack]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[if]
hits=no
[frame]
duration=100
image="units/infantry-commander.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
duration=100
image="units/infantry-commander.png"
sound="mace.wav"
[/frame]
[/else]
[frame]
duration=100
image="units/infantry-commander.png"
[/frame]
[frame]
duration=100
image="units/infantry-commander.png"
image="units/infantry-commander.png:[100*8]"
[/frame]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[/attack_anim]
[/unit_type]

View file

@ -6,10 +6,9 @@
image="units/infantry-lieutenant.png"
{MAGENTA_IS_THE_TEAM_COLOR}
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="units/infantry-lieutenant-attack-8.png"
image="units/infantry-lieutenant-attack-8.png:300"
[/frame]
[/leading_anim]
hitpoints=48
@ -42,48 +41,8 @@
name=glaive
[/filter_attack]
[frame]
duration=100
image="units/infantry-lieutenant-attack-1.png"
[/frame]
[frame]
duration=100
image="units/infantry-lieutenant-attack-2.png"
[/frame]
[frame]
duration=100
image="units/infantry-lieutenant-attack-3.png"
[/frame]
[frame]
duration=100
image="units/infantry-lieutenant-attack-4.png"
[/frame]
[frame]
duration=100
image="units/infantry-lieutenant-attack-5.png"
[/frame]
[if]
hits=no
[frame]
duration=100
image="units/infantry-lieutenant-attack-6.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
duration=100
image="units/infantry-lieutenant-attack-6.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[/else]
[frame]
duration=100
image="units/infantry-lieutenant-attack-7.png"
[/frame]
[frame]
duration=100
image="units/infantry-lieutenant-attack-8.png"
image="units/infantry-lieutenant-attack-[1~8].png:100"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[/attack_anim]
[/unit_type]

View file

@ -5,10 +5,9 @@
race=human
image=deoran/junior-commander.png
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="deoran/junior-commander-defend.png"
image="deoran/junior-commander-defend.png:300"
[/frame]
[/leading_anim]
profile=portraits/deoran.png
@ -35,10 +34,9 @@
number=3
[/attack]
[movement_anim]
start_time=0
[frame]
begin=0
end=150
image=deoran/junior-commander-moving.png
image=deoran/junior-commander-moving.png:150
[/frame]
[/movement_anim]
{DEFENSE_ANIM "deoran/junior-commander-defend.png" "deoran/junior-commander.png" {SOUND_LIST:HORSE_HIT} }
@ -46,44 +44,23 @@
[filter_attack]
name=spear
[/filter_attack]
start_time=-225
[frame]
begin=-225
end=-200
image=deoran/junior-commander.png
image=deoran/junior-commander.png:25
sound=horse-canter.wav
[/frame]
[frame]
begin=-200
end=-100
image=deoran/junior-commander-moving.png
image=deoran/junior-commander-moving.png:100
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image=deoran/junior-commander-attack.png
sound=spear-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image=deoran/junior-commander-attack.png
sound=spear.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=100
end=175
image=deoran/junior-commander-moving.png
image=deoran/junior-commander-attack.png:200
[/frame]
[frame]
begin=175
end=200
image=deoran/junior-commander.png
image=deoran/junior-commander-moving.png:75
[/frame]
[frame]
image=deoran/junior-commander.png:25
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -6,10 +6,9 @@
image=deoran/mounted-general.png
{MAGENTA_IS_THE_TEAM_COLOR}
[leading_anim]
start_time=-150
[frame]
begin=-150
end=150
image="deoran/mounted-general-defend.png"
image="deoran/mounted-general-defend.png:300"
[/frame]
[/leading_anim]
profile=portraits/deoran.png
@ -51,95 +50,40 @@
[filter_attack]
name=lance
[/filter_attack]
start_time=-225
[frame]
begin=-225
end=-200
image=deoran/mounted-general-lance.png
image=deoran/mounted-general-lance.png:25
sound=horse-canter.wav
[/frame]
[frame]
begin=-200
end=-100
image=deoran/mounted-general-lance-1.png
image=deoran/mounted-general-lance-[1~2,1].png:[100,200,75]
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image=deoran/mounted-general-lance-2.png
sound=spear-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image=deoran/mounted-general-lance-2.png
sound=spear.ogg
[/frame]
[/else]
{SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
[frame]
begin=100
end=175
image=deoran/mounted-general-lance-1.png
[/frame]
[frame]
begin=175
end=200
image=deoran/mounted-general-lance.png
image=deoran/mounted-general-lance.png:25
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=mace
[/filter_attack]
start_time=-225
[frame]
begin=-225
end=-200
image=deoran/mounted-general-lance.png
image=deoran/mounted-general-moving.png:25
sound=horse-canter.wav
[/frame]
[frame]
begin=-200
end=-100
image=deoran/mounted-general-lance-1.png
image=deoran/mounted-general-moving.png:[100,200,75] #placeholder graphic
[/frame]
[if]
hits=no
[frame]
begin=-100
end=100
image=deoran/mounted-general-lance-2.png
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=100
image=deoran/mounted-general-lance-2.png
sound=mace.wav
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=100
end=175
image=deoran/mounted-general-lance-1.png
[/frame]
[frame]
begin=175
end=200
image=deoran/mounted-general-lance.png
image=deoran/mounted-general.png:25
[/frame]
[/attack_anim]
[movement_anim]
start_time=0
[frame]
begin=0
end=150
image=deoran/mounted-general-moving.png
image=deoran/mounted-general-moving.png:150
[/frame]
[/movement_anim]
{DEFENSE_ANIM "deoran/mounted-general-defend.png" "deoran/mounted-general.png" {SOUND_LIST:HORSE_HIT} }