hi, I wrote an event for my mod project ( using AoD 1.07 and IC ) but it doesn't fire for AI. I think that I am not using persistent feature correctly. May anyone tell me that how to write events that will fire for all countries and also persistent ?
This is the event I wrote :
This is the event I wrote :
Code:
#############################
## Embargo Event
#############################
###
event = {
id = 150001
persistent = yes
random = no
date = { day = 22 month = march year = 2003 }
offset = 2
deathdate = { day = 30 month = december year = 2030 }
trigger = {
random = 50
flag = USA_ORDER
local_flag = NO_EMBARGO
OR = {
AND = {
national_idea = { country = -1 personality_string = policy_identity_frustrated } # revisionism
OR = {
national_idea = { country = -1 personality_string = policy_culture_absolut } # Fundamentalism
national_idea = { country = -1 personality_string = policy_culture_civic } # nationalism
ideology = nazi
}
}
AND = {
ideology = fascist
national_idea = { country = -1 personality_string = policy_identity_parochial } # militarism
}
ideology = stalinist #communist states are subject to embargoes directly
NOT = { relation = { which = USA value = -180 } }
national_idea = { country = -1 personality_string = policy_identity_guardians } # military expansionism
national_idea = { country = -1 personality_string = policy_identity_imperial } # world police
}
}
name = "EVT_150001_NAME"
desc = "EVT_150001_DESC"
picture = "security_council"
style = 0
action_a = {
name = "It will hurt us"
command = { type = local_clrflag which = NO_EMBARGO }
command = { type = local_setflag which = HAVE_EMBARGO }
command = { type = research_mod value = -10 }
command = { type = peacetime_ic_mod value = -10 }
}
}