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

                 Summary: creating [unit]to_variable=...: unit's side needs
to be defined in the scenario
                 Project: Battle for Wesnoth
            Submitted by: anonymissimus
            Submitted on: Tuesday 12/29/2009 at 17:16
                Category: Bug
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.10
        Operating System: Linux

    _______________________________________________________

Details:

The following code reproduces the problem:

[scenario]
...
# side 1 is the only side being defined
...
# uncommenting this side definition solves the problem:
#       [side]
#               side=2
#               controller=ai
#               no_leader=yes
#       [/side]
...
        [event]
                name=start
                [unit]
                        side=2
                        type=Troll
                        to_variable=Testtroll
                [/unit]
        [/event]
[/scenario]

console error message:
20091229 18:02:20 error general: Error while playing the game: game_error:
invalid side(2) found in unit definition

If we "won't fix" this, a warning about it should be added to the wiki, since
unit variables with sides not defined in the current scenario are in principle
allowed.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to