New lightning animation for elder mage.
Also added a blank hex-sized image, since there didn't seem to be one already (needed for empty [missile_frame]s).
|
@ -13,9 +13,9 @@ image="units/elder-mage-defend.png"
|
|||
profile=portraits/delfador.png
|
||||
hitpoints=55
|
||||
movement_type=smallfoot
|
||||
[resistance]
|
||||
fire=80
|
||||
[/resistance]
|
||||
[resistance]
|
||||
fire=80
|
||||
[/resistance]
|
||||
movement=6
|
||||
experience=100
|
||||
level=5
|
||||
|
@ -28,78 +28,125 @@ get_hit_sound=human-male-hit.ogg
|
|||
die_sound=human-male-die.ogg
|
||||
|
||||
unit_description= _ "Once great, Elder Magi have seen their power a little diminished from wearying years of battle. Nevertheless they remain feared on the battlefield on account of their powerful lightning bolts."
|
||||
[attack]
|
||||
name=staff
|
||||
icon=attacks/staff-magic.png
|
||||
type=impact
|
||||
range=melee
|
||||
damage=8
|
||||
number=2
|
||||
[animation]
|
||||
hit=yes
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
sound=staff.wav
|
||||
image="units/elder-mage-attack.png"
|
||||
[/frame]
|
||||
[/animation]
|
||||
[animation]
|
||||
hit=no
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
sound=miss.wav
|
||||
image="units/elder-mage-attack.png"
|
||||
[/frame]
|
||||
[/animation]
|
||||
[/attack]
|
||||
|
||||
[attack]
|
||||
name=lightning
|
||||
icon=attacks/lightning.png
|
||||
type=fire
|
||||
range=ranged
|
||||
special=magical
|
||||
damage=14
|
||||
number=4
|
||||
[animation]
|
||||
hit=yes
|
||||
[frame]
|
||||
begin=-600
|
||||
end=0
|
||||
image="units/elder-mage-ranged.png"
|
||||
halo=halo/elder-mage-halo1.png:100,halo/elder-mage-halo2.png:100,halo/elder-mage-halo3.png:100,halo/elder-mage-halo4.png:100,halo/elder-mage-halo5.png:100,halo/elder-mage-halo6.png:100
|
||||
halo_x,halo_y=13,-376
|
||||
sound=lightning.ogg
|
||||
[/frame]
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image="projectiles/lightning-n.png"
|
||||
image_diagonal="projectiles/lightning-ne.png"
|
||||
# halo=halo/elder-mage-halo7.png
|
||||
# halo_x,halo_y=13,-26
|
||||
[/missile_frame]
|
||||
[/animation]
|
||||
[animation]
|
||||
hit=no
|
||||
[frame]
|
||||
begin=-600
|
||||
end=0
|
||||
image="units/elder-mage-ranged.png"
|
||||
halo=halo/elder-mage-halo1.png:100,halo/elder-mage-halo2.png:100,halo/elder-mage-halo3.png:100,halo/elder-mage-halo4.png:100,halo/elder-mage-halo5.png:100,halo/elder-mage-halo6.png:100
|
||||
halo_x,halo_y=13,-376
|
||||
sound=lightning-miss.ogg
|
||||
[/frame]
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image="projectiles/lightning-n.png"
|
||||
image_diagonal="projectiles/lightning-ne.png"
|
||||
# halo=halo/elder-mage-halo7.png
|
||||
# halo_x,halo_y=13,-26
|
||||
[/missile_frame]
|
||||
[/animation]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=staff
|
||||
icon=attacks/staff-magic.png
|
||||
type=impact
|
||||
range=melee
|
||||
damage=8
|
||||
number=2
|
||||
[animation]
|
||||
hit=yes
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
sound=staff.wav
|
||||
image="units/elder-mage-attack.png"
|
||||
[/frame]
|
||||
[/animation]
|
||||
[animation]
|
||||
hit=no
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
sound=miss.wav
|
||||
image="units/elder-mage-attack.png"
|
||||
[/frame]
|
||||
[/animation]
|
||||
[/attack]
|
||||
|
||||
[attack]
|
||||
name=lightning
|
||||
icon=attacks/lightning.png
|
||||
type=fire
|
||||
range=ranged
|
||||
special=magical
|
||||
damage=14
|
||||
number=4
|
||||
|
||||
# The lightning bolt animation is a little complex; the bolt itself is
|
||||
# done as an animated halo, and so it needs to have different halo_x and
|
||||
# halo_y coordinates for all six directions. For this reason I wrote
|
||||
# this macro, which is also used to create the bolt variations.
|
||||
|
||||
#define ELDER_MAGE_LIGHTNING_BOLTS VARIATION DIR HALO_X HALO_Y
|
||||
[animation]
|
||||
hits=no
|
||||
direction={DIR}
|
||||
|
||||
[frame]
|
||||
begin=-300
|
||||
end=-150
|
||||
sound=lightning-miss.ogg
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-150
|
||||
end=0
|
||||
image="units/elder-mage-ranged.png"
|
||||
halo=halo/lightning-bolt-{VARIATION}-1.png:51,halo/lightning-bolt-{VARIATION}-2.png:51,halo/lightning-bolt-{VARIATION}-4.png:51
|
||||
halo_x,halo_y={HALO_X},{HALO_Y}
|
||||
[/frame]
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image="misc/blank-hex.png"
|
||||
image_diagonal="misc/blank-hex.png"
|
||||
[/missile_frame]
|
||||
[/animation]
|
||||
|
||||
[animation]
|
||||
hits=yes
|
||||
direction={DIR}
|
||||
|
||||
[frame]
|
||||
begin=-300
|
||||
end=-150
|
||||
sound=lightning.ogg
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-200
|
||||
end=0
|
||||
image="units/elder-mage-ranged.png"
|
||||
halo=halo/lightning-bolt-{VARIATION}-1.png:51,halo/lightning-bolt-{VARIATION}-2.png:51,halo/lightning-bolt-{VARIATION}-3.png:51,halo/lightning-bolt-{VARIATION}-4.png:50
|
||||
halo_x,halo_y={HALO_X},{HALO_Y}
|
||||
[/frame]
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image="misc/blank-hex.png"
|
||||
image_diagonal="misc/blank-hex.png"
|
||||
[/missile_frame]
|
||||
[/animation]
|
||||
#enddef
|
||||
|
||||
# The three variations for the north direction:
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 n 0 -210}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 n 0 -210}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 n 0 -210}
|
||||
|
||||
# The three variations for the south direction:
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 s 0 -72}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 s 0 -72}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 s 0 -72}
|
||||
|
||||
# And so on...
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 se 54 -104}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 se 54 -104}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 se 54 -104}
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 sw 54 -104}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 sw 54 -104}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 sw 54 -104}
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 ne 54 -176}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 ne 54 -176}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 ne 54 -176}
|
||||
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 1 nw 54 -176}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 2 nw 54 -176}
|
||||
{ELDER_MAGE_LIGHTNING_BOLTS 3 nw 54 -176}
|
||||
[/attack]
|
||||
[/unit]
|
||||
|
|
BIN
images/halo/lightning-bolt-1-1.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
images/halo/lightning-bolt-1-2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/halo/lightning-bolt-1-3.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
images/halo/lightning-bolt-1-4.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
images/halo/lightning-bolt-2-1.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
images/halo/lightning-bolt-2-2.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
images/halo/lightning-bolt-2-3.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
images/halo/lightning-bolt-2-4.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
images/halo/lightning-bolt-3-1.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
images/halo/lightning-bolt-3-2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/halo/lightning-bolt-3-3.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/halo/lightning-bolt-3-4.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/misc/blank-hex.png
Normal file
After Width: | Height: | Size: 764 B |