##################
### ON ACTIONS ###
##################
on_game_start = {
    events = {
		nsc_events.1
	}
}

#### added by xvcv ####
# A country has increased the level of a tech, use last_increased_tech trigger to check tech and level.
# This = Country
on_tech_increased = {
	events = {
		nsc_events_exploration_ship.10
		nsc_events_flagship.1
		nsc_events_exploration_ship.2
	}
}
on_game_start_country = {
    events = {
    	nsc_events_exploration_ship.1
	}
}

# Scope: Ship Event
#A ship has been built
# Root = Ship
# From = Planet
on_ship_built = {
	events = {
		nsc_events_flagship.4 #the notification event to tell players that their flagship construction has finished #This is also the event that spawns Flagships for a random set of AI empires.
	}
}

# This = owner of ship 1 (destroyed)
# From = owner of ship 2 (combatant)
# FromFrom = ship 1
# FromFromFrom = ship 2
on_ship_destroyed_victim = {
	events = {
		nsc_events_flagship.7
	}
}

# This = owner of fleet
# From = disbanded fleet
on_fleet_disbanded = {
	events = {
		nsc_events_flagship.8
	}
}

# A Megastructure has been built
# Root = Country
# From = Megastructure
# FromFrom = System
# FromFromFrom = Fleet
on_megastructure_built = {
	events = {
		nsc_events_hyperlane_gen.13
		nsc_events_hyperlane_gen.14
		nsc_events_hyperlane_gen.15
		nsc_events_hyperlane_gen.16
	}
}

on_megastructure_upgraded = {
	events = {
		nsc_events_hyperlane_gen.6
		nsc_events_hyperlane_gen.8
		nsc_events_hyperlane_gen.10
		nsc_events_hyperlane_gen.12
	}
}

# This = owner of fleet 1
# From = owner of fleet 2
# FromFrom = fleet 1
# FromFromFrom = fleet 2
on_entering_battle = {
	events = {
		nsc_events_flagship.10
	}
}

# A planets controller becomes a country not the same as the owner.
# Root = Planet
# From = Planet Owner
# FromFrom = Planet Controller (the one occupying)
on_planet_occupied = {
	events = {
		nsc_events_mothball.4
	}
}

#From = Country scope
#This = Planet scope
on_planet_ownerless = {
	events = {
		nsc_events_mothball.7
	}
}

#Fired whenever a new owner is set for a planet,
#be it after a war or through a trade
#From = Country scope (new owner)
#This = Planet scope
on_planet_transfer = {
	events = {
		nsc_events_mothball.9
	}
}