################################################################################
### Contains events that are intended for use in the Better Mystic Mod ###
################################################################################

namespace = BM

# .100 Learn Summon
character_event = {
	id = BM.100
	desc = BM100
	picture = GFX_evt_book_carolingian_script
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			intrigue = 20
            has_focus = focus_scholarship
            NOT = {
				Or = {
					has_character_modifier = bmlearn_summon
					has_character_modifier = bm_summoner
					has_character_modifier = bm_wizard
                    }
		        }
            }

		mean_time_to_happen = {
                years = 3
		}

	option = {
		name = BM100A
		add_character_modifier = {
			name = bmlearn_summon
			duration = -1
			}
		}
	option = {
		name = BM100B
		tooltip_info = zealous
		trigger ={
			trait = zealous
		}
	}
}

# .101 Try to summon
character_event = {
	id = BM.101
	desc = BM101
	picture = GFX_evt_mysterious_forest
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
            has_character_modifier = bmlearn_summon
            NOT = {
				Or = {
					has_character_modifier = bm_summoner
					has_character_modifier = bm_wizard
					has_character_modifier = bm_loong
					has_character_modifier = cat_familiar
					has_character_modifier = raven_familiar
					has_character_modifier = owl_familiar
					has_character_modifier = wolf_familiar
					}
		        }
            }

		mean_time_to_happen = {
                years = 3
		}
	
	option = {
		name = BM101A
		hidden_effect = {
			add_character_modifier = {
				name = summon_familiar_cooldown
				years = 5
				hidden = yes
			}
			character_event = { id = BM.102 }
		}
	}

	option = {
		name = BM101B
	}
}
	
# .102 Summon Familiar
character_event = {
	id = BM.102
	desc = BM102
	picture = GFX_evt_mysterious_forest
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	immediate = {
		remove_character_modifier = cat_familiar
		remove_character_modifier = raven_familiar
		remove_character_modifier = owl_familiar
		remove_character_modifier = wolf_familiar
	}

	#Intrigue (cat)
	option = {
		name = EVTOPTA_MNM_7815

		add_character_modifier = {
			name = cat_familiar
			duration = -1
		}
	}

	#Martial (wolf)
	option = {
		name = EVTOPTB_MNM_7815

		add_character_modifier = {
			name = wolf_familiar
			duration = -1
		}
	}

	#Owl (learning)
	option = {
		name = EVTOPTC_MNM_7815

		add_character_modifier = {
			name = owl_familiar
			duration = -1
		}
	}
	
	#Raven familiar
	option = {
		name = EVTOPTD_MNM_7815

		add_character_modifier = {
			name = raven_familiar
			duration = -1
		}
	}
}

# .103 Summon Loong
character_event = {
	id = BM.103
	desc = BM103
	picture = GFX_evt_garden
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
            has_character_modifier = bmlearn_summon
			learning = 24
			Or = {
				culture = han
				culture = khitan
				culture = jurchen
				religion = taoist
			}
            NOT = {
				Or = {
					has_character_modifier = bm_summoner
					has_character_modifier = bm_wizard
					has_character_modifier = bm_loong
					has_character_modifier = cat_familiar
					has_character_modifier = raven_familiar
					has_character_modifier = owl_familiar
					has_character_modifier = wolf_familiar
					}
		        }
            }

		mean_time_to_happen = {
				years = 5
		}
	
	option = {
		name = BM103A
		add_character_modifier = {
			name = bm_loong
			duration = -1
		}
	}
}
	
# .104 Become Summoner
character_event = {
	id = BM.104
	desc = BM104
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = bmlearn_summon
			Or = {
				has_character_modifier = bm_loong
				has_character_modifier = cat_familiar
				has_character_modifier = raven_familiar
				has_character_modifier = owl_familiar
				has_character_modifier = wolf_familiar
			}
			NOT = {
				Or = {
					has_character_modifier = bm_summoner
					has_character_modifier = bm_wizard
				}
			}
		}

		mean_time_to_happen = {
			years = 2
		}

		immediate = {
			remove_character_modifier = bmlearn_summon
		}

	option = {
		name = BM104A
		add_character_modifier = {
			name = bm_summoner
			duration = -1
		}
	}
}

# .105 Cat Transform
character_event = {
	id = BM.105
	desc = BM105
	picture = GFX_evt_meeting_hf
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = cat_familiar
			Or = {
				has_character_modifier = bm_summoner
				has_character_modifier = bm_wizard
			}
			NOT = {
				has_character_modifier = bm_familiar_transform
			}
		}

		mean_time_to_happen = {
			years = 12
		}

		immediate = {
			remove_character_modifier = cat_familiar
		}

	option = {
		name = BM105A
		add_character_modifier = {
			name = bm_familiar_transform
			duration = -1
			hidden = yes
		}
		
		create_character = {
			age = 16
			female = yes
			religion = ROOT
			culture = ROOT
			dynasty = NONE
			trait = elusive_shadow
			trait = fair
			trait = quick
			trait = bmfamiliar
			trait = schemer
			trait = celibate
		}
		
		new_character = {
			give_job_title = job_spymaster
			opinion = {
				modifier = opinion_my_servant
				who = ROOT
				years = 700
			}
			reverse_opinion = {
				modifier = opinion_my_master
				who = ROOT
				years = 700
			}
		}
	}
}

# .106 Wolf Transform
character_event = {
	id = BM.106
	desc = BM106
	picture = GFX_evt_meeting_hf
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = wolf_familiar
			Or = {
				has_character_modifier = bm_summoner
				has_character_modifier = bm_wizard
			}
			NOT = {
				has_character_modifier = bm_familiar_transform
			}
		}

		mean_time_to_happen = {
			years = 12
		}

		immediate = {
			remove_character_modifier = wolf_familiar
		}

	option = {
		name = BM106A
		add_character_modifier = {
			name = bm_familiar_transform
			duration = -1
			hidden = yes
		}
		
		create_character = {
			age = 16
			male = yes
			religion = ROOT
			culture = ROOT
			dynasty = NONE
			trait = brilliant_strategist
			trait = fair
			trait = quick
			trait = bmfamiliar
			trait = duelist
			trait = celibate
		}
		
		new_character = {
			give_job_title = job_marshal
			opinion = {
				modifier = opinion_my_servant
				who = ROOT
				years = 700
			}
			reverse_opinion = {
				modifier = opinion_my_master
				who = ROOT
				years = 700
			}
		}
	}
}

# .107 Owl Transform
character_event = {
	id = BM.107
	desc = BM107
	picture = GFX_evt_meeting_hf
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = owl_familiar
			Or = {
				has_character_modifier = bm_summoner
				has_character_modifier = bm_wizard
			}
			NOT = {
				has_character_modifier = bm_familiar_transform
			}
		}

		mean_time_to_happen = {
			years = 12
		}

		immediate = {
			remove_character_modifier = owl_familiar
		}

	option = {
		name = BM106A
		add_character_modifier = {
			name = bm_familiar_transform
			duration = -1
			hidden = yes
		}
		
		create_character = {
			age = 16
			male = yes
			religion = ROOT
			culture = ROOT
			dynasty = NONE
			trait = mastermind_theologian
			trait = fair
			trait = quick
			trait = bmfamiliar
			trait = scholar
			trait = celibate
		}
		
		new_character = {
			give_job_title = job_spiritual
			opinion = {
				modifier = opinion_my_servant
				who = ROOT
				years = 700
			}
			reverse_opinion = {
				modifier = opinion_my_master
				who = ROOT
				years = 700
			}
		}
	}
}

# .108 Raven Transform
character_event = {
	id = BM.108
	desc = BM108
	picture = GFX_evt_meeting_hf
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = raven_familiar
			Or = {
				has_character_modifier = bm_summoner
				has_character_modifier = bm_wizard
			}
			NOT = {
				has_character_modifier = bm_familiar_transform
			}
		}

		mean_time_to_happen = {
			years = 12
		}

		immediate = {
			remove_character_modifier = raven_familiar
		}

	option = {
		name = BM105A
		add_character_modifier = {
			name = bm_familiar_transform
			duration = -1
			hidden = yes
		}
		
		create_character = {
			age = 16
			female = yes
			religion = ROOT
			culture = ROOT
			dynasty = NONE
			trait = midas_touched
			trait = fair
			trait = quick
			trait = bmfamiliar
			trait = administrator
			trait = celibate
		}
		
		new_character = {
			give_job_title = job_treasurer
			opinion = {
				modifier = opinion_my_servant
				who = ROOT
				years = 700
			}
			reverse_opinion = {
				modifier = opinion_my_master
				who = ROOT
				years = 700
			}
		}
	}
}

# .200 Learn Alchemy
character_event = {
	id = BM.200
	desc = BM200
	picture = GFX_evt_book_carolingian_script
	border = GFX_event_normal_frame_religion

        trigger = {
			ai = no
            trait = mystic
			stewardship = 20
            has_focus = focus_scholarship
            NOT = {
				Or = {
					has_character_modifier = bmlearn_alchemy
					has_character_modifier = bm_alchemist
					has_character_modifier = bm_wizard
				}
			}
		}

        mean_time_to_happen = {
                years = 3
        }

	option = {
		name = BM100A
		add_character_modifier = {
			name = bmlearn_alchemy
			duration = -1
			}
		}
	option = {
		name = BM100B
		tooltip_info = zealous
		trigger ={
			trait = zealous
		}
	}
}

# .201 Try to alchemy
character_event = {
	id = BM.201
	desc = BM201
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
            has_character_modifier = bmlearn_alchemy
            NOT = {
				Or = {
					has_character_modifier = bm_alchemist
					has_character_modifier = bm_wizard
					has_character_modifier = bm_ability_potion
					has_character_modifier = bm_healing_potion
					has_character_modifier = bm_fortune_potion
					has_character_modifier = bm_potion_cd
					has_character_modifier = bm_potion_fail
				}
			}
		}

        mean_time_to_happen = {
                years = 3
        }
	
	option = {
		name = BM201A
		hidden_effect = {
			add_character_modifier = {
				name = bm_potion_cd
				years = 1
				hidden = yes
			}
			character_event = { id = BM.202 }
		}
	}

	option = {
		name = BM101B
	}
}

# .202 Alchemy Potion
character_event = {
	id = BM.202
	desc = BM202
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	#Ability Potion
	option = {
		name = BM202A
		if = {
			limit = { stewardship >= 40 }
			character_event = { id = BM.203 }
		}
		if = {
			limit = {
				stewardship >= 30
				stewardship < 40
			}
			character_event = { id = BM.204 }
		}
		if = {
			limit = { stewardship < 30 }
			character_event = { id = BM.205 }
		}
	}

	#Healing Potion
	option = {
		name = BM202B
		if = {
			limit = { stewardship >= 40 }
			character_event = { id = BM.206 }
		}
		if = {
			limit = {
				stewardship >= 30
				stewardship < 40
			}
			character_event = { id = BM.207 }
		}
		if = {
			limit = { stewardship < 30 }
			character_event = { id = BM.208 }
		}
	}

	#Fortune Potion
	option = {
		name = BM202C
		if = {
			limit = { stewardship >= 40 }
			character_event = { id = BM.209 }
		}
		if = {
			limit = {
				stewardship >= 30
				stewardship < 40
			}
			character_event = { id = BM.210 }
		}
		if = {
			limit = { stewardship < 30 }
			character_event = { id = BM.211 }
		}
	}

	#Lapis Potion
	option = {
		name = BM202D
		tooltip_info = yes
		custom_tooltip = { text = bm_lapis_potion_text }
		trigger ={
			has_artifact = bm_lapis_sage
		}
		narrative_event = { id = BM.217 }
	}
}

# .203 Ability PotionI
character_event = {
	id = BM.203
	desc = BM203
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM203A
		tooltip_info = stewardship
		random_list = {
			99 = {
				add_character_modifier = {
					name = bm_ability_potion
					months = 6
				}
			}
			1 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .204 Ability PotionII
character_event = {
	id = BM.204
	desc = BM204
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM204A
		tooltip_info = stewardship
		random_list = {
			80 = {
				add_character_modifier = {
					name = bm_ability_potion
					months = 6
				}
			}
			20 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .205 Ability PotionIII
character_event = {
	id = BM.205
	desc = BM205
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM205A
		random_list = {
			60 = {
				add_character_modifier = {
					name = bm_ability_potion
					months = 6
				}
			}
			40 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .206 Healing PotionI
character_event = {
	id = BM.206
	desc = BM203
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM203A
		tooltip_info = stewardship
		random_list = {
			99 = {
				add_character_modifier = {
					name = bm_healing_potion
					months = 6
				}
			}
			1 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .207 Healing PotionII
character_event = {
	id = BM.207
	desc = BM204
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM204A
		tooltip_info = stewardship
		random_list = {
			80 = {
				add_character_modifier = {
					name = bm_healing_potion
					months = 6
				}
			}
			20 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .208 Healing PotionIII
character_event = {
	id = BM.208
	desc = BM205
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM205A
		random_list = {
			60 = {
				add_character_modifier = {
					name = bm_healing_potion
					months = 6
				}
			}
			40 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .209 Fortune PotionI
character_event = {
	id = BM.209
	desc = BM203
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM203A
		tooltip_info = stewardship
		random_list = {
			99 = {
				add_character_modifier = {
					name = bm_fortune_potion
					months = 6
				}
			}
			1 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .210 Fortune PotionII
character_event = {
	id = BM.210
	desc = BM204
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM204A
		tooltip_info = stewardship
		random_list = {
			80 = {
				add_character_modifier = {
					name = bm_fortune_potion
					months = 6
				}
			}
			20 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .211 Fortune PotionIII
character_event = {
	id = BM.211
	desc = BM205
	picture = GFX_evt_experiment
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM205A
		random_list = {
			60 = {
				add_character_modifier = {
					name = bm_fortune_potion
					months = 6
				}
			}
			40 = {
				add_character_modifier = {
					name = bm_potion_fail
					months = 3
				}
			}
		}
	}
}

# .212 Become Alchemist
character_event = {
	id = BM.212
	desc = BM212
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = bmlearn_alchemy
			Or = {
				has_character_modifier = bm_ability_potion
				has_character_modifier = bm_healing_potion
				has_character_modifier = bm_fortune_potion
			}
			NOT = {
				Or = {
					has_character_modifier = bm_alchemist
					has_character_modifier = bm_wizard
				}
			}
		}

		mean_time_to_happen = {
			months = 18
		}

		immediate = {
			remove_character_modifier = bmlearn_alchemy
		}

	option = {
		name = BM104A
		add_character_modifier = {
			name = bm_alchemist
			duration = -1
		}
	}
}

# .213 Try to refining Lapis
character_event = {
	id = BM.213
	desc = BM213
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			wealth = 1600
			piety = 300
			Or = {
				learning = 40
				has_artifact = emerald_tablet
			}
			Or = {
				has_character_modifier = bm_alchemist
				has_character_modifier = bm_wizard
			}
            NOT = {
				any_artifact = {
					has_artifact_flag = lapis_sage
				}
			}
		}

		mean_time_to_happen = {
			years = 10
		}
	
	option = {
		name = BM213A
		wealth = -2000
		piety = -500
		character_event = { id = BM.214 }
	}

	option = {
		name = BM213B
	}
}

# .214 Refining Lapis
character_event = {
	id = BM.214
	desc = BM214
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM214A
		random_list = {
			95 = {
				narrative_event = { id = BM.215 }
			}
			5 = {
				narrative_event = { id = BM.216 }
			}
		}
	}
}

# .215 Successful Lapis
narrative_event = {
	id = BM.215
	desc = BM215
	title = the_lapis_sage
	picture = GFX_the_lapis_sage
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = BM215A
		add_artifact = bm_lapis_sage
		if = {
			limit = {
				NOT = {
					any_owned_bloodline = {
						has_bloodline_flag = bmlapis_bloodline
					}
				}
			}
			create_bloodline = {
				type = bm_lapis_bloodline
				inheritance = all_descendants
			}
		}
	}
}

# .216 Failure Lapis
narrative_event = {
	id = BM.216
	desc = BM216
	title = the_lapis_sage
	picture = GFX_evt_experiments_failed
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = BM216A
		wealth = 500
	}
}

# .217 Lapis Potion
narrative_event = {
	id = BM.217
	desc = BM217
	title = the_lapis_potion
	picture = GFX_the_lapis_sage
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes

	immediate = {
		destroy_artifact = bm_lapis_sage
	}

	option = {
		name = BM217A
		add_trait = immortal
	}
}

# .218 Lapis Weapon
character_event = {
	id = BM.218
	desc = BM218
	picture = GFX_evt_weaponsmith
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	immediate = {
		destroy_artifact = bm_lapis_sage
	}

	#Lapis Sword
	option = {
		name = BM218A
		narrative_event = { id = BM.219 }
	}

	#Lapis Lance
	option = {
		name = BM218B
		narrative_event = { id = BM.220 }
	}

	#Lapis Bow
	option = {
		name = BM218C
		narrative_event = { id = BM.221 }
	}

	#Lapis Pistol
	option = {
		name = BM218D
		tooltip_info = yes
		custom_tooltip = { text = bm_lapis_gun_text }
		trigger ={
			has_artifact = hermetic_handgun
		}
		destroy_artifact = hermetic_handgun
		narrative_event = { id = BM.222 }
	}
}

# .219 Lapis Sword
narrative_event = {
	id = BM.219
	desc = BM219
	title = the_lapis_sword
	picture = GFX_evt_relic_box
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = BM219A
		add_artifact = bm_lapis_sword
	}
}

# .220 Lapis Lance
narrative_event = {
	id = BM.220
	desc = BM220
	title = the_lapis_lance
	picture = GFX_evt_relic_box
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = BM220A
		add_artifact = bm_lapis_lance
	}
}

# .221 Lapis Bow
narrative_event = {
	id = BM.221
	desc = BM221
	title = the_lapis_bow
	picture = GFX_evt_relic_box
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = BM221A
		add_artifact = bm_lapis_bow
	}
}

# .222 Lapis Pistol
narrative_event = {
	id = BM.222
	desc = BM222
	title = the_lapis_gun
	picture = GFX_evt_relic_box
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = BM222A
		add_artifact = bm_lapis_pistol
	}
}

# .300 Learn Astrology
character_event = {
	id = BM.300
	desc = BM300
	picture = GFX_evt_book_carolingian_script
	border = GFX_event_normal_frame_religion

		trigger = {
			ai = no
            trait = mystic
			learning = 20
            has_focus = focus_scholarship
            NOT = {
				Or = {
					has_character_modifier = bmlearn_astrology
					has_character_modifier = bm_astrologer
					has_character_modifier = bm_wizard
				}
			}
		}

		mean_time_to_happen = {
			years = 3
		}

	option = {
		name = BM100A
		add_character_modifier = {
			name = "bmlearn_astrology"
			duration = -1
		}
	}
	option = {
		name = BM100B
		tooltip_info = zealous
		trigger ={
			trait = zealous
		}
	}
}

# .301 Try to astrology
character_event = {
	id = BM.301
	desc = BM301
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
            has_character_modifier = bmlearn_astrology
            NOT = {
				Or = {
					has_character_modifier = bm_astrologer
					has_character_modifier = bm_wizard
					has_character_modifier = bm_good_battle
					has_character_modifier = bm_bad_battle
					has_character_modifier = bm_good_relationship
					has_character_modifier = bm_bad_relationship
					has_character_modifier = bm_good_power
					has_character_modifier = bm_bad_power
					has_character_modifier = scrying_cooldown
				}
			}
		}

        mean_time_to_happen = {
                years = 3
        }
	
	option = {
		name = BM301A
		hidden_effect = {
			add_character_modifier = {
				name = scrying_cooldown
				years = 1
				hidden = yes
			}
			character_event = { id = BM.302 }
		}
	}

	option = {
		name = BM101B
	}
}

# .302 Astrology Star
character_event = {
	id = BM.302
	desc = BM302
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = BM302A
		random_list = {
			50 = {
				character_event = { id = BM.303 }
			}
			50 = {
				character_event = { id = BM.304 }
			}
		}
	}

	option = {
		name = BM302B
		random_list = {
			50 = {
				character_event = { id = BM.305 }
			}
			50 = {
				character_event = { id = BM.306 }
			}
		}
	}

	option = {
		name = BM302C
		random_list = {
			50 = {
				character_event = { id = BM.307 }
			}
			50 = {
				character_event = { id = BM.308 }
			}
		}
	}
}

# .303 Battle Good Star
character_event = {
	id = BM.303
	desc = BM303
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM303A
		add_character_modifier = {
			name = bm_good_battle
			years = 1
		}
	}
}

# .304 Battle Bad Star
character_event = {
	id = BM.304
	desc = BM304
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM304A
		add_character_modifier = {
			name = bm_bad_battle
			years = 1
		}
	}
}

# .305 Relationship Good Star
character_event = {
	id = BM.305
	desc = BM305
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM303A
		add_character_modifier = {
			name = bm_good_relationship
			years = 1
		}
	}
}

# .306 Relationship Bad Star
character_event = {
	id = BM.306
	desc = BM306
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM304A
		add_character_modifier = {
			name = bm_bad_relationship
			years = 1
		}
	}
}

# .307 Power Good Star
character_event = {
	id = BM.307
	desc = BM307
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM303A
		add_character_modifier = {
			name = bm_good_power
			years = 1
		}
	}
}

# .308 Power Bad Star
character_event = {
	id = BM.308
	desc = BM308
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes
	
	option = {
		name = BM304A
		add_character_modifier = {
			name = bm_bad_power
			years = 1
		}
	}
}

# .309 Become Astrologer
character_event = {
	id = BM.309
	desc = BM309
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = bmlearn_astrology
			Or = {
				has_character_modifier = bm_good_battle
				has_character_modifier = bm_good_relationship
				has_character_modifier = bm_good_power
			}
			NOT = {
				Or = {
					has_character_modifier = bm_astrologer
					has_character_modifier = bm_wizard
				}
			}
		}

		mean_time_to_happen = {
			years = 2
		}

		immediate = {
			remove_character_modifier = bmlearn_astrology
		}

	option = {
		name = BM104A
		add_character_modifier = {
			name = bm_astrologer
			duration = -1
		}
	}
}

# .310 Zodiac Star
character_event = {
	id = BM.310
	desc = BM310
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion
	
	trigger = {
		Or = {
			has_character_modifier = bm_astrologer
			has_character_modifier = bm_wizard
		}
		NOT = {
			Or = {
				trait = zodiac_aquarius
				trait = zodiac_aries
				trait = zodiac_cancer
				trait = zodiac_capricorn
				trait = zodiac_gemini
				trait = zodiac_leo
				trait = zodiac_libra
				trait = zodiac_pisces
				trait = zodiac_sagittarius
				trait = zodiac_scorpio
				trait = zodiac_taurus
				trait = zodiac_virgo
			}
		}
	}
	
	mean_time_to_happen = { years = 3 }
	
	option = {
		name = BM310A
		add_western_zodiac_trait_effect = yes
	}
}

# .400 Become Wizard
character_event = {
	id = BM.400
	desc = BM400
	picture = GFX_evt_scientist
	border = GFX_event_normal_frame_religion
	
		trigger = {
			ai = no
            trait = mystic
			has_character_modifier = bm_summoner
			has_character_modifier = bm_alchemist
			has_character_modifier = bm_astrologer

			NOT = {
				has_character_modifier = bm_wizard
			}
		}

		mean_time_to_happen = {
			years = 3
		}

		immediate = {
			remove_character_modifier = bm_summoner
			remove_character_modifier = bm_alchemist
			remove_character_modifier = bm_astrologer
		}

	option = {
		name = BM400A
		add_character_modifier = {
			name = bm_wizard
			duration = -1
		}
		if = {
			limit = { has_nickname = no }
			give_nickname = nick_the_witch
		}
	}
}