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

thunderhawk

Second Lieutenant
Dec 7, 2006
113
0
Im thinking of creating a new event set for grand cathedrals - the ones that took a decade-plus to complete.


Historically, they were of mixed blessing. They cost a lot, ate revenue from the province took many years (sometimes decades) to complete and were periodically a hot point which caused revolts. However, they were a major source of jobs for the region and once finished were generally a positive affect on the region.


My thought is to make an initial event where you have the option to start building the grand cathedral (including a RR increase of 4) or pass. 10-15 years later the complimenting event ("cathedral done") would fire saying cathedral done, removing RR and increasing manpower and tax by 1-2 each.


If it was just one province I would simply duplicate the main event for every 20 years and then create a robust trigger for the complimenting ("cathedral done") event. I want this option out there in general, but the only was I can think of, is to make this event set for every province - I can do that reasonably easy*, but Im worried that having such a huge amount of flags (15 per province!) would slow the game down. If I make it random then I cannot tie the complimenting event to it.

Ideas?
Comments?





*
I have made such blocks of events using C (not C++). Its pretty easy to mass produce duplicate events where the only change is that of the province # and date.
 
You could use the Versailles event as a template, which is what I did for Nonsuch Palace.
 
update:


I came to the idea that rather then creating a whole bunch of events for each province, I would make a semi-random system. Furthermore, I went with the idea that "what if I had a slider, along with infrastructure, trade, etc. that was 'build stuff!' insted of research or cash?"

id = XXXAAAA
XXX = block I grabbed.
AAAA = date event fires.


Code:
event = { 
	id = 3201420  
	trigger = {  
  } 
	random = no 
	country = country 
	name = "Infrastructure investment"  
	desc = "we redirect generic state investments towards infrastructure "  
	style = 1  
	date = { day = 10 month = december year = 1420 }  
	offset = 16  
	action_a ={  
		name = "Do so"  
		command = { type = infra value = -25 }  
		command = { type = trade value = -25 }  
		command = { type = land value = -25 }  
		command = { type = naval value = -25 }  
	}  
	action_b ={  
		name = "cancel the project and recoup the losses"  
		command = { type = treasury value =  0 }  
		command = { type = sleepevent   which = 3201420 }  
		command = { type = sleepevent   which = 3201421 }  
		command = { type = sleepevent   which = 3201422 }  
		command = { type = sleepevent   which = 3201423 }  
		command = { type = sleepevent   which = 3201424 }  
		command = { type = sleepevent   which = 3201425 }  
		command = { type = sleepevent   which = 3201426 }  
		command = { type = sleepevent   which = 3201427 }  
		command = { type = sleepevent   which = 3201428 }  
		command = { type = sleepevent   which = 3201429 }  
		command = { type = sleepevent   which = 3201430 }  
		command = { type = sleepevent   which = 3201431 }  
		command = { type = sleepevent   which = 3201432 }  
		command = { type = sleepevent   which = 3201433 }  
		command = { type = sleepevent   which = 3201434 }  
		command = { type = sleepevent   which = 3201435 }  
		command = { type = sleepevent   which = 3201436 }  
		command = { type = sleepevent   which = 3201437 }  
		command = { type = sleepevent   which = 3201438 }  
		command = { type = sleepevent   which = 3201439 }  
	}  
}
Repeat 19 times. Treasurey values goes up 10 gold each year.
I figure even with no investment in a field, the monarch's natural investment would add up. Losing ~100 of research every year for 19 years is about 1900 gp worth, but its worth it in most cases, but early in the game it might be an issue. Furthermore, I added an escape option that would recoupe some of the losses (10%) if you needed it. Currently I have it set to gain a manu at random rather then cathedrals specifically as after I thought about it, cathedrals were the only investment structures countries created.


Code:
event = { 
	id = 3201439  
	trigger = {  
  } 
	random = no 
	country = country 
	name = "Infrastructure investment payoff"  
	desc = "our redirecttion of state investments has paid off"  
	style = 1  
	date = { day = 10 month = december year = 1439 }  
	offset = 16  
	action_a ={  
		name = "superb!"  
		command = { type = gainmanufactory   which = -1  value = -1} 
	}  
}

I feel the event set is clunky and to make it for the AI would be difficult, repetitive, and possibly very unballancing. However, it suits the spirit I had in mind as a player.