Hi there
I am trying to create an event / events that will go through ai minors deleting ground units when they are at peace:
Above is what I have done so far. Two events that are supposed to trigger for ALL ai minors in peacetime with the exception of the ones listed and delete their ground units. They are not triggering however, and I was wondering if anyone could tell me why?
Many thanks in advance,
Amartus
I am trying to create an event / events that will go through ai minors deleting ground units when they are at peace:
Code:
event = {
id = 2233509
persistent = yes
trigger = {
and = {
ai = yes
major = no
atwar = no
not = {
country = BUL
country = FIN
country = GRE
country = OTT
country = U08
country = U09
country = ROM
}
}
}
date = { day = 10 month = january year = 1920 }
offset = 15
deathdate = { day = 10 month = january year = 1939 }
name = "Unit control"
desc = "Unit control"
action_a = {
name = "Unit control"
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
}
}
event = {
id = 2233510
persistent = yes
trigger = {
and = {
ai = yes
major = no
atwar = no
not = {
country = BUL
country = FIN
country = GRE
country = OTT
country = U08
country = U09
country = ROM
}
}
}
date = { day = 10 month = january year = 1920 }
offset = 15
deathdate = { day = 10 month = january year = 1939 }
name = "Unit control"
desc = "Unit control"
action_a = {
name = "Unit control"
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
}
}
Above is what I have done so far. Two events that are supposed to trigger for ALL ai minors in peacetime with the exception of the ones listed and delete their ground units. They are not triggering however, and I was wondering if anyone could tell me why?
Many thanks in advance,
Amartus