I am trying to write and event that gives Italy free convoy transports if Malta is held by them and their total of transports drops below a certain number.
The event command file does not seem to describe exactly what convoy transports are named nor the format for adding them.
Anybody else ever gotten this to work before?
For instance I have tried several variations on the following without success:
##########################
# convoy Transports for ITALY if Malts is held
##########################
event = {
id = 661943
random = no
country = ITA
persistent = yes
trigger = {
exists = ITA
control = { province = 31 data = ITA } # Malta
not = { transports = 100 }
# also tried convoys = and free_convoy commands in an event
}
name = "AI_EVENT"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1948 }
action_a = {
name = "AI_Event"
command = { type = add_division which = transports value = 100 }
#also tried free_convoys and which = convoys etc.
}
}
The event command file does not seem to describe exactly what convoy transports are named nor the format for adding them.
Anybody else ever gotten this to work before?
For instance I have tried several variations on the following without success:
##########################
# convoy Transports for ITALY if Malts is held
##########################
event = {
id = 661943
random = no
country = ITA
persistent = yes
trigger = {
exists = ITA
control = { province = 31 data = ITA } # Malta
not = { transports = 100 }
# also tried convoys = and free_convoy commands in an event
}
name = "AI_EVENT"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1948 }
action_a = {
name = "AI_Event"
command = { type = add_division which = transports value = 100 }
#also tried free_convoys and which = convoys etc.
}
}