wesnoth/data/core/macros/animation-utils2.cfg
2010-08-11 17:14:09 +00:00

572 lines
17 KiB
INI

#textdomain wesnoth
# Macros for setting animations.
# These don't rely on any other macros. Please don't change this.
#define MAGIC_ARMRAISE_DIRECTIONAL_2_FRAME BASE_IMAGE_NAME
# unlike the others, this one is used *inside* the attack/healing anim.
[if]
direction=s,se,sw
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-magic1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-magic2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-magic1.png
[/frame]
[/if]
[else]
direction=n,ne,nw
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-magic1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-magic2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-magic1.png
[/frame]
[/else]
#enddef
#define ATTACK_ANIM_DIRECTIONAL_9_FRAME BASE_IMAGE_NAME TAIL_IMAGE_NAME HIT_SOUND MISS_SOUND
[sound_frame]
duration=600
[/sound_frame]
[if]
hits=no
[sound_frame]
sound={HIT_SOUND}
duration=100
[/sound_frame]
[/if]
[else]
hits=yes
[sound_frame]
sound={MISS_SOUND}
duration=100
[/sound_frame]
[/else]
[if]
direction=s,se,sw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}9.png
[/frame]
[/if]
[else]
direction=n,ne,nw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}9.png
[/frame]
[/else]
#enddef
#define ATTACK_ANIM_QUAD_DIRECTIONAL_10_FRAME BASE_IMAGE_NAME TAIL_IMAGE_NAME HIT_SOUND MISS_SOUND
[sound_frame]
duration=600
[/sound_frame]
[if]
hits=no
[sound_frame]
sound={HIT_SOUND}
duration=100
[/sound_frame]
[/if]
[else]
hits=yes
[sound_frame]
sound={MISS_SOUND}
duration=100
[/sound_frame]
[/else]
[if]
direction=se,sw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}9.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-{TAIL_IMAGE_NAME}10.png
[/frame]
[/if]
[else]
direction=s
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}9.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-s-{TAIL_IMAGE_NAME}10.png
[/frame]
[/else]
[else]
direction=n
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}9.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-n-{TAIL_IMAGE_NAME}10.png
[/frame]
[/else]
[else]
direction=ne,nw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}5.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}6.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}7.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}8.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}9.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-{TAIL_IMAGE_NAME}10.png
[/frame]
[/else]
#enddef
#define DEATH_ANIM_DIRECTIONAL_4_FRAME BASE_IMAGE_NAME
[death]
[if]
direction=s,se,sw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-se-die4.png
[/frame]
[/if]
[else]
direction=n,ne,nw
start_time=0
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die1.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die2.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die4.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die3.png
[/frame]
[frame]
duration=100
image={BASE_IMAGE_NAME}-ne-die4.png
[/frame]
[/else]
[/death]
#enddef
#define STANDING_ANIM_DIRECTIONAL_6_FRAME BASE_IMAGE_NAME
[standing_anim]
[if]
direction=s,se,sw
start_time=0
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob1.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob2.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob3.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob4.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob5.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-se-bob6.png
[/frame]
[/if]
[else]
direction=n,ne,nw
start_time=0
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob1.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob2.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob3.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob4.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob5.png
[/frame]
[frame]
duration=200
image={BASE_IMAGE_NAME}-ne-bob6.png
[/frame]
[/else]
[/standing_anim]
#enddef
#define MOVING_ANIM_DIRECTIONAL_12_FRAME BASE_IMAGE_NAME
[movement_anim]
[if]
direction=s,se,sw
start_time=0
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run1.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run2.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run3.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run4.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run5.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run6.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run7.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run8.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run9.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run10.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run11.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-se-run12.png
[/frame]
[/if]
[else]
direction=n,ne,nw
start_time=0
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run1.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run2.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run3.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run4.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run5.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run6.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run7.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run8.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run9.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run10.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run11.png
[/frame]
[frame]
duration=50
image={BASE_IMAGE_NAME}-ne-run12.png
[/frame]
[/else]
[/movement_anim]
#enddef