-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
Commander.cfg
141 lines (130 loc) · 4.63 KB
/
Commander.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#textdomain wesnoth-httt
#define HTTT_COMMANDER AFFIX
name= _ "Commander"
race=human
num_traits=0
image="units/konrad-commander{AFFIX}.png"
hitpoints=45
[abilities]
{ABILITY_LEADERSHIP}
[/abilities]
movement_type=smallfoot
movement=6
experience=60
level=2
alignment=lawful
advances_to=Lord
usage=mixed fighter
die_sound={SOUND_LIST:HUMAN_DIE}
{DEFENSE_ANIM_RANGE "units/konrad-commander{AFFIX}-defend.png" "units/konrad-commander{AFFIX}.png" {SOUND_LIST:HUMAN_HIT} melee}
[attack]
name=sword
#textdomain wesnoth-units
description= _"sword"
icon=attacks/sword-human.png
type=blade
range=melee
damage=8
number=4
[/attack]
[attack]
name=bow
description= _"bow"
#textdomain wesnoth-httt
type=pierce
range=ranged
damage=6
number=3
[/attack]
[attack_anim]
[filter_attack]
name=sword
[/filter_attack]
start_time=-175
[frame]
image="units/konrad-commander{AFFIX}.png:25"
[/frame]
[frame]
image="units/konrad-commander{AFFIX}-attack-[1~4].png:[75,150,75*2]"
[/frame]
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
[/attack_anim]
[attack_anim]
[filter_attack]
name=bow
[/filter_attack]
missile_start_time=-150
start_time=-475
[missile_frame]
duration=150
image="projectiles/missile-n.png"
image_diagonal="projectiles/missile-ne.png"
[/missile_frame]
[frame]
image="units/konrad-commander-bow.png:75"
[/frame]
[frame]
image="units/konrad-commander-bow-attack[1~4].png:75"
[/frame]
[frame]
image="units/konrad-commander-bow.png:100"
[/frame]
{SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -275}
[/attack_anim]
#enddef
[unit_type]
id=Commander
{HTTT_COMMANDER ()}
cost=40
[leading_anim]
start_time=-150
[frame]
image="units/konrad-commander-leading.png:300"
[/frame]
[/leading_anim]
description= _ "The rank of Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
{DEFENSE_ANIM_RANGE "units/konrad-commander-bow-defend.png" "units/konrad-commander-bow.png" {SOUND_LIST:HUMAN_HIT} ranged}
[variation]
{HTTT_COMMANDER -scepter}
variation_id=sceptre
hide_help=yes
cost=60
{LEADING_ANIM "units/konrad-commander-scepter-leading.png" "units/konrad-commander-scepter.png" 17,-22}
description= _ "The rank of Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_MAGICAL}
[attack]
name=sceptre of fire
# the sceptre of fire always has the 're' writing, this is intentional!
description= _"sceptre of fire"
type=fire
range=ranged
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
icon=attacks/fireball.png
damage=16
number=4
[/attack]
{DEFENSE_ANIM_FILTERED "units/konrad-commander-scepter-defend.png" "units/konrad-commander-scepter.png" {SOUND_LIST:HUMAN_HIT} (
[filter_second_attack]
name=sceptre of fire
[/filter_second_attack]
)}
{DEFENSE_ANIM_FILTERED "units/konrad-commander-bow-defend.png" "units/konrad-commander-bow.png" {SOUND_LIST:HUMAN_HIT} (
[filter_second_attack]
name=bow
[/filter_second_attack]
)}
[attack_anim]
[filter_attack]
name=sceptre of fire
[/filter_attack]
{MISSILE_FRAME_FIREBALL_XY 16 -24}
start_time=-300
[frame]
sound=fire.wav
image="units/konrad-commander-scepter-leading.png:200"
[/frame]
[/attack_anim]
[/variation]
[/unit_type]
#undef HTTT_COMMANDER