Testing ChangeStrucLevel over NCP Peninsular War scenario: Bayonne is a FRA level 4 depot at scenario start.
StartEvent; 1
Conditions; NULL
FixedDate; 1808/05/08
Actions NULL
DescEvent; evt_desc_Depotchange1
SelectRegion; $Bayonne
ChangeStrucLevel; 2|-3
EndEvent; NULL
I edited -3 change going after PrimaSprint observation:
No, the parameter <LevelChange> does not set the structure level to the value but changes it by the given value. You can't change the level below 1 or above the allowed maximum.
ScriptReport file:
Line 3: SelectFactions, 1 Faction selected: French Empire
Line 5: SelectFactions, 1 Faction selected: French Empire
Line 6: Started processing event: evt_nam_Depotchange1
Line 6: This event is not yet referenced, base number of allowed occurences 1
Line 9: Fixed date evaluated: 1808/05/08 converted to turn 2802 current turn 2802 True
Line 11: Entering triggered actions for event evt_nam_Depotchange1
Line 13: SelectRegion, 198 Bayonne selected (simple mode)
[color="Red"]Line 14: => ChangeStrucLevel command, Level Change is not valid.[/color]
Line 16: Finished processing event: evt_nam_Depotchange1
Anyway it does not work.
In the second test I edited
ChangeStrucLevel; 2|1 where 1 stands for depot level one: I was till attempting to downgrade a level 4 to level one depot!
StartEvent; 1
Conditions; NULL
FixedDate; 1808/05/08
Actions NULL
DescEvent; evt_desc_Depotchange1
SelectRegion; $Bayonne
ChangeStrucLevel; 2|1
EndEvent; NULL
ScriptReport file:
Line 3: SelectFactions, 1 Faction selected: French Empire
Line 5: SelectFactions, 1 Faction selected: French Empire
Line 6: Started processing event: evt_nam_Depotchange1
Line 6: This event is not yet referenced, base number of allowed occurences 1
Line 9: Fixed date evaluated: 1808/05/08 converted to turn 2802 current turn 2802 True
Line 11: Entering triggered actions for event evt_nam_Depotchange1
Line 13: SelectRegion, 198 Bayonne selected (simple mode)
[color="red"]Line 14: => ChangeStrucLevel command, no selection type selected[/color]
Line 16: Finished processing event: evt_nam_Depotchange1
I was notified with an error too!
I modded setup file changing starting depot in bayonne to level 1, then I tried increasing it by 2 level, (or modding ot to level 2?:confused
StartEvent; 1
Conditions; NULL
FixedDate; 1808/05/08
Actions NULL
DescEvent; evt_desc_Depotchange1
SelectRegion; $Bayonne
ChangeStrucLevel; 2|2
EndEvent; NULL
ScriptReport file:
Line 3: SelectFactions, 1 Faction selected: French Empire
Line 5: SelectFactions, 1 Faction selected: French Empire
Line 6: Started processing event: evt_nam_Depotchange1
Line 6: This event is not yet referenced, base number of allowed occurences 1
Line 9: Fixed date evaluated: 1808/05/08 converted to turn 2802 current turn 2802 True
Line 11: Entering triggered actions for event evt_nam_Depotchange1
Line 13: SelectRegion, 198 Bayonne selected (simple mode)
[color="red"]Line 14: => ChangeStrucLevel command, no selection type selected[/color]
Line 16: Finished processing event: evt_nam_Depotchange1
Had error notification again!
What is wrong in my editing?
Attached EXL file is relative to mine 3rd test........