
Originally Posted by
attyla
i use script as a condition for recruiting system. It looks like this:
Script works well, but i have a little problem with rectuiting new units, because after checking who is owner of Constantinople, i have to wait whole period of replenish unit. Is there any tip to fix this problem?
Try adding ‘set_recruit_pool’ or ‘inc_recruit_pool’ to your script:
Code:
Identifier: set_recruit_pool
Parameters: region_name|region_id value unit_name
Description: Set specified amount of units to the unit pool of the specified type of unit in the specified region.
Sample use: set_recruit_pool York_Province 5 temp heavy spearmen
Class: SET_RECRUIT_POOL
Implemented: Yes
Author: Grig
Code:
monitor_event SettlementTurnStart SettlementName Jerusalem
and FactionReligion catholic
set_recruit_pool Jerusalem_Province 2 Jerusalem Sergeants
set_recruit_pool Jerusalem_Province 2 Dismounted Jerusalem Knights
set_recruit_pool Jerusalem_Province 2 Jerusalem Knights
end_monitor
Code:
Identifier: inc_recruit_pool
Parameters: region_name|region_id value unit_name
Description: Add specified amount of units to the unit pool of the specified type of unit in the specified region.
Sample use: inc_recruit_pool York_Province -2 temp_heavy_spearmen
Class: INC_RECRUIT_POOL
Implemented: Yes
Author: Grig
Code:
monitor_event SettlementTurnStart SettlementName Jerusalem
and FactionReligion catholic
inc_recruit_pool Jerusalem_Province 2 Jerusalem Sergeants
inc_recruit_pool Jerusalem_Province 2 Dismounted Jerusalem Knights
inc_recruit_pool Jerusalem_Province 2 Jerusalem Knights
end_monitor