+ Reply to Thread
Results 1 to 8 of 8

Thread: Trigger failing when conditions are met

  1. #1
    Corporal jatz's Avatar
    For The GloryVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness

    Join Date
    Dec 2009
    Location
    St. John's, Newfoundland
    Posts
    43

    Trigger failing when conditions are met

    Code:
    event = {
    	id = 357000
    	random = no
    	trigger = {
    		core_national = { province = 477 data = BYZ }
    		provincereligion = { province = 477 data = orthodox }
    		owned  = { province = 477 data = BYZ }
    	}
    	country = BYZ
    	name = "Reconquest of Anatolia"
    	desc = "With this portion of the old Byzantine heartland firmly back in our control, the demographics have adjusted accordingly."
    
    	date = { day = 1 month = january year = 1337 }
    	offset = 300
    
    	action_a = {
    		name = "Greeks predominate."
    		command = { type = provinceculture which = 477 value = greek }
    		command = { type = provincetax which = 477 value = 2 }
    		}
    }
    Can anyone tell me why this event isn't firing? All the conditions are met.
    Last edited by jatz; 15-02-2012 at 14:02.

  2. #2
    First the usual questions. Did you wait 300 days? Is it in an event file which is included properly? Can you fire it from the console?

    Clausewitz Tools: Clausewitz Save Game and History Editor (EU4-Compatible) - New! Version 0.8.6 released 24 August 2014! ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. I Corinthians 10:31b (NIV)

  3. #3
    Yeah, try adding an end date and lowering the offset. You should also export your text to one of the localization files.

  4. #4
    Mad Medievalist Third Angel's Avatar
    Deus VultFor The GloryMount & Blade: WarbandCK2: Holy KnightEUIV: Call to arms event

    Join Date
    Feb 2005
    Location
    in a Dwarf Fortress
    Posts
    2,237
    Yes, you should remove the offset or add a deathdate. The descriptions are short enough so they should not be a problem.
    CKII : Songs of an Angel - A musical minimod

    For the Glory
    : Dawn of Kingdoms - A medieval tetralogy


  5. #5
    Quote Originally Posted by Third Angel View Post
    The descriptions are short enough so they should not be a problem.
    Indeed, but better safe than sorry I say. It also looks a lot tidier.

  6. #6
    Corporal jatz's Avatar
    For The GloryVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness

    Join Date
    Dec 2009
    Location
    St. John's, Newfoundland
    Posts
    43
    The event is included properly, I can fire it from the console. I have waited 300 days. I tried running the event with the description changed to DESC = "".

    I will try removing or reducing the offset, then adding a death date. I will test it again when I get home from class, thanks for the responses everyone.

  7. #7
    You should always include a death date just in case, even if it's 1820 or whatever you're using as the end point of the game.

  8. #8
    Corporal jatz's Avatar
    For The GloryVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness

    Join Date
    Dec 2009
    Location
    St. John's, Newfoundland
    Posts
    43
    Removing the offset and adding a deathdate worked, thanks everyone!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts