Serp
King
- Joined
- Apr 1, 2015
- Messages
- 661
Is it possible to change localization language strings during the game, eg. with lua?
I'm currently improving this mod https://forums.civfanatics.com/threads/civ-iv-traits-in-civ-v.530701/
This mod assigns 2 more character traits to every civilization, hardcoded in sql.
I added instead lua code that is distributing the traits randomly at the start of the game (via dummy policies and whowards bugfix).
The mod also hardcoded in sql a change in Leadernames, so that the Leadernames will show Icons next to them to indicate the new traits. But how do I add those icons to the leadernames now, after the game started and traits where randomly distributed?
Btw, is there any way to hook into a function? Eg. into the player:getName() or the Locale.ConvertTextKey ? This could be one solution, to add the icons to whatever getName returns, but I guess its not possible.
So maybe change databank entries directly, is this possible?
The last solution I can imagine is to change UI lua code files. But no clue which one I should choose, depending on installed mods like EUI or others, changes will be reverted or diploscreen is removed.
I'm currently improving this mod https://forums.civfanatics.com/threads/civ-iv-traits-in-civ-v.530701/
This mod assigns 2 more character traits to every civilization, hardcoded in sql.
I added instead lua code that is distributing the traits randomly at the start of the game (via dummy policies and whowards bugfix).
The mod also hardcoded in sql a change in Leadernames, so that the Leadernames will show Icons next to them to indicate the new traits. But how do I add those icons to the leadernames now, after the game started and traits where randomly distributed?
Btw, is there any way to hook into a function? Eg. into the player:getName() or the Locale.ConvertTextKey ? This could be one solution, to add the icons to whatever getName returns, but I guess its not possible.
So maybe change databank entries directly, is this possible?
The last solution I can imagine is to change UI lua code files. But no clue which one I should choose, depending on installed mods like EUI or others, changes will be reverted or diploscreen is removed.