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.

Modifying the "language_name" attribute

Postby 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 The Better Names Mod - viewtopic.php?f=15&t=47658
Curse of Satan Claus - viewtopic.php?f=15&t=47692
Randomized Isar's Cross Map Pack - viewtopic.php?f=15&t=46767
And the Mushroom Isar Map Pack.
Choicerer
 
Posts: 75
Joined: April 29th, 2017, 11:37 pm

Re: Modifying the "language_name" attribute

Postby Ravana » December 8th, 2017, 11:38 am

That attribute seems readonly. I suspect this can only be showed differently by using wesnoth.theme_items.
User avatar
Ravana
Moderator
 
Posts: 1504
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Modifying the "language_name" attribute

Postby Choicerer » December 8th, 2017, 4:30 pm

That worked like a charm. Thanks!
Creator of The Better Names Mod - viewtopic.php?f=15&t=47658
Curse of Satan Claus - viewtopic.php?f=15&t=47692
Randomized Isar's Cross Map Pack - viewtopic.php?f=15&t=46767
And the Mushroom Isar Map Pack.
Choicerer
 
Posts: 75
Joined: April 29th, 2017, 11:37 pm


Return to WML Workshop

Who is online

Users browsing this forum: No registered users and 3 guests