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

unmerged(15247)

immortal technique
Mar 3, 2003
1.964
0
-in the carraibe, there is one sea zone called "persian sea":D(besides curaco)

- maya event to increase tax in the cot province looses its effect right after, and merchants placements does not reduce

-the sack of mecca and medina triggers TWICE for EACH of them. based on the eu2 code and the event's placement within the event file makes sense technically, but this needs to be adressed somehow so event does not trigger itself twice( each time player gets instant 20bb from beeing forced to dow)

-if west iberia retaken, algarave needs an event to for joining the new formed portugal as well or "keeping it"(player), no?

- a couple of times i have seen ben zaa of possible conversion event triggering in 1440's, while no european is even close to her( might have to do with the fact that ben za could get earlly maps of europe maybe?)
 
- maya event to increase tax in the cot province looses its effect right after, and merchants placements does not reduce

More specifically, the event that checks if the CoT still exists and thus reduces the taxbase fired when I was still reading the creation of CoT event.
 
-in the carraibe, there is one sea zone called "persian sea":D(besides curaco)

Good find.

Problem caused by me replacing all "caribbean" with "persian" which was meant to replace culture groups.
- maya event to increase tax in the cot province looses its effect right after, and merchants placements does not reduce

Early scrioting by me. Actually some of the very first events I ever wrote more than four years ago.

Reading through them I found other errors, too, including missing text and the possibility that if the Maya still owned the CoT in province 30 it would get both the gain and loss event, which was not intended.

Now fixed all these. Thanks to you both.

-the sack of mecca and medina triggers TWICE for EACH of them. based on the eu2 code and the event's placement within the event file makes sense technically, but this needs to be adressed somehow so event does not trigger itself twice( each time player gets instant 20bb from beeing forced to dow)

Needs a flag to make sure it doesn't happen twice to the same country. Thanks. Done.

-if west iberia retaken, algarave needs an event to for joining the new formed portugal as well or "keeping it"(player), no?

It has these two verions, as for all the provinces:

Code:
event = {
	id = 881960
	trigger = {
		religion = catholic
		NOT = { 
			owned = { province = 442 data = CAT } 
			owned = { province = 442 data = SAV } 
			owned = { province = 442 data = MES } 
			owned = { province = 442 data = LGD } 
			owned = { province = 442 data = AQU } 
			owned = { province = 442 data = NAV } 
			owned = { province = 442 data = LEO } 
			owned = { province = 442 data = ASU } 
			owned = { province = 442 data = AMG }
			owned = { province = 442 data = SEV }
			owned = { province = 442 data = CAS }
		}
		NOT = { exists = POR }
		NOT = { exists = PRT }
		OR = {
			flag = crusade_won
			flag = crusade_lost
			flag = crusade_left
		}
		NOT = { owned = { province = 441 data = -1 } }
		NOT = { event = 881961 }
	}
	random = no
	province = 442 
	name = "The Administration of Algarve"
	desc = "With the crusade in Iberia now at an end, the region of Algarve will be a difficult one to maintain and adminsiter from so far afield. Our advisors urge us to establish the ancient Kingdom of Portugal in exchange for their fealty."
	date = { day = 1 month = january year = 1450 }
	offset = 300
	deathdate = { day = 29 month = december year = 1489 }

	action_a = { 
		name = " Reward the loyal "
		command = { type = independence which = POR }
		command = { type = treasury  value = 150 }
		command = { type = sleepevent which = 881961 }
	}
	action_b = {
		name = "It is best governed by us"
		command = { type = gainbuilding which = 442 value = bailiff }
		command = { type = sleepevent which = 881961 }
	}
}

event = {
	id = 881961
	trigger = {
		NOT = { 
			owned = { province = 442 data = CAT } 
			owned = { province = 442 data = SAV } 
			owned = { province = 442 data = MES } 
			owned = { province = 442 data = LGD } 
			owned = { province = 442 data = AQU } 
			owned = { province = 442 data = NAV } 
			owned = { province = 442 data = LEO } 
			owned = { province = 442 data = ASU } 
			owned = { province = 442 data = AMG }
			owned = { province = 442 data = SEV }
			owned = { province = 442 data = CAS }
			owned = { province = 442 data = POR }
		}
		exists = POR
		OR = {
			flag = crusade_won
			flag = crusade_lost
			flag = crusade_left
		}
		NOT = { event = 881960 }
	}
	random = no
	province = 442
	name = "The Administration of Algarve"
	desc = "With the crusade in Iberia now at an end, the region of Algarve will be a difficult one to maintain and adminsiter from so far afield. Our advisors urge us to grant Algarve to the Portugese in exchange for their fealty."
	date = { day = 1 month = january year = 1450 }
	offset = 300
	deathdate = { day = 29 month = december year = 1489 }

	action_a = { 
		name = "Reward the loyal"
		command = { type = secedeprovince which = POR value = 442 }
		command = { type = treasury  value = 150 }
		command = { type = badboy value = -2 }
		command = { type = vassal which = POR }
		command = { type = relation which = POR value = 200 }
		command = { type = sleepevent which = 881960 }
	}
	action_b = {
		name = "It is best governed by us"
		command = { type = gainbuilding which = 442 value = bailiff }
		command = { type = sleepevent which = 881960 }
	}
}

So, if you get the event for Porto and decide to NOT create Portugal, then you don't get an event for Algarve, as the assumption is that you are going to keep it.
- a couple of times i have seen ben zaa of possible conversion event triggering in 1440's, while no european is even close to her( might have to do with the fact that ben za could get earlly maps of europe maybe?)

Probably. I have reset the start year for all these events to 1490 from 1419.

I'll do the same for the Aztecs.

Thanks for all these. Awesome work.
 
had an issue with the pope, tbd:

alternative reformation does not always trigger if a human incorporates rome even before luther comes on the scene,it seems there is an a much earlier pope event that sets the "flag=alternate ref."? and thus, upon diplo-annexing papal states, the flag's trigger "gets lost"? (i had all the regular pope events, except for the luther chain, wich triggers the actual alt. reformation)

maybe this particular important option(a main attraction for/of this mod), can get scripted within events to warn/guide the player in a very clear manner as what he needs do, or NOT, in order to make sure that the alternative reformation will happen as intended(pope becoming protestant and thus triggering that whole bunch of events for all europeans, etc) ?
 
Last edited:
Probably. I have reset the start year for all these events to 1490 from 1419.

I'll do the same for the Aztecs.

Thanks for all these. Awesome work.

maybe 1510 or 1520 better , to make sure that someone DOES at least start colonizing in the new world? becouse the main problem is that ALL human europeans receive those events scripted(each his own) that demands ben zaa conversion at the very same time, when loading the game:confused:. however , if loading the same save a second time, nobody gets it again at all until the next rehost(and providing that nobody borders them yet)

it only happens for ben zaa, even if other such nations that have this set of events also exist.


Code:
event = {
	id = 734124
	trigger = {
		religion = catholic
		neighbour = ZAP
		owned = { province = 30 data = ZAP }
		provincereligion = { province = 30 data = pagan }
		NOT = { war = { country = SIC country = ZAP } }
	}
	random = no
	country = SIC
	name = "The Revulsion of Human Sacrifice"
	desc = "Having arrived in this new land we have discovered that these 
people sacrifice other humans to their heathen gods! Such a practice is 
repulsive and proof that they are less than human themselves. We have 
informed the Pope and Catholics everywhere are disgusted. Something must be 
done."
	date = { day = 1 month = january year = 1419 }
	offset = 200
	deathdate = { day = 29 month = december year = 1820 }

	action_a = {
		name = "Accede to the Pope's request and send our emissaries"
		command = { type = relation which = PAP value = 50 }
		command = { type = diplomats value = -1 }
		command = { type = missionaries value = -1 }
		command = { type = cash value = -20 }
	}
	action_b = {
		name = "Use the pope's request as a pretext for conquest"
		command = { type = casusbelli which = ZAP value = 60 }
		command = { type = relation which = PAP value = 50 }
		command = { type = sleepevent which = 734125 }
	}
	action_c = {
		name = "Refuse his request"
		command = { type = relation which = PAP value = -50 }
		command = { type = badboy value = 1 }
		command = { type = sleepevent which = 734125 }
	}
}

the problem is in this events wich actually trigger the ben zaa one (and not the other way around):

" trigger = {
religion = catholic
neighbour = ZAP
owned = { province = 30 data = ZAP }
provincereligion = { province = 30 data = pagan }
NOT = { war = { country = SIC country = ZAP } }"

adding a "not year = 1510" or something like that , might help?
 
Last edited:
Hmmm.

I thought that the trigger

neighbour = ZAP

would mean the country only gets it if ZAP is actually a neighbour, which was supposed to limit it to a nation which had actually colonized a province adjacen to ZAP.

If this is not working (because the trigger condition does not work properly) then I will need to rethink the events.
 
oh, one more bug i almost forgat.

if portugal gets released, she gets the explorers, etc, but never gets them even out of the port. there needs be an ai file for portugal in this situation maybe?
 
oh, one more bug i almost forgat.

if portugal gets released, she gets the explorers, etc, but never gets them even out of the port. there needs be an ai file for portugal in this situation maybe?

If Portugal emerges it should get the event:

Code:
event = {
	id = 417450
	random = no
	country = POR
	trigger = {
		owned = { province = 441 data = -1 }
		owned = { province = 442 data = -1 }
		owned = { province = 434 data = -1 }
	}
	name = "The Libertation of Portugal"
	desc = "We have reconquered all of the old Kingdom from the infidel moors. What now should be the focus for the Portugese people? The expulsion of our old foe, or are we weary of war and is it time to focus on trade and exploration?"
	date = { day = 1 month = january year = 1419 }
	offset = 100
	deathdate = { day = 29 month = december year = 1820 }

	action_a = {
		name = "Peace and prosperity"
		command = { type = stability value = 3 }
		command = { type = ai which = "portugal_peaceful.ai" }
	}
	action_b = {
		name = "Confront the infidel moor"
		command = { type = stability value = 3 }
		command = { type = ai which = "portugal_war.ai" }
		command = { type = addcore which = 431 }
		command = { type = addcore which = 432 }
		command = { type = addcore which = 433 }
		command = { type = addcore which = 435 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = land value = 1 }
		command = { type = wakeleader which = 35255 }
		command = { type = wakeleader which = 35256 }
		command = { type = wakeleader which = 35257 }
		command = { type = wakeleader which = 35258 }
		command = { type = wakeleader which = 35260 }
		command = { type = wakeleader which = 35265 }
		command = { type = wakeleader which = 35266 }
		command = { type = wakeleader which = 35268 }
		command = { type = wakeleader which = 35269 }
		command = { type = setflag which = portnoexplore }
	}
}

Mostly the ai will go with ai, which means they get their explorers and the ai file portugal_explores

This ai file contains
Code:
continent = { }
region = { TagoSea WCAtlanticSea ECAtlanticSea SWIndianSea NWIndianSea NEIndianSea ThaiSea OceaniaSea }
area = { recife bahia angola malabar malaya celebes ternate mozambicque ceylon sofala Amboina Cameroon "Cape Verde" Aden Amazonia Belem Rio }

expansion = 3
monopoly = -500
war = -200
ferocity = no
combat = { }
base = 0.1
front = 5.0

conquer =
{
	enemy = 5.0
	supply = 1.0
	distance = 10.0
	owner = 10.0
	notsupply = 1.0
	base = 10.0
}

garrison = { 
	fortress = 5.0 
	strategic = 12.0 
	size = 1.0 
	supply = 9.0 
	war = 8.0 
}

So, I am uncertain why they would not be exploring, unless they happen to know all of these places at the time they emerge, which seems highly unlikely (read: impossible).

So, I am stumped about this one.

Unless ...

They don't own those three provinces.

Ooops, that must be it. The event isn't firing and the default ai has no exploration parameters.

I will alter the triggers.

Thanks,

Matty
 
Unless ...

They don't own those three provinces.

Ooops, that must be it. The event isn't firing and the default ai has no exploration parameters.

Matty

that must be it, i forgat to mentione that it was indeed released just as 1 province. but 3 posts? :D
 
The connection kept timing out and I didn't think it had been posted, and then I couldn't connect.

I will delete the second two.

I have adjusted the initial event and added a back-up ai-only version as well.