Modifying the "language_name" attribute

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Choicerer
Posts: 214
Joined: April 29th, 2017, 11:37 pm

Modifying the "language_name" attribute

Post by Choicerer » December 8th, 2017, 11:23 am

Hi.
I'm trying to modify a unit type name in-game, via a modification. The unit attribute "language_name" is just that, it corresponds to "name" in their .cfg definitions. It can be stored in a container, it can be viewed in debug mode, but it appears it can't be modified (neither via unit language_name="Navy Seal" in debug mode nor [modify unit] language_name="Navy Seal" [/modify unit]). I need to do it in-game, because I want users to be able to play with the modification without having to download it. Am I doing something wrong or is there really no way to change the name of a unit type in-game?
Thanks.
Creator of Choicerer's Map Randomizer - http://bit.ly/2GNcnuv Better Odds - http://bit.ly/2HP41ln
The Better Names Mod - http://bit.ly/2ICIGwz Architecture Mod - http://bit.ly/2JjbNsN
Curse of Satan Claus - http://bit.ly/2pq6MSg The Trolling Mod - http://bit.ly/2GbpAiO
and the Mushroom Isar.

User avatar
Ravana
Moderator
Posts: 1746
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Modifying the "language_name" attribute

Post by Ravana » December 8th, 2017, 11:38 am

That attribute seems readonly. I suspect this can only be showed differently by using wesnoth.theme_items.

Choicerer
Posts: 214
Joined: April 29th, 2017, 11:37 pm

Re: Modifying the "language_name" attribute

Post by Choicerer » December 8th, 2017, 4:30 pm

That worked like a charm. Thanks!
Creator of Choicerer's Map Randomizer - http://bit.ly/2GNcnuv Better Odds - http://bit.ly/2HP41ln
The Better Names Mod - http://bit.ly/2ICIGwz Architecture Mod - http://bit.ly/2JjbNsN
Curse of Satan Claus - http://bit.ly/2pq6MSg The Trolling Mod - http://bit.ly/2GbpAiO
and the Mushroom Isar.

Post Reply