Follow-up Comment #13, patch #2851 (project wesnoth):

The "name" of an [event] in WML is nothing like an ID - what it does is it
indicates which event the [event] is listening on.  Many [event]s will share
the same name, which just mean that they are responding to the same game
event.

Nearly every event also has a filter.  The filter uses boolean logic on just
about anything to determine whether the event should actually run.  If the
filter fails, the event doesn't run.

The IDs do solve the feeding problem because if you give an event an ID, any
duplicates of the event will have the same ID, and thus will be rejected. 
This solves the duplicate event problem.

Filters actually could solve the feeding problem - I proposed multiple
workarounds in the forum thread, and included one of them when I reported the
bug.  However, an ID-based fix makes perfect sense, and generally makes the
WML nicer.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2851>

_______________________________________________
  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