vicberg
AGEod Grognard
Posts: 968
Joined: Mon Dec 29, 2008 3:18 am

Continental Blockade Script Error

Sat Mar 05, 2016 1:32 am

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

User avatar
Bohémond
Posts: 2810
Joined: Wed May 14, 2008 8:47 pm

Sat Mar 05, 2016 3:42 am

Area ''word'' is not required, correct syntax would be

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

Regards
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

vicberg
AGEod Grognard
Posts: 968
Joined: Mon Dec 29, 2008 3:18 am

Sat Mar 05, 2016 3:44 am

Thanks. I'll change it in my mod. AGEOD needs to fix in base game.

Return to “Wars of Napoleon”

Who is online

Users browsing this forum: No registered users and 13 guests