normal units attack/defense vs custom units: 0-0!!

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
santi
Lord of Wesmere
Posts: 1320
Joined: April 6th, 2004, 12:32 pm

normal units attack/defense vs custom units: 0-0!!

Post by santi »

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]
Jgrr
Posts: 121
Joined: June 19th, 2006, 5:53 pm
Location: Espoo, Finland

Post by Jgrr »

In 1.1.7, the ranges are no longer "long" and "short", but "melee" and "ranged".
User avatar
JW
Posts: 5046
Joined: November 10th, 2005, 7:06 am
Location: Chicago-ish, Illinois

Post by JW »

Jgrr wrote:In 1.1.7, the ranges are no longer "long" and "short", but "melee" and "ranged".
Get this man a chicken dinner.
User avatar
santi
Lord of Wesmere
Posts: 1320
Joined: April 6th, 2004, 12:32 pm

Post by santi »

Thanks, that was it!
Why on earth did they decide to change this???
torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Post by torangan »

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!
Post Reply