﻿# character just about to die in root scope
# if a killer is know, it's set as scope:killer
#Triggered by code

# on_death = {
# 	on_actions = {
# 		agotma_dragon_kill
# 	}
# }

# agotma_dragon_kill = {
# 	trigger = {
# 		is_human = no
# 		has_trait = dragon
# 	}
# 	effect = {
# 		save_scope_as = killed_dragon
# 		if = {
# 			limit = {
# 				exists = scope:killer
# 				scope:killer = {
# 					is_human = no
# 					has_trait = dragon
# 				}
# 			}
# 			add_to_global_variable_list = {
# 				name = agotma_dragon_kill_list
# 				target = scope:killed_dragon
# 				years = 100
# 			}
# 		}
# 	}
# }