Thanks once again, Nivve! The "'any_vassal = { has_landed_title = xxx } " did the trick
Now just one last question, since we're very very close to actually finishing a working first version of mod, and I think this is the last complicated bit of scripting I need to do for a while.
Once the province has been conquered, and the people fled, I need to get rid of the nobles as well. I need Sauron to usurp the titles of all vassals of a certain religious group...
I've been trying now for hours, and this was my best shot, but it still doesn't usurp the titles:
Code:
option = {
name = "Kill them all!"
any_realm_character = {
limit = {
OR = {
religion = religion_dunedain
religion = religion_moriquendi
religion = religion_calaquendi
religion = religion_mahal
religion = religion_rhovanion
}
NOT = { trait = evil_side }
}
character_event = { id = conflict.8 }
any_realm_title = {
usurp_title = ROOT
}
}
}
They get the character event, but their titles don't get usurped.
I've also tried on the other end where the vassal receives the message, to put:
Code:
option = {
name = "Curses!"
banish = yes
any_realm_title = {
usurp_title = FROM
}
}
But the character only gets banished, the title isn't usurped. Can anyone spot what's wrong here?