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

                 Summary: Weird event handling with multiple events, each
firing events
                 Project: Battle for Wesnoth
            Submitted by: jamit
            Submitted on: Sat 17 Aug 2013 05:00:30 PM EDT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: In Progress
                 Privacy: Public
             Assigned to: jamit
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11.5
        Operating System: Linux

    _______________________________________________________

Details:

I decided to make my units polite:

[event]
    name=sighted
    first_time_only=no

    [message]
        speaker=unit
        message="I have been sighted!"
    [/message]

    [fire_event]
        name=greet
    [/fire_event]

    [message]
        speaker=unit
        message="Greetings to you as well."
    [/message]
[/event]

[event]
    name=greet
    first_time_only=no

    [message]
        side=1
        canrecruit=yes
        message="I greet you."
    [/message]
[/event]


The idea is that every time a unit is sighted, they say hello. OK, not really.
The idea is to point out an odd way events can occur, and this happens to be a
nice way of demonstrating it. :) Currently, if two units are sighted upon
entering the same hex, the messages seen are:

unit 1: "I have been sighted!"
Unit 2: "I have been sighted!"

Leader: "I greet you."
Leader: "I greet you."

Unit 2: "Greetings to you as well."
Unit 1: "Greetings to you as well."

What I would expect is something that appears more as two distinct events, as
in:

unit 1: "I have been sighted!"
Leader: "I greet you."
Unit 1: "Greetings to you as well."

Unit 2: "I have been sighted!"
Leader: "I greet you."
Unit 2: "Greetings to you as well."

(This is another in my line of "bugs whose descriptions are too long for a
commit message".)




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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