URL:
<http://gna.org/bugs/?13016>
Summary: persistent=yes in [side] tags should work as
expected
Project: Battle for Wesnoth
Submitted by: pmawhorter
Submitted on: Wednesday 02/18/2009 at 01:23
Category: Feature Request
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.5.10+svn (32869
Operating System: Ubuntu 8.04
_______________________________________________________
Details:
As discussed here:
http://www.wesnoth.org/wiki/SideSwitchingWML
and here:
http://www.wesnoth.org/forum/viewtopic.php?f=21&t=23546
the key persistent=yes in [side] tags behaves in strange and unexpected ways,
and the functionality that it should provide is instead relegated to
hand-coded WML.
What persistent=yes should do is create an internal variable that keeps track
of all of the units and gold on that side. At the end of the scenario, after
healing, etc, all units from a persistent side should be placed onto the same
recall list for that side, along with their gold. In any subsequent scenario
in which a [side] appears that has an identical save_id value, those units
should be placed on the recall list for that side, and their side= values
should be modified to reflect this. This includes the leader of the
persistent side, which should be recalled into the new scenario as
appropriate. Gold for the persistent side in the new scenario should be
calculated normally, using the gold for that side in the last scenario in
which it appeared, plus the bonus from that scenario, if appropriate,
adjusted to the minimum starting gold in the new scenario, if necessary.
persistent=yes should work even if the same save_id appears in two scenarios
but not in a scenario between them, and it should work whether or not the
side numbers are the same in the scenarios in which it appears.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13016>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs