• 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.

makif130289

Field Marshal
78 Badges
Feb 20, 2008
3.631
63
  • Arsenal of Democracy
  • Supreme Ruler: Cold War
  • Europa Universalis IV: Res Publica
  • Iron Cross
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Crusader Kings II: Conclave
  • Stellaris
  • Imperator: Rome - Magna Graecia
  • Stellaris Sign-up
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Stellaris: Galaxy Edition
  • Stellaris: Lithoids
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Dharma
  • Crusader Kings II
  • Stellaris: Nemesis
  • Prison Architect: Psych Ward
  • Stellaris: Ancient Relics
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Battle for Bosporus
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Stellaris: Distant Stars
  • Stellaris: Federations
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Europa Universalis IV: Cradle of Civilization
  • Warlock 2: The Exiled
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 :

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 }

	}
	
}