URL:
<http://gna.org/bugs/?15113>
Summary: Units can talk in their own die events
Project: Battle for Wesnoth
Submitted by: beetlenaut
Submitted on: Tuesday 01/12/2010 at 16:48
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.11
Operating System: Linux
_______________________________________________________
Details:
A die event fires after the unit's death animation plays, and the unit
disappears. However, in the following code, the unit that triggered the event
can be the one who talks. Also, the ghost won't appear in the right place:
[event]
name=die
[filter]
side=2
[/filter]
[message]
side=2
message= _ "You killed one of us!"
[/message]
[unit]
type=Ghost
x=$unit.x
y=$unit.y
[/unit]
[/event]
As a workaround, you can add a [kill] tag to the die event:
[kill]
id=$unit.id
[/kill]
But that isn't obvious, and if it's necessary, it should happen internally.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15113>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs