what is wrong with this event? i really dont know what i am doing, if you can tell.
Code:
# event made so their is more variety to laws in game
character_event = { #ai to picks new goverment
id = 24300
picture = "event_law"
trigger = {
condition = { type = not value = { type = form_of_goverment value = knight_order }}
condition = { type = not value = { type = form_of_goverment value = republican }}
condition = { type = not value = { type = form_of_goverment value = ecclestical }}
condition = { type = ai }
condition = { type = ruler }
}
mean_time_to_happen = {
months = 6
}
action_a = { #Sets law to Royal Prergative
ai_chance = 25
effect = { type = set_law value = Royal_Prergative }
}
action_b = { #sets law to feual contract
ai_chance = 25
effect = { type = set_law value = Feudal_contract }
}
action_c = {#sets law to traditional custom
ai_chance = 25
effect = { type = set_law value = Traditional_custom }
}
action_d = {#sets law to popual law
ai_chance = 25
effect = { type = set_law value = popual_law }
}
}
}
character_event = { #ai to picks new religius authority
id = 24301
picture = "event_law"
trigger = {
condition = { type = not value = { type = form_of_goverment value = knight_order }}
condition = { type = not value = { type = form_of_goverment value = republican }}
condition = { type = not value = { type = form_of_goverment value = ecclestical }}
condition = { type = ai }
condition = { type = ruler }
}
mean_time_to_happen = {
months = 6
}
action_a = { #Sets law to Regal Supremacy
ai_chance = 25
effect = { type = set_law value = Regal_Supremacy }
}
action_b = { #sets law to Monastic Supremacy
ai_chance = 25
effect = { type = set_law value = Monastic_Supremacy }
}
action_c = {#sets law to Ecclesical Balance
ai_chance = 25
effect = { type = set_law value = Ecclesical_Balance }
}
action_d = {#sets law to church supremacy
ai_chance = 25
effect = { type = set_law value = church_supremacy }
}
}
}
character_event = { #ai to picks new inherit law
id = 24302
picture = "event_law"
trigger = {
condition = { type = not value = { type = form_of_goverment value = knight_order }}
condition = { type = not value = { type = form_of_goverment value = republican }}
condition = { type = not value = { type = form_of_goverment value = ecclestical }}
condition = { type = ai }
condition = { type = ruler }
}
mean_time_to_happen = {
months = 6
}
action_a = { #Sets law to Salic Primogeniture
ai_chance = 14
effect = { type = set_law value = Salic_Primogeniture }
}
action_b = { #sets law to Semisalic Primogeniture
ai_chance = 14
effect = { type = set_law value = Semisalic_Primogeniture }
}
action_c = {#sets law to Salic Consanguinity
ai_chance = 14
effect = { type = set_law value = Salic_Consanguinity }
}
action_d = {#sets law to Semisalic Consanguinity
ai_chance = 14
effect = { type = set_law value = Semisalic_Consanguinity }
}
action_e = {#sets law to salic gavelkind
ai_chance = 15
effect = { type = set_law value = salic_gavelkind }
}
action_f = {#sets law to Semisalic gavelkind
ai_chance = 15
effect = { type = set_law value = Semisalic_gavelkind }
}
action_g = {#sets law to elective law
ai_chance = 14
effect = { type = set_law value = elective_law }
}
}
}