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

chefkoch

Banned
Oct 3, 2007
698
0
hi, i'm looking for some commands. i searched the forum but couldn't find a helping list or something like that. is there one?

#1:
i wanna decrease relations to all catholic countries

#2:
i wanna increase the growth of the population of my state (all provinces)

#3:
i wanna create an alliance of two KI-nations, who might have already other alliances to the time of the event.

#4:
a KI-alliance should declare war

#5:
reducing colonists of the player
 
chefkoch said:
hm, okay, thanx.

is it possibly to give a province to a country, if you don't know who owns that province or if its a neutral province?

'secedeprovince' didn't work when i tried it.

I would guess that you have two options then:
1) guess who would be the most likely owners of the province and write one event for each of them or
2) write a provincespecific event that fires for the owner regardless who that might be

An example for 2 is the following event that secedes a province, taken from the AGCEEP_Global_Provincespec.eue

Code:
#(1419-1820) Turkish ambition on Constantinople
event = {
	id = 338009
	trigger = {
		exists = TUR
		ai = yes
		NOT = {
			owned = { province = 357 data = BYZ }
			owned = { province = 357 data = TUR }
		}
		OR = {
			religion = sunni
			relation = { country = TUR data = 100 }
			#vassal = { country = TUR country = -1 } #not working
			#alliance = { country = TUR country = -1 } #not working
		}
	}
	random = no
	province = 357 #Thrace
	name = "EVENTNAME338009" #The Ottoman Sultan demands Constantinople
	desc = "EVENTHIST338009"
	#-#He is agitating to add Constantinople to the growing empire. We must acquiese.

	date = { day = 1 month = january year = 1419 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338009A" #We will hand it over
		command = { type = secedeprovince which = TUR value = 357 } #Thrace
		command = { type = relation which = TUR value = 50 }
		command = { type = treasury value = 50 }
	}
}
 
YodaMaster said:
No way. Provinces must be owned by a country if you want them to be seceded (or acquired in this case) by event.
now i have an event that gives me provinces as soon they are colonized by any nation. the problem is i can't use these provinces if i didn't discover them before. to solve that, i want to set explorer but no one appears.

-> command = { type = explorer which = 1045 } <-

why did i get no explorer in those seaareas?
 
I have another question.

I want to change the names of the commanding officer of an army but i can't find the place where it has to be done. I added in "randomleaders.csv" some new leaders e.g.: "SAC;von der Planitz" but all names i get are the same city names.

The red ones are the problem.
 
Which randomleaders.csv are you editing?

For a mod it should the one located in the db/leaders folder of the mod. And you have to restart EU2 to see effects. And leaders names are randomly given.
 
There is only one file with that name. In WATKABAOI it's in /DB.

Before i did any change there where no special leaders for SAC and i couldn't find the names of the random leaders that Saxony gets in game. I should ask cool-toxic where he has hide them.
 
Okay, done. In game i get now other names but not my names.

I got
HEI;von Erfurt

instead
SAC;von der Planitz

I build more then 15 armies and got only city names as their leaders name and none of mine and in that file they have the tag 'HEI'. I'm confused. :confused:
 
Be sure "leader language" value for the line of the country in country.csv of the mod is the tag for which you are adding entries in randomleaders.csv.

Example for Castile in AGCEEP:

in country.csv:
CAS;Yellow;Yellow;latin;SPA;MIN;MIN;MIN;8;4;4;5;5;5;4;7;0;Castile

in randomleaders.csv:
...
SPA;Abrantes
SPA;Aguilar de Campos
SPA;Aguilar de Inestrillas
SPA;Alagón
SPA;Alba de Liste
SPA;Alba deTormes
SPA;Albayda
SPA;Albudeyte
...


Or maybe something is wrong in randomleaders.csv and a semicolon ( ; ) is missing somewhere.
 
Last edited: