Crusader Kings III

Crusader Kings III

Configurable News Feed - Updated & Reuploaded
Morven  [developer] 26 Feb, 2022 @ 6:19am
Other Notifications
Some quick untested code to add a message on a building being completed within your realm. Save in a common\on_action\ folder structure:
on_building_completed = { effect = { if = { limit = { #May not pick up buildings built by barons in your own counties county.holder = { any_liege_or_above = { is_ai = no } } } every_player = { send_interface_message = { type = msg_building_done title = msg_building_done desc = msg_building_done_desc right_icon = scope:county.holder } } } } }

Note I've hijacked a vanilla message used by the hardcode, that may not work. If it doesn't you'd have to write your own message, copying the form from \common\messages\00_messages.txt , giving it it's own new "type", and maybe its own loc (although using those vanilla loc keys should work), and saved in the common\messages\ folder structure.

This makes a vanilla message that Configurable News Feed will pick up and reroute into its custom window. To do it properly as an option within the custom gui of Configurable Newsfeed is a bit harder and requires some gui modding which I'm not completely on top of yet.
Last edited by Morven; 26 Feb, 2022 @ 6:28am
< >
Showing 1-1 of 1 comments
FunGaming44  [developer] 29 May, 2023 @ 4:34am 
Would be more usefull if we had an option to turn the message off for building complete specially if we use mods that builds a lot of buildings.
< >
Showing 1-1 of 1 comments
Per page: 1530 50