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

                 Summary: Recruited unit is visible during prerecruit event
                 Project: Battle for Wesnoth
            Submitted by: shadowmaster
            Submitted on: Wednesday 04/23/2008 at 18:06
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Graphics
                  Status: None
                 Privacy: Public
             Assigned to: boucman
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.4.1+svn
        Operating System: Any

    _______________________________________________________

Details:

A unit recruited by the user is visible during a dialogue which takes place
during its prerecruit event. After the dialogue finishes, the unit's recruit
animation (the default fade-in for this case) triggers and the recruit WML
event dialogue occurs afterwards. The problem is that (according to boucman)
"the unit should be created but hidden before the "prerecruit" event".

Event WML:

    [event]
        name=prerecruit
        [filter]
            side=1
            type=Elvish Warrior Spirit
        [/filter]
#         [hide_unit]
#             x=$x1
#             y=$y1
#         [/hide_unit]
#         {REDRAW}
        {MSG_SPEAKER (Mal Keshar) ( _ "Come back to this world, from your
eternal dream of battles, elvish hero of long past times! I call upon
you!")}
        {MSG_SPEAKER (Galas) ( _ "What?")}
        {SCROLL_TO $x1 $y1}
#         [unhide_unit]
#         [/unhide_unit]
    [/event]

    [event]
        name=recruit
        [filter]
            side=1
            type=Elvish Warrior Spirit
        [/filter]
        {REDRAW}
        {DELAY 500}
        {MSG_SPEAKER unit ( _ "At your orders, masters!")}
        {MSG_SPEAKER (Galas) ( _ "But, but, it's an elven warrior! Quite pale
and... translucid, though. What is this, Mal Keshar?")}
        {MSG_SPEAKER (Mal Keshar) ( _ "This, my 'friend', is a he, one of
your kinsmen. In contrast with most of my minions, this elvish spirit does
not fight unwillingly; he has been following you all this time, and whilst
not having the power to materialize by himself, he has been waiting for the
oportunity to fight for you once again; he just needed a little help from an
expert like me.")}
        {MSG_SPEAKER (Galas) ( _ "Are you saying that he has his own will,
then?")}
        {MSG_SPEAKER (Mal Keshar) ( _ "Exactly. Note that these spirits are
stronger and deadlier when fighting in forests; unfortunately, I'm not sure
whether there are any left for this purpose.")}
        {SCROLL_TO $x1 $y1}
    [/event]


This is the unit WML:
http://wesnoth-umc-dev.svn.sourceforge.net/viewvc/wesnoth-umc-dev/branches/1.4/Invasion_from_the_Unknown/units/undead/Elvish_Spirit_Warrior.cfg?view=markup

The only animation it overrides is the standing one, so I don't think it's a
fault from the WML code side.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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