normal units attack/defense vs custom units: 0-0!!
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
normal units attack/defense vs custom units: 0-0!!
I noticed in the 1.1.7 version that
1) when I am attacking a custom (i.e. campaign specific) unit with nonzero melee and/or ranged
attacks, its attacks are listed correctly when I have the mouse on the unit, but when it comes to fighting, the're both 0-0
2) when I am attacking a normal unit with a custom unit again the normal unit's attacks are listed correctly when I put the mouse on the normal unit
, but when it comes to fighting the attacks are 0-0
Example:
[unit]
#textdomain wesnoth-Legend_of_Wesmere
id=Drake Mage
name=Drake Mage
race=drake
image=drake-mage.png
image_defensive=drake-mage-defend.png
hitpoints=32
movement_type=drakefoot
movement=5
experience=55
level=1
alignment=neutral
advanceto=null
#advanceto=Drake Warmage
cost=24
usage=archer
unit_description=_"Like all Mages, the Drake Mages are capable of using magic in battle."
get_hit_sound=groan.wav
[attack]
name=staff
type=impact
range=short
damage=4
number=2
[frame]
begin=-200
end=-50
image=drake-mage-attack-close.png
[/frame]
[sound]
time=-150
sound=sword-swish.wav
[/sound]
[/attack]
[attack]
name=fire breath
icon=attacks/fireball.png
type=fire
range=long
damage=7
number=3
[frame]
begin=-300
end=-100
image=drake-mage-attack-ranged-breath.png
halo=halo/fireball1.png,halo/fireball2.png,halo/fireball3.png,halo/fireball4.png,halo/fireball5.png,halo/fireball6.png
halo_x,halo_y=14,-14
[/frame]
[sound]
time=-200
sound=fire.wav
[/sound]
[missile_frame]
begin=-100
end=0
image=projectiles/fireball.png
halo=halo/fireball7.png
halo_x,halo_y=14,-14
[/missile_frame]
[/attack]
[attack]
name=ice shot
type=cold
range=long
damage=8
number=2
special=magical
[frame]
begin=-300
end=-200
image=drake-mage-attack-ranged-staff1.png
[/frame]
[frame]
begin=-200
end=-100
image=drake-mage-attack-ranged-staff2.png
[/frame]
[sound]
time=-200
sound=fire.wav
[/sound]
[missile_frame]
begin=-100
end=0
image=projectiles/magicmissile-n.png
image_diagonal=projectiles/magicmissile-ne.png
[/missile_frame]
[/attack]
[/unit]
1) when I am attacking a custom (i.e. campaign specific) unit with nonzero melee and/or ranged
attacks, its attacks are listed correctly when I have the mouse on the unit, but when it comes to fighting, the're both 0-0
2) when I am attacking a normal unit with a custom unit again the normal unit's attacks are listed correctly when I put the mouse on the normal unit
, but when it comes to fighting the attacks are 0-0
Example:
[unit]
#textdomain wesnoth-Legend_of_Wesmere
id=Drake Mage
name=Drake Mage
race=drake
image=drake-mage.png
image_defensive=drake-mage-defend.png
hitpoints=32
movement_type=drakefoot
movement=5
experience=55
level=1
alignment=neutral
advanceto=null
#advanceto=Drake Warmage
cost=24
usage=archer
unit_description=_"Like all Mages, the Drake Mages are capable of using magic in battle."
get_hit_sound=groan.wav
[attack]
name=staff
type=impact
range=short
damage=4
number=2
[frame]
begin=-200
end=-50
image=drake-mage-attack-close.png
[/frame]
[sound]
time=-150
sound=sword-swish.wav
[/sound]
[/attack]
[attack]
name=fire breath
icon=attacks/fireball.png
type=fire
range=long
damage=7
number=3
[frame]
begin=-300
end=-100
image=drake-mage-attack-ranged-breath.png
halo=halo/fireball1.png,halo/fireball2.png,halo/fireball3.png,halo/fireball4.png,halo/fireball5.png,halo/fireball6.png
halo_x,halo_y=14,-14
[/frame]
[sound]
time=-200
sound=fire.wav
[/sound]
[missile_frame]
begin=-100
end=0
image=projectiles/fireball.png
halo=halo/fireball7.png
halo_x,halo_y=14,-14
[/missile_frame]
[/attack]
[attack]
name=ice shot
type=cold
range=long
damage=8
number=2
special=magical
[frame]
begin=-300
end=-200
image=drake-mage-attack-ranged-staff1.png
[/frame]
[frame]
begin=-200
end=-100
image=drake-mage-attack-ranged-staff2.png
[/frame]
[sound]
time=-200
sound=fire.wav
[/sound]
[missile_frame]
begin=-100
end=0
image=projectiles/magicmissile-n.png
image_diagonal=projectiles/magicmissile-ne.png
[/missile_frame]
[/attack]
[/unit]
To allow more customization in the spacenoth fork.
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp
Translators for all languages required: contact me. No geek skills required!
http://www.wesnoth.org/wiki/WesCamp
Translators for all languages required: contact me. No geek skills required!