• 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.
Showing developer posts only. Show all posts in this thread.
First of all, please put your code in code formast like this:

Code:
decisions = {
	disband_realm_levy = {
		is_high_prio = yes
		potential = {
			NOT = { has_character_flag = levy_disband_enacted }
			NOT = { has_character_modifier = levy_disbanded }
			OR = {
				title = e_byzantium
			}
		}
		allow = {
			age = 16
			prestige = 1000
			not = { wealth = 300 }
		}
		effect = {
			set_character_flag = levy_disband_enacted
			prestige = 100
			gold = 1000
			add_character_modifier = {
				name = levy_disbanded
				duration = 7300
			}
			hidden_tooltip = {
				any_vassal = {
					reverse_opinion = {
						modifier = peace_in_our_time
						who = ROOT
						years = 5
					}
					add_character_modifier = {
						name = levy_disbanded_vassal
						duration = 7300
					}
					OR = {
						tier = baron
						not = { num_of_vassals = 1 }
					}
				}
				character_event = { id = 2001011 days = 20 } # End result disband levy
				any_vassal = {
					limit = {
						prisoner = no
						or = {
							tier = count
							tier = duke
							tier = king
						}
						num_of_vassals = 1
					}
					character_event = { id = 2001001 }
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				war = no
				wealth = 300
				scaled_wealth = 0.1
			}
			modifier = {
				factor = 0
				war = no
				OR = {
					any_vassal = {
						not = { opinion = { who = ROOT value = 0 } }
						not = { tier = baron }
					}
					not = { prestige = 50 }
				}
			}
		}
	}
}

Makes it much easier for us to read. And makes it easier to spot the errors. And you have a number of weird things here.

1. There's an OR = {} in the potential but only one condition in it. And that trigger is in the wrong scope. It should be primary_title = { title = e_byzantium }
2. In effect you have a any_vassal where you add an opinion and an modifier. But there's also an out-of-place OR = {} trigger there. If that is meant to filter out what vassals should get the effects, it needs to be put inside a limit = {} trigger immediately after any_vassal.