Saarlaender
Chieftain
- Joined
- Jan 14, 2006
- Messages
- 60
Hi everyone...
First things first, I don't usually work computers, but I got XML figured out rather quickly and I've already played with religions in a mod, which works just fine. Python, still a closed book.
I have minor quirks and major questions, and I hope the people much, much more skilled then me can give me some hints...
For one, where are these symbols that appear next to the leader names in the score list? .. can' get those to work out right... I figured out already that they're called up by number, so if insert a new religion ni the middle in the religion file, that screws it up. Now it's at the end, the symbold ae right, except for the new one - it doesn't load the dds file either for the score list or for the symbol on a city name?
That should be the quicker fix. Here are two things, however, that might be harder, especially since I don't know the first thing about Python (yet.)
I added Protestantism. I would like to imlpement two things. One, once protestantism is founded (with printing press), I would like a loop through all cities, randomly changing christian (catholic) to protestant. I have an idea how to delete a religion and add one; that in itself should work, the inquisitor mod sows how. Now, though, how do I get to that point, how do I loop through the citis and ask its religion (as of course only the ones that have chistianity have a chance to switch), and how do I randomize it (as not all will switch?) Can I do this for the other civs, with a lesser probability?
Then, the civ that has the catholic shrine (renamed the Vatican) should be able to exert influence on other civs that have catholicism as a state religion, maybe even force civics (there's an XML function for that in the UN routine, but that's global. I'm looking for: asking what the state religion is - then forcing a civic on them, or creating extra religious loyalty points in the attitude if it is catholicism or Islam.)
For that matter, is it possible to change the attitude points depending on what religion it is the other civ has, not just disfavor because it's different?
That's a mouthful. I'l post the protestantism mod with the changes as it is (mostly xml) when i got some little bugs worked out, but I'd like to be able to implement further changes. I'll look through the python, but so far it's largely clouds and mist. Some little pointers would be a great help...
First things first, I don't usually work computers, but I got XML figured out rather quickly and I've already played with religions in a mod, which works just fine. Python, still a closed book.
I have minor quirks and major questions, and I hope the people much, much more skilled then me can give me some hints...
For one, where are these symbols that appear next to the leader names in the score list? .. can' get those to work out right... I figured out already that they're called up by number, so if insert a new religion ni the middle in the religion file, that screws it up. Now it's at the end, the symbold ae right, except for the new one - it doesn't load the dds file either for the score list or for the symbol on a city name?
That should be the quicker fix. Here are two things, however, that might be harder, especially since I don't know the first thing about Python (yet.)
I added Protestantism. I would like to imlpement two things. One, once protestantism is founded (with printing press), I would like a loop through all cities, randomly changing christian (catholic) to protestant. I have an idea how to delete a religion and add one; that in itself should work, the inquisitor mod sows how. Now, though, how do I get to that point, how do I loop through the citis and ask its religion (as of course only the ones that have chistianity have a chance to switch), and how do I randomize it (as not all will switch?) Can I do this for the other civs, with a lesser probability?
Then, the civ that has the catholic shrine (renamed the Vatican) should be able to exert influence on other civs that have catholicism as a state religion, maybe even force civics (there's an XML function for that in the UN routine, but that's global. I'm looking for: asking what the state religion is - then forcing a civic on them, or creating extra religious loyalty points in the attitude if it is catholicism or Islam.)
For that matter, is it possible to change the attitude points depending on what religion it is the other civ has, not just disfavor because it's different?
That's a mouthful. I'l post the protestantism mod with the changes as it is (mostly xml) when i got some little bugs worked out, but I'd like to be able to implement further changes. I'll look through the python, but so far it's largely clouds and mist. Some little pointers would be a great help...