John McNabb <[EMAIL PROTECTED]>:
> AIO has a "die" event in it for the bad guys, but it does not have an
> endlevel tag inside the event.
> Two brothers, does:
>         [endlevel]
>             result=victory
>             bonus=yes
>         [/endlevel]
> Thus, in AIO, the victory is declared by the default check on whether
> the sides have leaders, whereas in Two brothers the victory condition
> is set inside the event, thus throwing the end_of_level exception...

Yeah, I'd say that confirms it.

I've looked into this, and it isn't going to be trivial to fix.  The
problem is that simply moving the firing of the the die event to after
the unit is deleted would solve this problem, but would make the unavailable 
to find by description when you're scripting death speeches.

I suppose we could have the victory and defeat events do a scavenging pass
that would look for units with HP <= 0 and delete them.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

_______________________________________________
Wesnoth-dev mailing list
Wesnoth-dev@gna.org
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to