character_event = {
id = 990105
is_triggered_only = yes
title = "Consul, stand down"
desc = "You are no longer the Consul, will you give up control of the army?"
option = {
name = "Of course I will..."
# ai_chance = { factor = 100 }
# remove_title = title_general
# give_title = title_ex_general <--- These title changes should happen automatically when you use the remove_from_unit command, so are unnecessary.
remove_from_unit = yes
# } <--- Not sure what this bracket is doing here. Remove it.
country = { #<--- Remember that when going from a character event you have to change the scope back to the country before you can go to another character scope (like random_character).
random_character = {
limit = {
# in_command = no <--- Not really needed.
OR = {
is_ruler = yes
has_title = title_second_consul
}
remove_from_unit = yes #<--- This just makes sure the target character is removed from whatever other position he had before the event, prevents him from having two positions.
assign_to_unit = FROM #<--- It looks like assign_to_this commands only accept "THIS" and "FROM" arguments, rather than "yes".
}
}
}
}