Platyping's Python

Code:
				while(loopCity):
					if loopCity.isCoastal(10):
						if bCitychosen == 0:
							chosenCity = loopCity
							bCitychosen = 1
						elif loopCity.getCulture(chosenPlayer.getID()) > chosenCity.getCulture(chosenPlayer.getID()):
							chosenCity = loopCity					
					(loopCity, iter) = chosenPlayer.nextCity(iter, false)
				chosenCity.setNumRealBuilding(gc.getInfoTypeForString("BUILDING_CHANNEL_TUNNEL"), 1)
				if not gc.getGame().isNetworkMultiPlayer() and chosenCity.getOwner() == gc.getGame().getActivePlayer():
					popupInfo = CyPopupInfo()
					popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
					popupInfo.setData1(iBuildingType)
					popupInfo.setData2(chosenCity.getID())
					popupInfo.setData3(0)
					popupInfo.setText(u"showWonderMovie")
					popupInfo.addPopup(chosenCity.getOwner())
				CyInterface().addImmediateMessage(CyTranslator().getText("TXT_CHANNEL_TUNNEL",(chosenCity.getName(),chosenPlayer.getCivilizationDescriptionKey(),)), None)

Try this, the old style with movie codes for the other player as well

Notes:
If you are using Azadi Tower as well in your mod, additional codes have to be added because now it no longer triggers onBuildingBuilt codes for the 2nd CT, so Azadi will not check if that is the first World Wonder of that city.
 
Heey, the original Golden Bull is from 1222 and it's for Hungary
It was very important for medieval Hungary, I think it's fairly safe to say that it was more important for Hungary than the one you found was for the HRE
Also - not that it matters too much - but I suggested it as a project a couple pages before ;)
 
Yeah, I was looking for the Golden Bull you mentioned, but didn't think there will be more than one, so I just took the first one I found lol.
Thus, I also designed the benefits based on the 1356 version, is it still acceptable for the 1222 one?
If it is, then I will just change the civilopedia and movie pic to a 1222 one.

Edits:
Megapack and Gigapack updated since it is a game breaking bug.
Have not included extra codes to account for Azadi Tower for Channel Tunnel.
Movie Pack 2 updated as well for the new project.
 
Yeah, I was looking for the Golden Bull you mentioned, but didn't think there will be more than one, so I just took the first one I found lol.
Thus, I also designed the benefits based on the 1356 version, is it still acceptable for the 1222 one?
If it is, then I will just change the civilopedia and movie pic to a 1222 one.

Yeah, it works for the 1222 one too
Thanks! :king:
 
Don't be too happy though.
As I mentioned in earlier posts, these Maintenance reduction wonders work as intended, and income in the main screen adjusted accordingly.
However, this reduction is not reflected in the financial advisor though, as it is added as negative extra cost, so the XXX maintenance will still reflect as if there is no reduction.
If you are ok with that, yeah it works.

Mausoleum of Momine Khatun
Spoiler :
Civ4ScreenShot0002-27.jpg

Yeah, finally found a wonder with a little bit of scientific relation.
Last of the settled great people series.
Growth only occurs in the cities with settled Great Scientist if happy > unhappy.

Artwork by embryodead


Edits:
Golden Bull
Changed text and artwork to 1222 version.

Galata Tower
Changed python codes to be 20% as intended. It was functioning at 10%

Channel Tunnel
Added compatibility with Azadi Tower in Megapack and Gigapack

Megapack, Gigapack and Movie Pack 2 updated
 
Kizil Kule
Spoiler :
Civ4ScreenShot0004-22.jpg

Only affects units built, not units created, so drafted ones no bonus.
Don't wish to activate the callback.

Notes:
For modders using other wonders adding XP as well, make sure this wonder is pasted below all others.

Artwork by embryodead


Edits:
Brandenburg, Fort Knox, Temple of Heaven

XP Limit using changeExperience code raised to 999 from 100.
Actually for most mods there is no difference.
What it means is that if the unit already has > 100 XP, the wonder will not add XP to it.
Since these 3 are using onUnitBuilt, chances of a new unit built with > 100 XP is quite negligible.
But I just raise it to 999 for some unusual mods, just a change of number anyway.

Gigapack
Shifted Venetian Arsenal codes below Castra Praetoria. Wrong order

Megapack, Gigapack and MoviePack 2 updated
 
That one was a coincidence :D
Already had one that is doing the movement bonus during Golden Age similar to persian.

Shore Temple
Spoiler :
Civ4ScreenShot0005-15.jpg

Modified version of Interfaith Dialogue Belief of Civ V

Gets Science for spreading religion to cities with other religions already present.
The more religions already present, the more science you get.
Since BTS only have 7 religions, the max u get is 18% when you spread to a city with 6 others.

Note:
This only works when you are using your missionaries to spread.
If others use their missionaries to spread to your cities for you, tough luck.

Artwork by Hrochland
 
Static ones.
If you want long versions, look into Arian's thread
 
Coptic Orthodox Cathedral
Spoiler :
Civ4ScreenShot0006-14.jpg

One more for the Achievement Series.
For the Philosophers
Great General excluded

Artwork by Hrochland
 
hmm... it has been, know that I do read EVERYTHING around here still :D I just have so much my on my hands these days to post and commit to things (though I aim to make a slot somewhere along the line :lol:)
 
Ah, got a stalker, must watch what I typed carefully then :D

Saint Stephen's Basilica
Spoiler :
Civ4ScreenShot0007-13.jpg

Yet another freebie wonder.
Was thinking of granting it only when city has all religions, but on 2nd thoughts I have never seen AI did that before, so reduce the requirements.
Now it spreads the remaining ones to the city as well when it is granted.

Artwork by Hrochland


Countdown to 250: 10

Getting senile, can't remember if I did any changes to Megapack since the last update.
So might as well reupload it.
Megapack, Gigapack, Moviepack 2 updated
 
Hi. I have, as you know , in my mod code for Natural Wonders. Can you write for me code for the wonder :
When have a civilization on their territory six of all the natural wonders , civ can construct a building ( wonder ) XY ?
If it is Possible in python
thanks
Hroch
 
Back
Top Bottom