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

                 Summary: addition of "before death" event
                 Project: Battle for Wesnoth
            Submitted by: turin
            Submitted on: Sunday 11/25/2007 at 23:43
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.3.11+svn
        Operating System: all

    _______________________________________________________

Details:

>From a wesnoth-dev message...

--
I've long thought it would be useful to have a before-animation death even
and then an after-animation death event. Often you want dialogue with the
dying character, and it really doesn't make sense for the death animation to
fire _before_ his dialogue... what, is he speaking from beyond the grave?
But, you also often want dialogue unrelated to the character, in which case
you probably want the death animation firing first, instead of randomly at
the end of the dialogue - "oh, right, this dialogue was because we just
killed the bay guy".

In fact, often you want both of them - you want the bad guy to say "argh, my
comrades will avenge me", then for him to fall down dead, then for the heroes
to discuss their plans for the next scenario or whatever. This can't be done
easily ATM, as far as I know, but it would be easy to do with this change -
you just have a "before death" event and a "die" event, in the "before death"
event you have the enemy leader's dialogue, in the "die" event you have
everything that happens _after_ the death animation of the enemy leader. In
between is the actual death of the leader, which occurs exactly as normal -
this is where the death animation occurs, where the unit with the kill levels
up, if applicable, etc.
--

So - I imagine it would go something like this; the current WML

[event]
    name=die
    [filter]
        description=Enemy Leader
    [/filter]
    [message]
        description=Enemy Leader
        message= _ "Argh! I die!"
    [/message]
    [message]
        description=Hero
        message= _ "Where to now, Mentor?"
    [/message]
    [message]
        description=Mentor
        message= _ "To the hidden caves."
    [/message]
    [endlevel]
        result=victory
    [/endlevel]
[/event]

would become

[event]
    name=before death
    [filter]
        description=Enemy Leader
    [/filter]
    [message]
        description=Enemy Leader
        message= _ "Argh! I die!"
    [/message]
[/event]
[event]
    name=die
    [filter]
        description=Enemy Leader
    [/filter]
    [message]
        description=Hero
        message= _ "Where to now, Mentor?"
    [/message]
    [message]
        description=Mentor
        message= _ "To the hidden caves."
    [/message]
    [endlevel]
        result=victory
    [/endlevel]
[/event]




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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