Platyping's Python

PHP:
	def onCityAcquired(self, argsList):
		'City Acquired'
		iPreviousOwner,iNewOwner,pCity,bConquest,bTrade = argsList
## Specialized Trait Start ##
		if pCity.getNumBuilding(gc.getInfoTypeForString("BUILDING_DORMITORY")):
			pCity.setNumRealBuilding(gc.getInfoTypeForString("BUILDING_DORMITORY"), 0)
			pPlayer = gc.getPlayer(iPreviousOwner)
			pPlayer.getCapitalCity().setNumRealBuilding(gc.getInfoTypeForString("BUILDING_DORMITORY"), 1)
## Specialized Trait End ##

What if that was the last city? ;)
 
Tried, nothing happens.
Dorm got destroyed, but there won't be a new one

Edits:
Airborne, Specialized, Traits Pack:
Dummy Building no longer National Wonder
 
if you are concerned use a try except clause.
 
Another question, I've seen you use bool ignoreBuildingDefense() for Walls of Babylon. Is there any difference between this and bool isIgnoreBuildingDefense()?
 
The first can be used directly from CyUnit.
The later has to be used from CvUnitInfo.
Since I can get what I want directly from CyUnit, why go an extra step to find the unit info to get the same results?
 
Crazy Horse Memorial
Spoiler :
Civ4ScreenShot0005-9.jpg


Memorial... a place to remember the dead.
One time effect, future civs destroyed wont trigger it.
Doesnt matter who destroyed the civ.
Maximum 5 free GA (still too high?)

The peak requirement requires python callback activation.
You can remove that part if you want

Artwork by Hrochland
 
Adaptive Trait:
Adaptive.jpg

Spoiler :
Igloo.jpg

Snowman.jpg


Currently, Igloo and Snowman can only be built on Ice.
Dunno whether it makes sense to build them on tundra as well.
Only leaders with this trait can build these 2 special improvements :D
Snowman is made by Saibotleih, Igloo forgot where I looted from.

Uses canBuild callback.
 
Nice ideas:goodjob: Igloo is from Civgold I am pretty sure

For crazy horse shouldnt there be a minimum not maximum? Since in a dual game, it would never really be worth building - I am assuming thats why you added the +2 free artists. I would change it so maybe they get +3 free artists if none are destroyed, 0 artists if some are destroyed, that way it isnt as OP and dont got to worry as much for a maximum
 
Yeah, the 2 free artists are consolation prizes in a sense.
There is definitely a need to add a maximum limit, else in a 50 Civ game, if 30 are destroyed, you gonna get 30 GA for building a wonder. That is OP to the extreme.
Actually I was thinking whether to add a golden age with length based on civs destroyed as well, as it is obviously a late game wonder, Great Artists may not be that helpful, whereas golden age is always good.

As for setting a minimum, I guess not for time being, because there are also some BTS XML wonders that are useful only when built in right locations.
Statue of liberty for instance, adds 1 specialist to each city on same continent. Sounds awesome, but what if I build it on an island?

Maybe I will just add a min 4 team requirement to it, so you won't be able to build it at all in dual games :D
 
WEll i guess a maximum is needed, but really rarely since ive never played a game with 30 civs destroyed :lol:

But at that point yes you have to build SOL in right place, but it is still benefits you if you buildit in right place, where this wonder wouldnt in any place.
 
New month New Works:

Temple of Edfu
Spoiler :
Civ4ScreenShot0000-19.jpg


Pray to the Falcon God of Sun, War and Protection!

Artwork by Refar
 
10% if you start the war, so a warrior with 2 STR will lose 0.2 STR, while a modern armor with 40 STR will lose 4 STR.

This wonder works much better when you are the one under siege, since their forces won't be in their territory when they declare war on you. Thus, they won't be able to regenerate the 15% loss straight away, whereas if it is the other way round, most likely their units are fortifying anyway, and will regenerate the 10% loss in 1 round
 
Thanks :D
Hopefully someone finds it interesting enough to test it out and see if it is balanced enough.

Found all these nice old models made by old artists, but some like this temple, are not found in most mods :dunno:

Thus, did something to them and hope someone will notice them again :D
 
Back
Top Bottom