Page 1 of 1

Continental Blockade Script Error

Posted: Sat Mar 05, 2016 1:32 am
by vicberg
This event

[color="#FFA500"]SelectFaction = GBR
SelectRegion = $London

StartEvent = evt_nam_GBR_ContinentalBlockadeFailure_Check|999|2|evt_txt_GBR_ContinentalBlockade_Check|Event-img_GBR_ContinentalBlockade|$London|NULL

Conditions
MinDate = 1806/05/16
MaxDate = 1815/12/31
TurnIndex = 0;12;24;36
EvalEvent = evt_nam_CMN_ContinentalSystem1806;>=;1
RegInit = 1
EvalStrucCount = Area $SmuggleArea_Coastal;FriendAndSelf;STRUCFAM $sfmHarbor;>=;0

SelectFaction = FRA
RegInit = 2
EvalStrucCount = Area $SmuggleArea_Coastal;FriendOnly;STRUCFAM $sfmHarbor;>=;0
RegEval = 1;>;2
RegDeactivate = NULL

Actions

SelectFaction = GBR

ChgEvtOccurs = evt_nam_GBR_ContinentalBlockadeFailuresCount;ChgEventOccurs;1
ChgRgnDecisionFP = $rgdSmuggleGoods;3

ChangeVPCount = 480
ChangeMoneyPool = 300
ChangeFacMorale = 1

SelectFaction = FRA
ChangeFacMorale = -1

ChgEvtOccurs = evt_nam_GBR_ContinentalBlockadeFailuresCount;MaxOccurs;1

ChgEvtOccurs = evt_nam_GBR_ContinentalBlockadeFailuresCount;CuOccurs;1

EndEvent[/color]

is returning:

[color="#FFA500"]Line 63915: EvalEvent evaluated: Checking evt_nam_CMN_ContinentalSystem1806 evt_nam_CMN_ContinentalSystem1806 1 at least equal to 1 True
Line 63916: RegInit 1
Line 63917: => EvalStrucCount: Param0 is not a known Area (check if the alias is valid): Area 430
Line 63919: SelectFaction, selected: France
Line 63920: RegInit 2
Line 63921: => EvalStrucCount: Param0 is not a known Area (check if the alias is valid): Area 430
Line 63922: RegEval: Registry 1 Value: 0 > Registry 2 Value: 0 : False
Line 63923: RegDeactivate[/color]

I don't know what's wrong. Smuggler_area exists. So I'm afraid I can't help with this

Posted: Sat Mar 05, 2016 3:42 am
by Bohémond
Area ''word'' is not required, correct syntax would be

EvalStrucCount = $SmuggleArea_Coastal;FriendAndSelf;STRUCFAM $sfmHarbor;>=;0

Regards

Posted: Sat Mar 05, 2016 3:44 am
by vicberg
Thanks. I'll change it in my mod. AGEOD needs to fix in base game.