Whoops, forget SpawnConvoy, such a function does not exist. There is however a function ConvoySpawn.
The spawning interval randomization takes place in function ManageConvoys.
Or you could use a randomizer while defining the convoys with function DefineConvoy.
You have slightly misread how DefineConvoy works regarding interval and first spawnturn, so I'll re-explain.
function DefineConvoy uses six variables (or seven if the convoy is meant to be affected by the North Sea Blockade).
Let's have those variables represented by letters for explaining purposes:
a is the ID of the nation that owns that convoy
b is the x coordination where the convoy will spawn
c is the y coordination where the convoy will spawn
d is the amount of strength points the convoy will have
e is the interval: the number of turns which must pass for this convoy to respawn after he has reached his destination
f is the turn the convoy will be spawned the first time in the game
g is either left out or has a value of 1, meaning the convoy will be prevented from spawning once the North Sea blockade is in effect.
So for the Norway convoy that means:
Code: Select all
DefineConvoy(2, 102, 1, 100, 10, 8, 1) -- Germany - Norway
This convoy belongs to Germany (Germany has faction ID 2)
It will spawn of x coordinate 102
It will spawn at y coordinate 1
It will have a unit strength of 100
It will reappear every 10 turns (you could use a randomizer here)
It will first appear on turn 8 (you could use a randomizer here)
It will be affected by the North Sea Blockade (because of 1)