Tapping into Apostolic Palace/Selecting Plots

j_mie6

Deity
Joined
Dec 20, 2009
Messages
2,963
Location
Bristol (uni)/Swindon (home)
Right,

Basically I have 2 new Apostolic Palace Events:

Excommunication
Crusades

how for each of these I need to be able to do certain things unavailable to the XML. therefore where in the DLL can I access the nessicary code to create the effects. The AI I should be able to manage as the process for picking the Crusade and Excommunication is simple from AI point of view. (though where do I put it?)

Also, for the Crusade if the Player is Pope then s/he should get to pick a plot on the map for the crusade to be directed at. I know this is possible with python but the methods used are selectPlotPython or simmilar so will not be used in the SDK. How can I select a plot in the SDK/ how can I access the plot via python and relay back to the code in SDK

thanks,
Jamie
 
you asked for it:

when the appostolic palace excommunication resolution is chosen by the pope a popup asks which civ should e excommunicated, if the vote passes the civ is forced to adopt The excommunicated "religion" and is eligble for a crusade.

When the crusade resolution is chosen by the pope s/he gets to pick a plot on the map to crusade to (this must be a city of a non-state religion civ). if the vote passes all members declare war on that player and a crusade begins (the rest is handled by my CvCrusade class, on the subject of crusades).

however I don't know how to actually connect this to the AP or how to select plots in the SDK
 
when the appostolic palace excommunication resolution is chosen by the pope a popup asks which civ should e excommunicated, if the vote passes the civ is forced to adopt The excommunicated "religion" and is eligble for a crusade.

It should be one or the other. Does the pope pick a civ or a religion?

When the crusade resolution is chosen by the pope s/he gets to pick a plot on the map to crusade to (this must be a city of a non-state religion civ). if the vote passes all members declare war on that player and a crusade begins (the rest is handled by my CvCrusade class, on the subject of crusades).

You probably wan to pick a city, not a plot, correct? And is it limited to only civs that have been excommunicated?
 
1) the crusade is opposite state religions (excommunication results in the civ having all cristian cities being converted into excommunicated and they cannot have cristianity spread into their lands, meaning that they cannot re adopt cristianity untill excommunication is lifted (not sure when that happens, presumably after a time limit or reelection) and therefore is of different state religion) and yes cities. The AI will compile an array of the largest cities owned by eligible targets and randomly pick one to crusade against (maybe more likely to pick one with cristianity inside, like jerusalem for example to simulate holy land etc.). simple on their part :p but the player needs to be able to select a city via clicking a plot.

2) It isn't really a one or the other option. As the civ becomes excommunicated the pope can if he desires can call a crusade on that civ next vote by mechanic.

Do you have any idea how I should be doing this? :D
 
Sorry. I've never messed with any Voting stuff. I imagine you might need to create some new XML values for the Voting Options.

As for the Crusade, I think it would be better to build a limited list of city targets and let the player choose one. Letting the player choose a plot seems like it would be a lot of work and lead to lots of potential issues.
 
hmm mhopefully god_emperor stops by, he knows everything :D
 
Back
Top Bottom