Follow-up Comment #10, bug #8522 (project wesnoth):

Yes, you basically understand my fix.  There are three competing desires
here.  The first is to have unique descriptions for each unit so that the
unit is uniquely identifiable.  The second is to have it so that if a
scenario designer gives a unit a description but no user_description, the
description is used as the visible name.  The third is to have it possible to
have a nameless unit.

Without adding new tags into WML, it is not strictly speaking possible to
have all three.  Still, it is possible to have units with a space as a name,
which mostly accomplishes what you want.  I have modified the units.cfg and
names.cfg in revision 17440 to do just that for undead units.  If there are
other units or UMC units that have unique races with no names defined, their
type will still show up as the name until a similar change is made in WML.

It is likely that loading an old existing save game with a nameless unit(ie,
one with a user_description="" or no user_description) will result in the
unit getting a name=<type>.
I think that this is acceptable since this is an aesthetic problem not a
functional incompatability between saved games.  Does this change to use " "
for undead names meet your desire to have a nameless unit?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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