johandenver2 wrote:Thanks a lot!
I'll try this and let you know how it works :-)
EDIT:
I tried creating a brigade of conscripts but they never upgraded to regular infantry.
In my brigade there are two regiments of INF5 and two INF6 but at least the two INF5 should have been upgraded I think.
Can I add multiple units to be upgraded in this way so that the event triggers for INF6 as well?
Code: Select all
StartEvent = STRScriptHospital|999|0|NULL|NULL|NULL|NULL
Conditions
Actions
SelectSubUnits = Region; models $mdl_USA_Inf5
AlterCuSubUnit = ApplytoList; SetCohesionPerc Value 100
SelectSubUnits = Region; models $mdl_USA_Inf5
AlterCuSubUnit = ApplytoList; SetCohesionPerc Value 100
DescEvent = evt_STRScriptHospital
GenMsg
EndEvent
Code: Select all
No error in this script
--------------START OF SCRIPT----------------
Line 0: Started processing event: STRScriptHospital
Line 0: This event is not yet referenced, base number of allowed occurences 999
Line 4: Entering triggered actions for event STRScriptHospital
Line 5: SelectSubUnits 1003271 5th Missouri added, List Count now at: 1
Line 5: SelectSubUnits 1003270 4th Missouri added, List Count now at: 2
Line 5: SelectSubUnits finished Regions Selected: 1 SubUnits Selected: 2
Line 6: AlterCuSubUnit 1003271 5th Missouri cohesion changed to 1
Line 6: AlterCuSubUnit 1003270 4th Missouri cohesion changed to 1
Line 7: SelectSubUnits 1003271 5th Missouri added, List Count now at: 1
Line 7: SelectSubUnits 1003270 4th Missouri added, List Count now at: 2
Line 7: SelectSubUnits finished Regions Selected: 1 SubUnits Selected: 2
Line 8: AlterCuSubUnit 1003270 4th Missouri cohesion changed to 1
Line 8: AlterCuSubUnit 1003271 5th Missouri cohesion changed to 1
Line 13: Finished processing event: STRScriptHospital
Line 13: ------------------------------
------------------------------
Error(s) found: 0
Warning(s) found: 0
--------------END OF SCRIPT----------------
StartEvent = STRScriptHospital|999|0|NULL|NULL|NULL|NULL
Conditions
Actions
SelectSubUnits = Region; models $mdl_USA_Inf5
AlterCuSubUnit = ApplytoList; SetCohesionPerc Value 100
SelectSubUnits = Region; models $mdl_USA_Inf6
AlterCuSubUnit = ApplytoList; SetCohesionPerc Value 100
DescEvent = evt_STRScriptHospital
GenMsg
Code: Select all
StartEvent = STRScriptHospital|999|0|NULL|NULL|NULL|NULL
Conditions
Actions
SelectSubUnits = Region
AlterCuSubUnit = ApplytoList; ChgCohesionPerc 25
SelectSubUnits = Region
AlterCuSubUnit = ApplytoList; ChgHealthPerc 25
DescEvent = evt_STRScriptHospital
GenMsg
EndEvent
Code: Select all
StartEvent = STRScriptHospital|999|0|NULL|NULL|NULL|NULL
Conditions
Actions
SelectSubUnits = Region
AlterCuSubUnit = ApplytoList; ChgCohesionPerc 25
SelectSubUnits = Region
AlterCuSubUnit = ApplytoList; ChgHealthPerc 25
GenTextMsg = evt_STRScriptHospital|999|NULL|NULL|NULL
EndEvent
Users browsing this forum: No registered users and 33 guests