Pocus Kensai and Loki have tried to help me to fix the spanish anexation event of Santo domingo, actually the problem is that the setColStatus is not working (including setColStatusArea).
Good thread to read about the issue :
http://www.ageod-forum.com/archive/index.php/t-22031.html
http://www.ageod-forum.com/archive/index.php/t-33494.html
If you try to run this event you will find the region as 101 CP and Santo Domingo national region, and you wont be allowed to build any collection center :
Code: Select all
SelectFaction = $SPA
SelectRegion = $Santo domingo
StartEvent = evt_nam_SPA_AnexationofSantoDomingo1861|1|2|evt_txt_SPA_AnexationofSantoDomingo1861|Event-img_SPA_AnexationofSantoDomingo1861|$Santo domingo|NULL
Conditions
SelectFaction = $DOM
EvalIsAtPeaceWith = $SPA
MinDate = 1861/01/01
MaxDate = 1862/03/01
Probability = 100
Actions
DescEvent = evt_Desc_SPA_AnexationofSantoDomingo1861
SelectFaction = $SPA
AbsorbFaction = DOM;10;10;10;100;100;10;10
SelectRegion = $Santo Domingo
SetControl = 100
SetColonialPen = 101
EndEvent
Pocus, Loki and Kensai told me to use setColStatus as stated in the wiki : http://www.ageod.net/agewiki/index.php?title=Category:Script_commands&from=RemMapAlea
http://www.ageod.net/agewiki/SetColStatus
http://www.ageod.net/agewiki/SetColStatusArea
The problem is that SetColStatus and SetColStatusArea does not work ! because of this :
Description
Sets the status of a given colonial region(as per the list in GameData\ColonialAreas.ini). If the region is not colonial, then nothing will happen. The capital region of a colonial area governs the status of all regions generally.
So, what happens here is that 101%CP regions are not colonial but national regions instead, because of this reason they are not allowed to swith to any thing but national region (the only fix I found was hardcore save editing)
Actually I found a workaround :
SetColStatus = $colNational
That makes Santo Domingo a 101% Spanish National Region (but also its still 101% CP Santo Domingo National Region )
Code: Select all
SelectFaction = $SPA
SelectRegion = $Santo domingo
StartEvent = evt_nam_SPA_AnexationofSantoDomingo1861|1|2|evt_txt_SPA_AnexationofSantoDomingo1861|Event-img_SPA_AnexationofSantoDomingo1861|$Santo domingo|NULL
Conditions
SelectFaction = $DOM
EvalIsAtPeaceWith = $SPA
MinDate = 1861/01/01
MaxDate = 1862/03/01
Probability = 100
Actions
DescEvent = evt_Desc_SPA_AnexationofSantoDomingo1861
SelectFaction = $SPA
AbsorbFaction = DOM;10;10;10;100;100;10;10
SelectRegion = $Santo Domingo
SetControl = 100
SetColonialPen = 101
SetColStatus = $colNational
EndEvent
Hope that helps for someone who needs that in order to fix things or events for that awesome game
EDIT : I made a mistake, SetColStatus = $colNational is not needed, the key for exit is SetColonialPen = 101 , so the event should look like that :
Code: Select all
SelectFaction = $SPA
SelectRegion = $Santo domingo
SelectFaction = $SPA
SelectRegion = $Santo domingo
StartEvent = evt_nam_SPA_AnexationofSantoDomingo1861|1|2|evt_txt_SPA_AnexationofSantoDomingo1861|Event-img_SPA_AnexationofSantoDomingo1861|$Santo domingo|NULL
Conditions
SelectFaction = $DOM
EvalIsAtPeaceWith = $SPA
MinDate = 1861/01/01
MaxDate = 1862/03/01
Probability = 100
Actions
DescEvent = evt_Desc_SPA_AnexationofSantoDomingo1861
SelectFaction = $SPA
AbsorbFaction = DOM;10;10;10;100;100;10;10
SelectRegion = $Santo Domingo
SetControl = 100
SetColonialPen = 101
EndEvent