URL:
<http://gna.org/bugs/?16089>
Summary: varaible unit is empty if killed previously in an
event
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Sonntag 30.05.2010 um 00:32
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.8.0
Operating System: win XP
_______________________________________________________
Details:
Consider the following code:
[event]
name=start
[unit]
type=Troll
side=1
x,y=2,6
id=testtroll
[/unit]
[/event]
[event]
name=moveto
[filter]
id=testtroll
[/filter]
[kill]
id=testtroll
[/kill]
# [kill]
# id=$unit.id
# [/kill]
[unstore_unit]
variable=unit
[/unstore_unit]
[/event]
This gives
error engine: failed to auto-store $unit at (3,7)
error engine: could not de-serialize unit: 'game_error: creating unit with an
empty type field'
but commenting the first [kill] tag and using the second one with $unit.id
works, the unit is "revived". So seemingly unit is filled only at that point
where required.
If we "won't fix" it, I'll add a note to the wiki...
cheers
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16089>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs