Question re switching unit allegiances
Havard's site is unclear to me about this so help!
For the CORE project I have the Armee du Levant created and stationed in puppetted Syria and Lebanon. When VIC is created I need these units to switch to VIC, and as SYR and LEB are puppeted they will not default go to VIC in the scenario I scripted.
Here is where I am confused. First, when it refers to unit ID, what number does it refer to. For example :
navalunit= {
id = { type = 28008 id = 241 }
name = "5th Fleet"
location = 1273
leader = 24278 #Gauton
division = { id = { type = 28008 id = 242 } name = "Guepard" strength = 90 type = cruiser seadefence = 4 model = 0 }
division = { id = { type = 28008 id = 243 } name = "Valmy" strength = 80 type = cruiser seadefence = 4 model = 0 }
}
Is the ID number the 241 or does the 28008 also need to be shown?
Second, would I have to have separate switch allegiance lines for each division, or if I use the ID# for the whole naval unit will the whole unit switch? That is, if I use value = 241 do 242 and 243 automatically switch allegiance?
Third do I place the switch_allegiance event in a FRA event or a VIC event? I think it would be a FRA event, with the lines reading something like :
command = { type = switch_allegiance which = VIC value = 241 }
so that unit #242 in the French OOB switches its allegiance to VIC. Is that right?
Any help appreciated.