
# called while having situations of planetmega constructions, and situation_monthly_progress > 0
# this = situation, target = carrier
on_plnmg_const_sit_monthly_pulse = {
	random_events = {
		1450 = 0
		8 = planetmega.12
		8 = planetmega.14
		7 = planetmega.16
		7 = planetmega.26
		27 = planetmega.21
		3 = planetmega.24
	}
}

# called when add_plnmg_mega effect with parameter on_actions = yes
# this = carrier, from = deposit built or rebuilt or upgraded (not the previous one)
on_planetmega_built = {
	events = {
		planetmega.40 # timeline
        planetmega.41 #shroud
	}
}

on_planetmega_upgraded = {
	events = {
		planetmega.42 # timeline
        planetmega.41 #shroud
	}
}

on_planetmega_restored = {
	events = {
		planetmega.45 # timeline
        planetmega.41 #shroud
	}
}

# called only when demolishing one via the situation
# this = carrier; from = deposit that will be destroyed next day, so do not use any delay or you will lose FROM!
on_planetmega_demolished = {
	events = {
		#
	}
}

# called when remove_plnmg_mega effect with its parameter on_actions = yes
# this = carrier; no FROM, sorry:)
on_planetmega_removed = {
    events = {
        #
    }
}

# called once planetmega construction situations actually begin i.e. already paid
# this = situation, target = carrier
# you can use flags to check, see common\scripted_triggers\planetmega_mod_triggers.txt for help
on_planetmega_build_begin = {
    events = {
		planetmega.18
		planetmega.49
    }
}

on_planetmega_upgrade_begin = {
    events = {
		planetmega.18
		planetmega.49
    }
}

on_planetmega_demolish_begin = {
    events = {
        #
    }
}

# called every year after extragalactic galaxy is colonized
# this = planet, fires per plnmg_xxx_eg_connects
on_plnmg_eg_small_living_monthly_pulse = {
	events = {
		#
	}
}
on_plnmg_eg_medium_living_monthly_pulse = {
	events = {
		#
	}
}
on_plnmg_eg_large_living_monthly_pulse = {
	events = {
		#
	}
}

on_plnmg_eg_small_living_yearly_pulse = {
	events = {
		#
	}
}
on_plnmg_eg_medium_living_yearly_pulse = {
	events = {
		#
	}
}
on_plnmg_eg_large_living_yearly_pulse = {
	events = {
		#
	}
}

### components, megastructures & ships' scripted actions ###

on_plnmg_exp_fleet_sent = { #on_completed
	events = {
		planetmega_exp.5
	}
}

on_plnmg_pmcar_split_done = {
	events = {
		planetmega_effect.143
	}
}
on_plnmg_pmcar_append_done = {
	events = {
		planetmega_effect.144
	}
}

