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

Akkilas

Corporal
52 Badges
Aug 18, 2010
44
0
  • Arsenal of Democracy
  • Warlock 2: Wrath of the Nagas
  • Warlock 2: The Exiled
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Rome Gold
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Lost Empire - Immortals
  • Heir to the Throne
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Hearts of Iron Anthology
  • Crusader Kings II: Horse Lords
  • Stellaris: Ancient Relics
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Stellaris: Lithoids
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • 500k Club
  • Crusader Kings II: Charlemagne
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
I decided to post this problem in a new thread as it has no relation to my previous problem whatsoever.

I'm trying to create an event that fires when Italy takes control of the province Gar. The event is supposed to result in the activation of two new leaders, a tech becomes available for research, and two units, one land one air, are spawned on the province. There are some other commands I wanted, like the province becoming a core, receiving IC, infrastructure, resources, and an airbase, but I don't really care much about these at the moment.

So far, I've tested this event under more easily met conditions with variations, trimming back the commands and such to make the event increasingly simpler, par my trial-and-error method. The event doesn't fire. I'm pretty sure I've made a mistake here or forgot something, as this is my first experience with events of this type, but I can't narrow the problem down beyond "it simply doesn't work".

Here is the current event code, reset to it's original format prior to the modifications I made for testing purposes.
Code:
event = {
	id = 2906
	random = no
	country = ITA

	trigger = {
		control = {
			province = 1448
			data = ITA
			}
		}

	name = "EVT_2906_NAME"
	desc = "EVT_2906_DESC"
	style = 0
	picture = "Shambhala"

	action_a = {
		name = "ACTIONNAME2906A" 
		command = { type = province_keypoints which = 1448 value = 80 }
		command = { type = addcore which = 1448 }
		command = { type = trigger which = 8022 }
		command = { type = wakeleader which = 6365 }
		command = { type = wakeleader which = 6366 }
		command = { type = add_corps which = I-3_Peacekeepers value = land when = 6365 where = 1448 }
		command = { type = add_division which = 01-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 02-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 03-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 04-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 05-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 06-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 07-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 08-Annex value = marine when = 7 where = none }
		command = { type = add_division which = 09-Annex value = marine when = 7 where = none }
		command = { type = add_corps which = Vimana_5_Vanguard value = air when = 6366 where = 1448 }
		command = { type = add_division which = 01-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 02-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 03-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 04-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 05-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 06-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 07-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 08-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 09-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 10-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 11-Vanguard value = multi_role when = 8 where = none }
		command = { type = add_division which = 12-Vanguard value = multi_role when = 8 where = none }
		command = { type = construct which = air_base where = 1448 value = 5 }
		command = { type = construct which = infrastructure where = 1448 value = 7 }
	}
}
 
I can't find any command listed in event commands that pertains to dates. I did find two sets of triggers though, (date = { day = X month = X year = X }, deathdate = { day = X month = X year = X } and separate year = [value], month = [value], day = [value]). But I've already tried these and it still doesn't work, so I'm guessing these aren't what you're talking about. So what is a date command?
 
Just tested it; it made no difference. Unless the date has to be specific, for instance past a specific day, month, or year from Jan 1st 1936.
 
Alright, I was able to get the event to fire successfully, thanks.

Now I have another question, about the tech that is unlocked by the event. It has no prerequisites and is tied to an event in secret_weapon_events.txt, but it is active by default regardless. I moved it to the secret weapons tree where it remained deactivated until the event fired, leading me to believe that event-locked techs only work in the Secret Weapons tree. But this isn't the case due to the practical turbojet engine in Aircraft. But that's also linked back to a tech within Secret Weapons.

I tried giving the tech other prerequisites but upon obtaining them, the tech becomes immediately available without the event firing. I'm left wondering if it's even possible to have a tech unlocked by an external event outside of Secret Weapons.

Here's the code.
Code:
event = {
	id = 8022
	random = no


	trigger = {
		event = 2906
		NOT = {
			is_tech_active = 6520
			}
		}

	name = "EVT_8022_NAME"
	desc = "EVT_8022_DESC"
	picture = "Shambhala"
	style = 0


	action_a = {
		name = "ACTIONNAME8022A" # We must utilize Shambhala's powerful technology! 
		command = {  type = activate which = 6520 } # Absolutum Dominium
	}
}

Code:
  event =
  { id         = 8022
    position   = { x = 454 y = 398 }
    technology = 6520
  }

# Absolutum Dominium
  application =
  { id        = 6520
    name      = TECH_APP_LD_52_NAME
    desc      = TECH_APP_LD_52_DESC
    position  = { x = 454 y = 443 }
    year      = 1948
    # Roman-Agarthan Collaboration
    component = { id = 6521 name = TECH_CMP_LD_52_1_NAME type = management difficulty = 10 }
    # Illuminati Logistic Solutions
    component = { id = 6522 name = TECH_CMP_LD_52_2_NAME type = mathematics difficulty = 8  }
    # Illuminati-Trained Centurions
    component = { id = 6523 name = TECH_CMP_LD_52_3_NAME type = training difficulty = 7 }
    # Agarthan Production Lines
    component = { id = 6524 name = TECH_CMP_LD_52_4_NAME type = industrial_engineering  difficulty = 9 }
    # Agarthan Officer Corps
    component = { id = 6525 name = TECH_CMP_LD_52_5_NAME type = management difficulty = 7 }
    required  = {  }
    effects =
    { command = { type = new_model which = multi_role value = 8 }
      command = { type = new_model which = marine value = 7 }
      command = { type = construct which = ic where = 1448 value = 10 }
      command = { type = add_prov_resource which = 1448 value = 20 where = metal }
      command = { type = add_prov_resource which = 1448 value = 10 where = rare_materials }

    }
  }

I've been thinking about creating a sort of proxy tech in Secret Weapons that is tied to the Shambhala event that when activated and researched activates this event unlocking Absolutum Dominium in Land Doctrines, if need be.
 
Alright, I tried it and it didn't work. Even when I added a prereq, the tech event starts out already active regardless of trigger conditions.