Sooo I've been working on a small personal mod to replace title names with custom ones, and I'm failing miserably so I'm hoping a better coder than I can help me.
Essentially, I've defined in my localization folder names with always the same key_[title_name]="Name" structure:
And then I've defined the following scripting effect:
I then try to call event to iteratively rename all titles in my empire:
But somehow the substitution is not working and it just takes "this" as a literal string value, instead of the corresponding title it should refer to,, so I just rename all provinces to the literal string instead of the supposed reference:
Essentially, I've defined in my localization folder names with always the same key_[title_name]="Name" structure:
Code:
key_k_thessalonika:0 "Europa"
key_d_thrace:0 "Europa"
key_c_byzantion:0 "Constantinopolis"
Code:
rename_title_effect = { this = { set_title_name = key_$TITLE$ } }
Code:
roman_events.8 = {
hidden = yes
orphan = yes
immediate = {
hidden_effect = {
title:e_byzantium = { every_in_de_jure_hierarchy = { rename_title_effect = { TITLE = this } } }
}
}
}
