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.
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"} } )
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.
Logged In: YES
user_id=1140447
Jarod42's Stratagus commit yesterday fixed problem.