• 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.

Hardradi

Lt. General
34 Badges
Apr 20, 2008
1.450
7
  • Crusader Kings II
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Prison Architect
  • For the Motherland
  • Divine Wind
  • Deus Vult
  • Europa Universalis III Complete
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
Hi All,

I need to call in the big guns on this one, the trigger has got me beat. :confused:

The first "country" part of the trigger fires ok as I can see its green in the consol, but the second "any_character" part (in italics) does not fire.

Code:
character_event = {

	id = 180010

	trigger = {
		country = {
			tag = SPA
			has_law = rhetra_agoge_law
			any_character = {
				or = {
					has_title = title_agiad_family 
					has_title = title_eurypontid_family
				}
				has_title = title_agoge1_paides
				not = { has_character_flag = tis_edu_agoge1 }
				age = 8 # 12
				NOT = { age = 18 }
			}
		}
		[I]any_character = {
			or = {
				has_title = title_agiad_family 
				has_title = title_eurypontid_family
			}
			has_title = title_agoge1_paides
			not = { has_character_flag = tis_edu_agoge1 }
			age = 8 # 12
			NOT = { age = 18 }
		}[/I]
	}

	mean_time_to_happen = {
		days = 1 # months = 3
	}

	title = "Agoge Paides"
	desc = "When a boy reached his seventh birthday, he was enrolled in the agoge under the authority of the paidonómos or "boy-herder", a magistrate charged with supervising education."

	option = {
		name = "Focus on self control and discipline."

		random_child = {
			limit = {
				age = 8 # 12
				has_title = title_agoge1_paides
				not = { has_character_flag = tis_edu_agoge1 }
			}
			set_character_flag = tis_edu_agoge1
			set_character_flag = tis_edu_agoge1A
		}
	}

	option = {
		name = "Break the boys spirit."

		random_child = {
			limit = {
				age = 8 # 12
				has_title = title_agoge1_paides
				not = { has_character_flag = tis_edu_agoge1 }
			}
			set_character_flag = tis_edu_agoge1
			set_character_flag = tis_edu_agoge1B
		}
	}
}

Basically I want it to run for anyone with either the eurypontid title or agiad title and who:
- has the agoge1_paides title; and
- doesnt have the tis_edu_agoge1 flag

Can anyone tell me what is going on, I must be missing something here ? :)

Are the character_events only designed to fire for the ruler in the first instance ?
 
It really depends on on what you want this event to do, but the any_character scope does not make sense where you put it regardless of objective.

If you want the event to fire for a character who fulfills the criteria you need to do as Descartes wrote and remove the any_character switch since this only works from the country scope. If you want it to fire for a random character when a character (who might be the one the event fires for and might not be) fulfills the criteria then you need to put it into the country scope.

Character events fires for all characters but you only get to see them and make choices when they fire for the ruler and his immediate family (not sure how far it extends though - at least to the children).
 
This is a character event, so you shouldn't use any_character unless you want it to trigger randomly. Just go straight for the character triggers. :)

Thanks for the reply. I have tried going straight to the character triggers but for some reason, two of them stop firing:

has_title = title_agoge1_paides
age = 8 # 12

They work fine when its enclosed in the country switch.

I might try making the title give a flag.
 
It really depends on on what you want this event to do, but the any_character scope does not make sense where you put it regardless of objective.

If you want the event to fire for a character who fulfills the criteria you need to do as Descartes wrote and remove the any_character switch since this only works from the country scope. If you want it to fire for a random character when a character (who might be the one the event fires for and might not be) fulfills the criteria then you need to put it into the country scope.

Character events fires for all characters but you only get to see them and make choices when they fire for the ruler and his immediate family (not sure how far it extends though - at least to the children).

Thanks for the reply.

When its in the country scope the actual character its firing for does not appear, the ruler picture appears.

I tried random_character from country scope but it failed.

Does major_character = yes have any effect ?

Is the any_child switch only for the rulers kids or should I go any_character to pick up the parent and then any_chiild to pick up his kid ?
EDIT: tried this and it still picks up the ruler.
 
After looking through the entire event (not just the trigger) it occurred to me why this event might not work. In its current form it triggers for anybody but because of the limits on the options, nothing will happen unless the event randomly fires for a character, who actually has a child fitting the limits.

So here is my suggestion for the trigger code based on what happens in the options:

Code:
	trigger = {
		country = {
			tag = SPA
			has_law = rhetra_agoge_law
		}
		any_child = {
			or = {
				has_title = title_agiad_family 
				has_title = title_eurypontid_family
			}
			has_title = title_agoge1_paides
			not = { has_character_flag = tis_edu_agoge1 }
			age = 8 # 12
			NOT = { age = 18 }
		}
	}

If you trigger a character event manually it will always trigger for your ruler, so naturally his picture will appear.

It is my experience that major_character = yes just gives you an announcement that the event has trigger for someone, it does not give control over the options.

any_child should work for any character with children and if you want to go from a child to the parents there are a mother and father switch for that.

Admittedly I have not spent much time with character events, so I am not entirely sure about what works as intended and what in the usual paradoxian fashion might not :)