• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

froglegs

Colonel
4 Badges
Mar 10, 2005
940
2
  • Arsenal of Democracy
  • Darkest Hour
  • Hearts of Iron III
  • 500k Club
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.

}
}
 
There is no (documented) trigger for "convoys", your trigger will fire if they dont have 100 troop tranports.

Command for adding 100 convoy ships:
command = { type = transport_pool which = ITA value = 100 }
 
Thanks! I'll try it.

The nomenclature here is very confusing. I never saw the transport_pool because I searched for transports and convoy.

"Transport" refers to the naval division "transport" which transports land divisions.

In the transport_cost file "transports" refer the what I want -- note the s at the end.

Therefore to be consistant, one would think that it sould be "transports_pool" -- which it is not.
 
The trigger part does not seem to work as desired:

Neither "transports" nor "Transport_pool works right as a trigger.

I can get the event to file once by leaving persistance out or it files every day if in regardless of how many transports are in the pool.

##########################
# convoy Transports for ITALY
##########################

event = {
id = 661943
random = no
country = ITA
#persistent = yes
trigger = {
exists = ITA
control = { province = 31 data = ITA } # Malta
not = { transports = 100 }
#not = { transport_pool = 100 }


}

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 = transport_pool which = ita value = 100 }

}
}

When it fires it says "Italy receives 100 convoy transports".

Whoever wrote that doesn't know what they should be called either! How does convoy transports equal transport_pool? They are as different as methyl cynaide and hydrogen cynaide are! A transport is a naval division like infantry is a land division. Geeze!

Anyway, what they are called in the trigger does not give an error message in either case I tried, but it does not affect the trigger either.
 
Last edited: