• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

pkakakozi

Recruit
May 16, 2014
2
0
Hi
I'm trying to write some event script which would save time to rise colony to city but it won't execte.
Can anybody check this and find a solution.
It works when execute this event from console.

Code:
event = { 
    id = 110001
    province = 86
    trigger = { 
	       owned = { province = 86 data = POL }
	       colony = 86 
              } 
    random = no
    name = "Province gains 1000 population and Infantry"
    desc = "Province gains 1000 population and Infantry"
    action_a = { 
               name = OK
	command = { type = population which = 86 value = 1000 }
	command = { type = INF which = 86 value = 1000 }
    } 

}

Best regards
 
Try setting a time range for the event to trigger (e.g. from 1.1.1419 to 30.12.1819 checking every 5 days or so). IIRC events without a fixed date or a definitive time frame can only be triggered by other events, not by themselves.

Hope that helps you.:)