Modifying the garrison list - How do I do it?

正在查看此主题的用户

DMcain

Veteran
When you mouse over a castle or town, you get a list of what's in there. Later in the game, when most castles and towns have a couple hundred prisoners, 3 or 4 lords and oodles of troops, this list gets quite long and doesn't fit on the screen (well, not my screen). What I would like to do is to truncate the prisoner list. As I don't really care who, or what, is held prisoner in a place. I prefer the list to give me a total count of how many from each faction are present in the castle. Or, if all else fails, remove the prisoner list all together, since the total number of prisoners is listed beside the town name. Here's my preferred list:

Curaw (### + ##)
Lord Pinhead (## + #)
Lord Knucklehead (## + #)

(Kerghit Khanate)

Garrison:
Lord Pinhead (##%)
Lord Knucklehead (##%)
Kerghit Lancers ##
Kerghit Archers ##
<etc>

Prisoners:  <I need the locations that calculate and display this part>
Commoners  ## (includes farmers, peasants, bandits, mercenaries, etc)
Kerghit Khanate  ##
Kingdom of Nords  ##
Kingdom of Rhodoks  ##
Kingdom of Swadia  ##
Kingdom of Vaegirs  ##

I've looked thru module_scripts.py and module_game_menus.py, the two most likely locations, trying to find where this list is generated and displayed, but am unable to find it. I will keep looking, but any help in this direction would be appreciated.

DMCain

p.s. - Hopefully, this isn't hard-coded into the game.

p.p.s. - I know I'm asking a lot of really weird and off the wall questions in this forum, but as I figure stuff out, they'll stop. I promise.
 
I sincerely doubt you could do it by faction, as troop types aren't by their nature tied to a faction (i.e. it would be easy to give Rhodok troops to the Khergit ith very simple modding and so on).
 
Jubal 说:
I sincerely doubt you could do it by faction, as troop types aren't by their nature tied to a faction (i.e. it would be easy to give Rhodok troops to the Khergit ith very simple modding and so on).

IF I could find where it is, I could probably figure out how to sort the list by faction with string manipulation. If the commands are available. Here are a few that look promising:

(store_troop_faction,<destination>,<troop_id>),
(str_store_faction_name,<string_register>,<faction_id>),
(str_store_faction_name_link,<string_register>,<faction_id>),

So, with those three commands, and a couple other string manipulations, it should be possible to sort and count prisoner list by faction. It all falls back on being able to find where the prisoners are counted, or if it's hard coded into the game. If i can't sort the list by Faction, I can at least get rid of it. Either way would greatly reduce screen clutter.

DMCain
 
后退
顶部 底部