Code: Select all
ModelType0 = $mdl_USA_Inf5|1
ModelType1 = $mdl_USA_Inf5|1
ModelType2 = $mdl_USA_Inf5|1
ModelType3 = $mdl_USA_Inf6|1
FamilyType0 = $famLeader|1
FamilyType1 = $famLine|4
Code: Select all
SelectFaction = USA
StartEvent = evt_nam_USA_CWDB_Forcepool_WV64|1|1|NULL|NULL|NULL |NULL
Conditions
FixedDate = 1864/07/01
Actions
ChangeUnitPool = $uni_USA_newbrigade;5
EndEvent
Code: Select all
CreateUnit
SetType = $uni_CSA_Art4VA
FlavorName = Col. G. Gabriel
SUFlavorName = 22nd GA Bty
SetName = Savannah Artillery
Apply
tribeticus wrote:Thanks guys much appreciated
I guess the part that is eluding me is where the addition of the elite units takes place in the files. For instance, where is the Gamecock Brigade for the CSA, I can find the unit file but not the event that spawns it. I'm looking for this so I can mirror the way it is made.
Code: Select all
SelectFaction = USA
SelectRegion = $Davidson_TN
StartEvent = evt_nam_USA_TennesseeUnionist1|1|1|NULL|NULL|$Davidson_TN|NULL
Conditions
MinDate = 1861/05/01
MaxDate = 1863/03/01
EvalRgnVP = $Davidson_TN
Actions
DescEvent = evt_desc_USA_TennesseeUnionist1
SelectFaction = USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = _genName
Apply
CreateUnit
SetType = $uni_USA_VolBde
FlavorName = Brig.Gen. C.Vaughn
SUFlavorName = 1st TN Vol.|2nd TN Vol.|Tennessee Rifles
SetName = 1st TN Volunteer Brigade
Apply
EndEvent
grimjaw wrote:Is there a way to create a unit that appears if a city is captured?
Yeah, that's fairly simple. You can use an existing event as a template. There are a few events that the Union has that create volunteers if they capture specific regions. Below is the one for Nashville, TN. It's using an EvalRgnVP test as a condition (http://www.ageod.net/agewiki/EvalRgnVP), which isn't quite the same thing as capturing the city. However, I think EvalRgnVP is probably more accurate if you were going to be able to produce volunteers, as it also is a measure of the loyalty of the region.Code: Select all
SelectFaction = USA
SelectRegion = $Davidson_TN
StartEvent = evt_nam_USA_TennesseeUnionist1|1|1|NULL|NULL|$Davidson_TN|NULL
Conditions
MinDate = 1861/05/01
MaxDate = 1863/03/01
EvalRgnVP = $Davidson_TN
Actions
DescEvent = evt_desc_USA_TennesseeUnionist1
SelectFaction = USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = _genName
Apply
CreateUnit
SetType = $uni_USA_VolBde
FlavorName = Brig.Gen. C.Vaughn
SUFlavorName = 1st TN Vol.|2nd TN Vol.|Tennessee Rifles
SetName = 1st TN Volunteer Brigade
Apply
EndEvent
Teatime wrote:Here is an event, which I have tested, to create an MD vol bde if Baltimore is captured
SelectFaction = CSA
SelectRegion = $Baltimore_MD
StartEvent = evt_nam_CSA_MarylandRebels1|1|1|NULL|NULL|$Baltimore_MD|NULL
Conditions
MinDate = 1861/05/01
MaxDate = 1865/03/01
EvalRgnVP = $Baltimore_MD
Actions
SelectFaction = CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Maryland Volunteers
Apply
CreateUnit
SetType = $uni_CSA_VolBde
FlavorName = Col Francis J. Thomas
SUFlavorName = 1st Maryland Vols|2nd Maryland Vols|Baltimore Rifles
SetName = Maryland Volunteers
Apply
EndEvent
Only difference I see is the format of the Setname of the group so you could try changing that
The only other possible reason i can think of is that South Park is only a size 1 town .. but I didn't think that would impact an event .. only if you made it recruitable
Teatime wrote:Not too hard to do that
in CW2>Gamedata>Units
First you need to find a unit that is not in use .. I think you could probably use one of the units in the 209 to 215 range as I haven't come across anywhere that these are used
If we take 209CSAVolunteersRgt ..
That file is currently (excluding the customnames lines)
UID = 209
NationTag = CSA
Name = Volunteers Rgt
Alias = uni_CSA_Reb1
ShortName = Volunteers
Text = $uni_txt_CSA_VolRgt
Color = $colCSAMilitia
ModelType0 = $mdl_CSA_Reb1|1
FamilyType0 = $famMilitia|1
CmdCost = 1
Pillage = 0
BuildRule = $recCity
You would change that to (assuming you want to be able to build up to 3 of them .. so I have only included 3 custom names)
UID = 209
NationTag = CSA
Name = Volunteers Rgt (CO)
Alias = uni_CSA_Reb1CO
ShortName = Volunteers
Text = $uni_txt_CSA_VolRgt
Color = $colCSAMilitia
ModelType0 = $mdl_CSA_Reb1|1
FamilyType0 = $famMilitia|1
CmdCost = 1
Pillage = 0
BuildRule = $recTown
Area = $CO
Customnames = 1st CO Vols|2nd CO Vols|3rd CO Vols
$recTown means you can build in size 1 towns and above
Area = $CO restricts you to building in Colorado
Last thing to do is go to the events file
CW2>Events
Find the file for your relevant campaign .. e.g. 1861 April Campaign
search that file for evt_nam_CSA_InitialForcePoolMay61
Add a line under actions
ChangeUnitPool = $uni_CSA_Reb1CO;3
So now you can recruit up to 3 Colorado volunteer regiments once you control any size 1 town in Colorado!!
I used this approach to allow the USA to recruit AR, TN and LA regiments once they had a presence there (as they historically did)
Teatime wrote:I have led you astray there James, sorry for that
We need to use the original Alias
Alias = uni_CSA_Reb1 ... do not make it Alias = uni_CSA_Reb1CO
and therefore the unit pool line in the event file needs to be
ChangeUnitPool = $uni_CSA_Reb1;3
I will try to get some time to test this myself in the next couple of days
Did you get the event working??
If this doesn't work for you then I will try to get it working and then set up a session so I can take you through it
Users browsing this forum: No registered users and 30 guests