[Interface] When a Horseman becomes a Knight

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Locked
ktchong
Posts: 13
Joined: November 14th, 2011, 5:31 am

[Interface] When a Horseman becomes a Knight

Post by ktchong »

The game should automatically add the title "Sir" in front of the unit's name. :D
User avatar
Pentarctagon
Project Manager
Posts: 5561
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: [Interface] When a Horseman becomes a Knight

Post by Pentarctagon »

Moved to the Ideas forum.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pewskeepski
Posts: 378
Joined: November 17th, 2010, 6:24 pm
Location: An icy dungeon beneath Antarctica

Re: [Interface] When a Horseman becomes a Knight

Post by Pewskeepski »

That would be cool, but I'm not sure how easy I'd be to implement.
"Everything is better with penguins."
Creator of Burning Souls, The Fall of Wesnoth (abandoned) and Adventures of Knighthood (now available on BfW 1.15!)
User avatar
Boldek
Posts: 576
Joined: April 14th, 2011, 6:37 pm

Re: [Interface] When a Horseman becomes a Knight

Post by Boldek »

That would be awesome! :D
Guys I never thought I'd come back to this forum after 8 years this is wild
Ceres
Forum Regular
Posts: 620
Joined: September 18th, 2010, 7:56 pm
Location: Germany

Re: [Interface] When a Horseman becomes a Knight

Post by Ceres »

Couldn't you do that with plain WML? Something like this?

Code: Select all

[event]
   name=post advance
   first_time_only=no
   [filter]
      type=Knight
   [/filter]
   [modify_unit]
      [filter]
         id=$unit.id
      [/filter]
      name="Sir " + $unit.name
   [/modify_unit]
[/event]
User avatar
Elvish_Hunter
Posts: 1575
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: [Interface] When a Horseman becomes a Knight

Post by Elvish_Hunter »

ktchong wrote:The game should automatically add the title "Sir" in front of the unit's name. :D
May I ask why should it? :?
Ceres wrote:Couldn't you do that with plain WML? Something like this?

Code: Select all

[event]
   name=post advance
   first_time_only=no
   [filter]
      type=Knight
   [/filter]
   [modify_unit]
      [filter]
         id=$unit.id
      [/filter]
      name="Sir " + $unit.name
   [/modify_unit]
[/event]
Yes, it CABD in WML. Although there may be two issues:
- the translation mark before "Sir " is missing; and anyway, I suspect that several languages lack a translation for that title
- what if, due to a campaign's plot, that Horseman already has the "Sir" title?
In conclusion, ktchong, feel free to do it in your campaign or add-on, but I'm pretty sure that this is not going to happen in mainline.
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
User avatar
Iris
Site Administrator
Posts: 6798
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: [Interface] When a Horseman becomes a Knight

Post by Iris »

Elvish_Hunter wrote:- the translation mark before "Sir " is missing; and anyway, I suspect that several languages lack a translation for that title
Concatenating strings where at least one of them is meant to be translatable should be done sparingly, in general, in case they need to be translated to languages that require reordering or merging words. (See this too.)
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
ktchong
Posts: 13
Joined: November 14th, 2011, 5:31 am

Re: [Interface] When a Horseman becomes a Knight

Post by ktchong »

Elvish_Hunter wrote:In conclusion, ktchong, feel free to do it in your campaign or add-on, but I'm pretty sure that this is not going to happen in mainline.
I already manually changed the names of my Sir Knights. Just a suggestion; thought it would be nifty and impressive if players (who pay attention to details) see their upgraded Knights would also gain the new title.
User avatar
Xudo
Posts: 563
Joined: April 3rd, 2009, 5:26 pm

Re: [Interface] When a Horseman becomes a Knight

Post by Xudo »

Dixie wrote:When do you really look at unit names, anyway? :P
Copyright: http://forums.wesnoth.org/viewtopic.php ... 91#p512613
uncleshelby
Posts: 427
Joined: May 10th, 2011, 7:20 pm

Re: [Interface] When a Horseman becomes a Knight

Post by uncleshelby »

With WML, you could make it check if the name starts with "Sir", and then change the name from that, right?
Timshel
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: [Interface] When a Horseman becomes a Knight

Post by Gambit »

Denied.
Locked