Menu

#9 Problems when making unit-upgrade.

closed-fixed
nobody
None
5
2005-02-23
2005-01-30
No

DefineModifier("upgrade-dwarves-swordman",
{"apply-to", "unit-dwarves-warrior"}, {"convert-to",
"unit-dwarves-swordman"})

If you make upgrade like that, it causes some strange
things. Example you cannot train upgraded version of
unit. If you need more information, try upgrading yourself.

Discussion

  • Russell Smith

    Russell Smith - 2005-02-06

    Logged In: YES
    user_id=361841

    Have you defined a button with the correct requirements at
    the location where the unit is trained.

    Look at a knight/paladin conversion is wargus, or the worker
    ant upgrade in magnant. Both of these upgrade the unit,
    then apply a new button to the button panel to train the
    upgraded unit.

    DefineButton( { Pos = 4, Level = 0, Icon = "icon-knight",
    Action = "train-unit", Value = "unit-knight",
    Key = "k", Hint = "TRAIN ~!KNIGHT",
    ForUnit = {"unit-human-barracks"} } )

    DefineButton( { Pos = 4, Level = 0, Icon = "icon-paladin",
    Action = "train-unit", Value = "unit-paladin",
    Key = "p", Hint = "TRAIN ~!PALADIN",
    ForUnit = {"unit-human-barracks"} } )

     
  • Kimmo Merikivi

    Kimmo Merikivi - 2005-02-09

    Logged In: YES
    user_id=1140447

    I think I've done this that way. But problem is that there
    is still "knight" icon. I can train paladins if I put icon
    to different place (Pos).

    Problem appeared when I ported BfM to use Stratagus CVS.

     
  • Kimmo Merikivi

    Kimmo Merikivi - 2005-02-23

    Logged In: YES
    user_id=1140447

    Jarod42's Stratagus commit yesterday fixed problem.

     
  • Kimmo Merikivi

    Kimmo Merikivi - 2005-02-23
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB