I've tried doing that and I can't get it to work. I'm not the most advanced modder so I'm not even sure if I'm doing it right.
I've been trying all sorts of different things with the code for some time now and the closest I got was it saying that the character was crowned by himself as the Pope which makes no sense at all. It said "Crowned by Kaiser Karl. Below is the code that gave me the result. I pulled this code directly from Event HF.20372
Code:
effect = {
add_trait = crowned_by_pope
save_persistent_event_target = { name = coronation_priest_per scope = ROOT }
}
I've tried all sorts of different things to get it to say the Popes name, but non of them work and only leave the name part blank. I'm pretty sure it is a matter of replacing the ROOT.