• 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

avee

Major
42 Badges
Aug 13, 2009
544
1
  • Hearts of Iron III: Their Finest Hour
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Cities in Motion
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Hearts of Iron III Collection
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Hearts of Iron: The Card Game
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
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.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
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.