I want to solve the dreadnought-before-there-time-problem with a script. Deleting and restoring with CreateGroup etc won't do, because there are only two barttleship units in the pool for Italy and both produce dreadnoughts, too.
So I thought I could alter them with AlterCuSubunit and wrote the following script.
SelectFaction = CMN
SelectRegion = $Venezia
StartEvent = The Italian Navy gets set straight|1|1|NULL|NULL|$Venezia|NULL
Conditions
Actions
SelectRegion = 85
SelectFaction = $ITA
SelectSubUnits = Region 85;FactionTags ITA;Domains $Navy;Models $mdl_ITA_BB07
AlterCuSubUnit = ApplytoList;Convert $mdl_ITA_BB03C
EndEvent
Pretty much straightforward. I am positive about the models. I tried to select ALL Italian battleship models, separated by spaces. I tried with $Venezia instead of 85, for both and for each alone. But the result is always this:
Line 3: Started processing event: The Italian Navy gets set straight
Line 3: This event is not yet referenced, base number of allowed occurences 1
Line 7: Entering triggered actions for event The Italian Navy gets set straight
Line 8: SelectRegion, at least one faction must be selected, selecting first faction
Line 8: => SelectRegion, First parameter must be a region UID (check if the alias was translated correctly): VENEZIA
Line 10: SelectFaction, selected: Sardinia-Piedmont
Line 11: SelectSubUnits finished Regions Selected: 0 SubUnits Selected: 0
Line 12: [WARNING] AlterCuSubUnit: Selection is empty (Apply To List)
Line 14: Finished processing event: The Italian Navy gets set straight
I ask the big boys, what am I missing?