URL:
<http://gna.org/bugs/?14196>
Summary: [unit] to_variable= doesn't overwrite the variable
completely
Project: Battle for Wesnoth
Submitted by: elvish_pillager
Submitted on: Wednesday 08/26/2009 at 16:20
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.6
Operating System: Ubunutu GNU/Lin
_______________________________________________________
Details:
Creating a unit with the to_variable= key to put it to a variable results in
the variable containing a unit with most of the properties of the newly
created unit, but it won't overwrite the [abilities] sub-tag (and probably
other sub-tags, though I haven't tested that.)
For example, this code will generate a Wolf with the "ambush" and
"regenerates" abilities:
[unit]
type=Wose
to_variable=foo
<location, side, etc>
[/unit]
[unstore_unit]
variable=foo
[/unstore_unit]
[unit]
type=Wolf
to_variable=foo
<location, side, etc>
[/unit]
[unstore_unit]
variable=foo
[/unstore_unit]
Creating another Wose this way will also result in a Wose with two instances
of each ability.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?14196>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs