Tutorial: convert unit WML to new syntax

This commit is contained in:
David Mikos 2013-10-16 17:17:30 +10:30
parent 9e4e40787c
commit dd63f95a7b
4 changed files with 19 additions and 156 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
* Tutorial:
* 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

@ -31,54 +31,16 @@
[filter_attack]
name=sword
[/filter_attack]
hits=no
start_time=-125
[frame]
begin=-200
end=-150
image="units/konrad-fighter.png"
image="units/konrad-fighter.png:50"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[frame]
image="units/konrad-fighter-attack-[1~2].png:[150,100]"
[/frame]
[frame]
begin=-150
end=50
image="units/konrad-fighter-attack-1.png"
sound={SOUND_LIST:MISS}
[/frame]
[frame]
begin=50
end=150
image="units/konrad-fighter-attack-2.png"
[/frame]
[frame]
begin=150
end=200
image="units/konrad-fighter.png"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=sword
[/filter_attack]
hits=yes
[frame]
begin=-200
end=-150
image="units/konrad-fighter.png"
[/frame]
[frame]
begin=-150
end=50
image="units/konrad-fighter-attack-1.png"
sound={SOUND_LIST:SWORD_SWISH}
[/frame]
[frame]
begin=50
end=150
image="units/konrad-fighter-attack-2.png"
[/frame]
[frame]
begin=150
end=200
image="units/konrad-fighter.png"
image="units/konrad-fighter.png:50"
[/frame]
[/attack_anim]
[/unit_type]

View file

@ -32,83 +32,20 @@
{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]
name=saber
[/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]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[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]
[/unit_type]

View file

@ -36,54 +36,16 @@
[filter_attack]
name=flail
[/filter_attack]
hits=yes
start_time=-200
[frame]
begin=-200
end=-100
image=units/quintain.png
image=units/quintain.png:100
[/frame]
[frame]
begin=-100
end=50
image=units/quintain-attack1.png
sound=mace.wav
image=units/quintain-attack[1~2].png:[150,75]
[/frame]
{SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -100}
[frame]
begin=50
end=125
image=units/quintain-attack2.png
[/frame]
[frame]
begin=125
end=200
image=units/quintain.png
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=flail
[/filter_attack]
hits=no
[frame]
begin=-200
end=-100
image=units/quintain.png
[/frame]
[frame]
begin=-100
end=50
image=units/quintain-attack1.png
sound={SOUND_LIST:MISS}
[/frame]
[frame]
begin=50
end=125
image=units/quintain-attack2.png
[/frame]
[frame]
begin=125
end=200
image=units/quintain.png
image=units/quintain.png:75
[/frame]
[/attack_anim]
[/unit_type]