• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(104979)

Recruit
6 Badges
Jun 20, 2008
9
0
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Warlock: Master of the Arcane
I am trying to change some of the dynamics of the republican form of government, but is having difficulties with some of the events. More specifically, I want to create an event that automatically removes any character from command (general or admiral) when that character is no longer a consul. The event I have made so far, does work in terms of triggering when the consul loses his position. However it fails to remove the person from his command. Hope some of you can help me, I would really appreciate it.
 
I have tried different approaches to the problem, my last two attempts have been the following event files:

Code:
character_event = {
	id = 990105

	trigger = {
		country = {
			government = republic
		}
			in_command = yes
			is_ruler = no
			has_title = title_general
			NOT = { has_title = title_second_consul }
	}
	
	mean_time_to_happen = {
		days = 1
	}
		
	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
		remove_from_unit = yes
		}
		random_character = {
			limit = {
			in_command = no
			OR = {
				is_ruler = yes
				has_title = title_second_consul
			}
			}
			assign_to_unit = yes
		}
	}
}

And

Code:
country_event = {
	id = 990105

	trigger = {
		government = republic
		any_character = {
			in_command = yes
			is_ruler = no
			has_title = title_general
			NOT = { has_title = title_second_consul }
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
		
	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 }
		random_character = {
			limit = {
			in_command = yes
			is_ruler = no
			has_title = title_general
			NOT = { has_title = title_second_consul }
			}
			remove_from_unit = yes
		}
		random_character = {
			limit = {
			in_command = no
			OR = {
				is_ruler = yes
				has_title = title_second_consul
			}
			}
			assign_to_unit = yes
		}
	}
}

The trigger seems to work fine (the event triggers at the right moment), however in all of my attempts the event seems to have no effect.
 
Personally, I really dislike the MTTH system, it's far too random for my tastes (is it also your intention to have every general who is not the second consul removed from his position? That's what your triggers would do, as far as I can see). What I'd do to trigger your event is set it as a "lose_effect" for the title_second_consul. It would look something like this:

Code:
	lose_effect = {
		limit = {
			in_command = yes
		}
		character_event = 990105
	}
That way, the event will always trigger as soon as a character who is in command loses the title. Then, I'd modify the event to be like this:

Code:
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".
			}
		}
	}
}
So it looks like there were a couple of thing stopping the effects from working: the close curly bracket would have caused the event to stop its effects before it got to the second character (as well as a few other problems, I'm sure) and the "assign_to_unit = yes" would have also had issues. I'm not 100% sure on the FROM argument, if it doesn't work you can try making another character_event and just have the effects of this one trigger it (replace the "assign_to_unit" bit with "character_event = X") and use a THIS argument instead.

Hope that helps.