Hello and thanks in advance to anyone that can help!
I'm in the progress of making a simple mod for Civ 4 Warlords and I'm trying to get a few more things done but can't figure them out from the available API. So here's a few questions to see if anyone knows the answer:
1. CyPlot() has a setRevealed(...) function that shows what terrtain lies below the black on a map. So, if I want to reveal a city I can use CyCity().getX() and getY() and call CyMap().sPlot() to get the plot of the city and nearby tiles, then using setRevealed I can have a player have the area viewable. The problem is this isn't exactly what I would like. It doesn't remove the fog of war, like how an enemy city is viewable when he has your religion in his city. Does anyone know of a way to remove fog of war, like how having religions in a city allows you to see the city?
2. Is there a way to direct AI to go after a particular city using python? Perhaps someone knows of how to use CvGameUtils or even CyPlayer to do this?
Like I said earlier, thank you for any help you can give!
-cemason
I'm in the progress of making a simple mod for Civ 4 Warlords and I'm trying to get a few more things done but can't figure them out from the available API. So here's a few questions to see if anyone knows the answer:
1. CyPlot() has a setRevealed(...) function that shows what terrtain lies below the black on a map. So, if I want to reveal a city I can use CyCity().getX() and getY() and call CyMap().sPlot() to get the plot of the city and nearby tiles, then using setRevealed I can have a player have the area viewable. The problem is this isn't exactly what I would like. It doesn't remove the fog of war, like how an enemy city is viewable when he has your religion in his city. Does anyone know of a way to remove fog of war, like how having religions in a city allows you to see the city?
2. Is there a way to direct AI to go after a particular city using python? Perhaps someone knows of how to use CvGameUtils or even CyPlayer to do this?
Like I said earlier, thank you for any help you can give!
-cemason