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

Brent15

King of Great Britain
62 Badges
May 3, 2003
2.169
229
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Mount & Blade: Warband
  • Knights of Honor
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Nemesis
  • Europa Universalis IV: Res Publica
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis: Rome
  • Sword of the Stars
  • Sword of the Stars II
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
I am scripting an event for Frederick V of Syria to inherit Austria. However, Steiermark does not have a major_sei file in the event database. If I create this file will it automatically be recognized for the country tag SEI or does it need to be defined somewhere? I ask because I can't get my Austrian event to fire the trigger for Steiermark. Your help is much appreciated. :)
 
It doesn't matter which file it's in. You can have alot of different events for different nations in one file. As long as you included it like this:

event = "db\events\major_sei.txt"

In the events.txt in your DB folder.

Look at this:

Code:
event = {

	id = 772006 [COLOR=Red]# Triggered by FRA 771008A[/COLOR]
	random = no
	[COLOR=YellowGreen]country = ENG[/COLOR]
	name = "Henry Burghersh, Bishop of Lincoln"
	desc = "On All Saints' Day, Henry Burghersh, Bishop of Lincoln, arrived in Paris with the defiance of the king of England. War had been declared."
	style = 1

	action_a ={
	name = "Great!"
	command = { type = war  which = FRA }
	command = { type = ai   which = "england_under_HYW_1337.ai" }
	}

}

Every letters after the # won't be read so I just color that part in red.
An then you have "tag =" this is the thing that specifies the events to one nation. You can also make a "province =" instead this just specifies it to one single province. Or you could make a totally random event without a "country =" or "province =". For random events you would also need "random " yes". Hope this helps a bit. ;)
 
Thanks, I appreciate the reply. :) But I think I've done all that you've said. :confused: I'll include the preliminary event I've written later. . .perhaps someone here will notice what I'm missing. :rolleyes:
 
Well, I initially started started a new game to test this file. I then saved the game immediately prior to its date/trigger for testing purposes. I did modify the event after I noticed a typo in the code and didn't start a new game afterward for testing (I just used the same saved file to test after the corrections). So I will run through it again from the start of a new game. Maybe, that'll do it. Thanks.
 
Here is the rough version of the event series I'm making. . .I don't see anything wrong right off the bat. Something I did notice is that with the choices A and B, on the first event below, there aren't any effects listed when you hover over it (I realize its just a trigger but I thought I remembered seeing those listed with the other effects). Oh, its the WATK3 map and I realize I'm creating a high chance of Austria being annexed but thats only temporary. :D

#Last of the Albertinian Line#
event = {
id = 100000
trigger = {
exists = SEI
}
random = no
country = HAB
name = "EVENTNAME100000"
desc = "EVENTHIST100000"
style = 1

date = { day = 23 month = november year = 1457 }

action_a ={
name = "ACTIONNAME100000A" #Frederick V of Syria#
command = { type = trigger which = 100001 } # SEI
}

action_b ={
name = "ACTIONNAME100000B" #Support another Noble#
command = { type = trigger which = 100002 } # SEI
}
}

#Inheritance of Austria#
event = {
id = 100001

# Triggered by HAB 100000

random = no
country = SEI
name = "EVENTNAME100001"
desc = "EVENTHIST100001"
style = 1

action_a ={
name = "ACTIONNAME100001A" #These Habsburg lands are ours!#
command = { type = inherit which = HAB }

}
}

#The Death of Ladislas#
event = {
id = 100002

# Triggered by HAB 100000

random = no
country = SEI
name = "EVENTNAME100002"
desc = "EVENTHIST100002"
style = 1

action_a ={
name = "ACTIONNAME100002A" #This is unacceptable!#
command = { type = relation which = HAB value = -200 }
command = { type = casusbelli which = HAB value = 120 }

}
}
 
Garbon said:
Are you trying to run the event off a save game? If that's the case, you need to include the line about the new event file in the save game as well (the events.txt is only checked when creating a new game).
Excellent point but starting a new grand campaign and playing thru still didn't work. Event id 100000 fires but the triggers do not fire for the corresponding selection.
 
I did some more testing. As displayed above, I have an inheritance event for Austria. In testing I started playing as Austria so I could select the "be inherited" option over a LAN connection. The event fires but doesn't bring up the triggered event to let Steiermark inherit Austria. However, it works fine as long as someone isn't actively playing as Austria(i.e. me playing Steiermark instead, the first tests I played as Austria on one PC and Steirmark on another). . .I've never selected the "game over" option on any event (SP or MP), I wonder if those events don't work when in a MP game. :confused:
 
Ah, event 100001 will never show up if you're playing HAB as the player can't be inherited. As a result there are no workable commands in that event and so the game won't let it occur. (I think that if HAB and SEI were player controlled, SEI would see the event flash.)
 
Garbon said:
Ah, event 100001 will never show up if you're playing HAB as the player can't be inherited. As a result there are no workable commands in that event and so the game won't let it occur. (I think that if HAB and SEI were player controlled, SEI would see the event flash.)
Yes, at last after about three hours I figured that out. I'd never tried to let myself be annexed in any of my own games, but, naturally, in the interest of being thorough that was the first thing I checked. :p

Anyway, so now I get it. . .you don't really have the option to let yourself be inherited even though it says it in the event. :rolleyes: I think I may code it differently now. I don't like having an event option that doesn't work under every plausible circumstance. So maybe I'll try to make two different event's one for a human player and another for the AI.

Oh, and your completely right. The event does flash, very, very quickly if both HAB and SEI are player controlled.

I really appreciate the feedback. :)