
Originally Posted by
Galloper
Thanks for your hint Monkwarrior!
I tried your syntax but again without success,for one turn population level fall on lowest level of 400 men
It's seems that script recognize "Carthago SettlementPopulationMaxedOut" as condition it also works well with if statement, but problem is that this "recognition mechanism" works only one time and if it works script begin reducing population all time.
I used endturn button because I tried prevent script from momental falling of population level.
PS:pardon my bad english

What's your mother language? I imagine that it is not Spanish.
Let's continue in English then.
I was wondering why do you need a background script for this purpose.
One alternative would be an advice with a script for "depopulation".
In export_descr_advice:
in the bottom of the file, the trigger
Code:
;------------------------------------------
Trigger 9000_Carthago_Population_Limit_Reached_Trigger
WhenToTest SettlementTurnStart
Condition SettlementIsLocal
and SettlementName Carthago
and SettlementPopulationMaxedOut
AdviceThread Carthago_Population_Limit_Reached_Thread 1
then you need the advice thread
Code:
;------------------------------------------
AdviceThread Carthago_Population_Limit_Reached_Thread
GameArea Campaign
Item Carthago_Population_Limit_Reached_Text_01
Uninhibitable
Verbosity 0
Priority 1
Threshold 1
Attitude Normal
Presentation Default
Title Carthago_Population_Limit_Reached_Text_01_Title
Script scripts\show_me\depopulation.txt
Text Carthago_Population_Limit_Reached_Text_01_Text1
In export_advice (text folder):
Code:
{Carthago_Population_Limit_Reached_Text_01_Title} Too Many People in Carthago
{Carthago_Population_Limit_Reached_Text_01_Text1}
Carthago has reached its maximum population level. 7,000 inhabitants have been evicted from the city.
And in data\scripts\show_me folder you create the file depopulation.txt:
Code:
script
console_command add_population -7000
end_script
Good luck!
Bookmarks