I am making a lord of the rings mod, and one of the features I would like is to have the Ring represented as a world wonder. I also want to have a "Quest of the Ring" international project that prevents anyone from getting it, but only if it has not already been built. That way there is a fun race between players working together to destroy it, or trying to get it for themselves.
But after thinking about it I'm not sure if such a relationship is even possible.
One way I've thought about this is to have different buildings of the same class. Let's say one is the "ring", available to "evil civs" through buildingclassoverrides, and one is "the ring is destroyed", available to "good civs" through buildingclassoverrides. "The ring is destroyed" could be given for free to the winner of the international project, and if it's a world wonder, then that would prevent anyone else from getting the "ring" because it's the same class.
The problem with this approach is that if an evil civ (whose version of the same class is the "ring" not "ring is destroyed") conquers the city, it will be converted into the other version. Just like how when any civ that has a unique building conquers a city with a generic, it gets converted into the unique.
So as far as I can tell, I don't think the mechanism I want is possible using XML.
I'm experienced with XML, but have no experience with LUA. Does anyone with experience want to chime in and just tell me whether they think this would be possible? And if it is just point me in the right direction and I can figure it out.
For example, is there any way that once a certain international project is complete, the construction of a particular building or buildingclass is simply blocked map-wide? Maybe by giving a free building to the winner that blocks the other building map-wide?
Or, is it possible with LUA to give a particular technology to every civ in the game once an international project is complete? That way I can at least use an obsolete (otherwise inaccessible) tech so that even if the AI stupidly builds the ring, it won't do anything.
PS: I know about the Building_LockedBuildingClasses table but that only affects one city, not the whole map. I basically would want one world wonder (representing the ring being destroyed) to block another world wonder (the ring) map-wide, so only one of them can exist.
Thanks
Moderator Action: Welcome to CivFanatics. Moved this thread to the main C&C forum as that is where questions are posted. leif
But after thinking about it I'm not sure if such a relationship is even possible.
One way I've thought about this is to have different buildings of the same class. Let's say one is the "ring", available to "evil civs" through buildingclassoverrides, and one is "the ring is destroyed", available to "good civs" through buildingclassoverrides. "The ring is destroyed" could be given for free to the winner of the international project, and if it's a world wonder, then that would prevent anyone else from getting the "ring" because it's the same class.
The problem with this approach is that if an evil civ (whose version of the same class is the "ring" not "ring is destroyed") conquers the city, it will be converted into the other version. Just like how when any civ that has a unique building conquers a city with a generic, it gets converted into the unique.
So as far as I can tell, I don't think the mechanism I want is possible using XML.
I'm experienced with XML, but have no experience with LUA. Does anyone with experience want to chime in and just tell me whether they think this would be possible? And if it is just point me in the right direction and I can figure it out.
For example, is there any way that once a certain international project is complete, the construction of a particular building or buildingclass is simply blocked map-wide? Maybe by giving a free building to the winner that blocks the other building map-wide?
Or, is it possible with LUA to give a particular technology to every civ in the game once an international project is complete? That way I can at least use an obsolete (otherwise inaccessible) tech so that even if the AI stupidly builds the ring, it won't do anything.
PS: I know about the Building_LockedBuildingClasses table but that only affects one city, not the whole map. I basically would want one world wonder (representing the ring being destroyed) to block another world wonder (the ring) map-wide, so only one of them can exist.
Thanks
Moderator Action: Welcome to CivFanatics. Moved this thread to the main C&C forum as that is where questions are posted. leif
Last edited by a moderator: