URL:
  <http://gna.org/bugs/?9342>

                 Summary: [variables] no longer work
                 Project: Battle for Wesnoth
            Submitted by: noyga
            Submitted on: samedi 16.06.2007 à 15:19
                Category: Bug
                Severity: 3 - Normal
                Priority: 4
              Item Group: WML
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.2.2 and above
        Operating System: all

    _______________________________________________________

Details:

In 1.2.1 and before we could define variable with a [variables] children tag
of [multiplayer].
This was used by a few UMC, in particular Roze's Creep War scenario with are
now broken.
Unlike [set_variable], this was a very convenient way to define large or
complex arrays, and one particular application of this was to define easily
waves from an array of possible random creeps. Doing the same with
[set_variable] is possible but is especially clumsy ([variables] is more
convenient to make a complex structure, and with [set_variables] you cannot
completely define an array, since the length would be 0, thus you must define
it by hand : this doesn't help to make arrays from wich you can random pick an
element ) ...

With some tests i found that it still works with 1.2.1 (and Roze's Maps Addon
uses this), but is broken in 1.2.2 and above. I suspect this bug is a side
effect of the new savegame format modifications that went in 1.2.2 and 1.3.x
as well.

Unfortunately while i have made such scenario i don't play them often play
them. Roze who made some other has been away from some time since this bug
was introduced. This explain this bug remained undetected for some time. 




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?9342>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to