So I tried the following:
Code:
## 01_planetary_edicts.txt
# Abandon Colony Edict (handle with care)
planet_edict = {
name = "abandon_player_colony"
influence_cost = @standardEdictCost
allow = {
}
ai_weight = {
weight = 0
}
}
## colony_events.txt
# Abandon Player Colony Event (trigger after edict)
planet_event = {
id = abandon_player_colony.1
title = "colony.12.name"
desc = "colony.12.desc"
picture = GFX_evt_nuclear_explosion
show_sound = event_super_explosion
location = ROOT
trigger = {
has_planet_edict = "abandon_player_colony"
}
mean_time_to_happen = {
months = 1
}
option = {
name = ABANDON
destroy_colony = yes
}
}
That does seem to work meh...
I can set the edict, which give the planet the modifier.
I can fire the event and remove a colony if I have that planet highlighted atm I fire the event (but says there is no modifier of that kind to be found).
It does not trigger due to having the modifier on the colony... wondering what I've done wrong there :/