Druidic
Knight

So, buried in the OSP subforum is this thread, titled "Color Coded Messages". I had seen this in action on Prophesy of Pendor and other mods, and wanted to test it out.
I'm working on a personal (for now) project to learn a bit more about the module system, so I decided to use this mod. However, I noticed one step that confused me:
So, does that technically mean I have to go through ALL of the code in these files, find every message and add the appropriate script caller before it? If so, that seems very tedious, although I understand the process behind it.
Also, if there's a more recent version of this mini-mod, would someone link it to me? I doubt that this mod is the only version of color-coded messages we have on TaleWorlds...
I'm working on a personal (for now) project to learn a bit more about the module system, so I decided to use this mod. However, I noticed one step that confused me:
HardCode 说:Finally, do a search on "display_" in all module files that contain scripting code (ex. module_dialogs, module_scripts, module_game_menus), and call the script before displaying the message. Be sure to use the correct constant and entity as the script parameters. For example, in script "game_event_simulate_battle":
插入代码块:# HC - Select the message color based on the circumstances. reg20 holds the color. (call_script, "script_get_message_color", news_lord_captured, ":cur_troop_id"), (display_log_message, "str_hero_taken_prisoner", reg20), #(display_log_message, "str_hero_taken_prisoner"),
Some messages are obviously bad news, such as prisoners escaping, so apply the color constants directly to those messages. There is also a quest and faction related constant for messages when the Marshall changes or cattle are delivered. You'll have to find them and apply the color constants.
So, does that technically mean I have to go through ALL of the code in these files, find every message and add the appropriate script caller before it? If so, that seems very tedious, although I understand the process behind it.
Also, if there's a more recent version of this mini-mod, would someone link it to me? I doubt that this mod is the only version of color-coded messages we have on TaleWorlds...
