﻿# 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_last_dragon_died_on_action
# 	}
# }

# agotma_last_dragon_died_on_action = {
# 	trigger = {
# 		exists = title:b_ruins.holder
# 		NOT = { is_human = yes }
# 		has_trait = dragon
# 	}
# 	effect = {
# 		if = {
# 			limit = { has_trait = dragon }
# 			save_scope_as = dead_dragon
# 			title:b_ruins.holder = {
# 				set_variable = {
# 					name = agotma_last_dragon_died
# 					value = scope:dead_dragon
# 				}
# 			}
# 		}
# 	}
# }