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

sergeant113

Second Lieutenant
3 Badges
Jul 21, 2011
197
0
  • Crusader Kings II
  • Europa Universalis IV
  • 500k Club
This is my attempt in writing a Byz-unique decision. Somehow, I can't get it to show up in the intrigue tab. I get no error pop up at all. Please help!! I also attach the file along.

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 }
}
}
}
}
}
 

Attachments

  • Disband thematic levy decision.txt
    1,5 KB · Views: 1
Hm. Can`t see any obvious mistake here. Try removing all "potential" conditions and see what happens. If decision shows up, add conditions one by one to find the source of your problem.
 
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.