Platyping's Python

An Eye for an Eye:

Dead Hand
Spoiler :

Civ4ScreenShot0004-3.jpg


When you nuke me, I have a 50% chance to nuke back at random city of yours.
Chance of it exploding depends on evasion and interception.
If success, you hate me for nuking you :D

Correct me if I am wrong:
Nuke Mechanics:
SDI 75% Interception, Tactical Nuke 50% Evasion
This means that SDI has 37.5% chance to intercept TN and NOT 25% right?


Added a Changelog Section

Countdown to 100: 4
 
quick question, if i take out this code from zizkov, will theo nly thing that it takes out is the 10% chance thing? I want to remove that because i think its to big of an advantage
Spoiler :
def onBeginPlayerTurn(self, argsList):
'Called at the beginning of a players turn'
iGameTurn, iPlayer = argsList

## Zizkov Start ##
pPlayer = gc.getPlayer(iPlayer)
iTeam = pPlayer.getTeam()
pTeam = gc.getTeam(iTeam)
bC_Zizkov = gc.getInfoTypeForString("BUILDINGCLASS_ZIZKOV")
if pPlayer.getBuildingClassCount(bC_Zizkov) ==1:
for iPlayer2 in range(gc.getMAX_CIV_PLAYERS()):
pPlayer2 = gc.getPlayer(iPlayer2)
iTeam2 = pPlayer2.getTeam()
pTeam2 = gc.getTeam(iTeam2)
if pPlayer2.isAlive():
if pTeam2.isHasTech(gc.getInfoTypeForString("TECH_SATELLITES")) == false:
if (iTeam2 != iTeam) and ( gc.getTeam(iTeam2).isVassal(iTeam) == false ):
concealchance = CyGame().getSorenRandNum(10, "Conceal")
if concealchance ==0:
CyMap().setRevealedPlots(iTeam2, false, false)
for iCity2 in range(pPlayer2.getNumCities()):
pCity2 = pPlayer2.getCity(iCity2)
clevel = pCity2.getCultureLevel() + 2
iX = pCity2.getX()
iY = pCity2.getY()
for x in range(iX - clevel, iX+clevel +1):
for y in range(iY - clevel, iY+ clevel +1):
pPlot = CyMap().plot(x,y)
pPlot.setRevealed(iTeam2, true, false, -1)
CyInterface().addMessage(iPlayer,true,20,CyTranslator().getText("TXT_ZIZKOV1",(pPlayer2.getCivilizationDescription(iPlayer2),)),'',0,'',-1,-1,-1, false,false)
CyInterface().addMessage(iPlayer2,true,20,CyTranslator().getText("TXT_ZIZKOV2",()),'',0,'',-1, -1,-1,false,false)
## Zizkov End ##
 
u know... u can just... type manually lol
Else who can understand the codes lol
 
@dacubz145
By the way, I don't get what is such a big advantage of the conceal chance?
Just buy the world map back lol. Only matters if all hate you and won't sell to you

Edit:
Zizkov TV
1) Rewrote codes onBeginPlayerTurn
Previously, Zizkov has a 10% chance to conceal for each player. So it may conceal 2 or 3 if lucky.
Now, Zizkov has a 20% chance to conceal for 1 random player.
More efficient, since you dont have to roll a number for every player.

2) onBuildingBuilt
Replaced for loop with while loop when looping through all cities

Windows of World
Change in AI_ChooseProduction from checking if Team has project to Team does not have project

Megapack
Updated, changed to 7z format, smaller size
 
urg, the greatest python programmer I know first said to me:

"displaying your code without indentation is like walking around with no clothes on"

use
Code:
 :lol:
 
Shock and Awe
Spoiler :

Civ4ScreenShot0014-3.jpg


1 turn for you to whack happily.
I guess this would make a nice civics:evil:


Countdown to 100: 3
 
Thanks for the support as always :)
@dacubz145, Don't think possible to allow units to carry new types of cargo.
Unless you have a dummy set of carriers that can do that, but cannot be built.
Then replace all existing ones and allow user to build new carriers but not old carriers if he has project.
Pretty ugly in my opinion.

The Las Vegas Strip
Spoiler :

Civ4ScreenShot0039.jpg


National Wonder (so more people can gamble :goodjob:)

I made sure... winning odds not that high :)
Artwork by Grave


Countdown to 100: 2
 
Thanks :D
Don't tell everyone how bored I am :mischief:
Although I find a new entertainment recently
 
up to you :D
After the 100th work, I will take some time to re-balance the existing ones first though and probably add the stupid civilopedia links
 
Well i have just come across the easiest way to make building art. Ive got 3 skyscrapers and a bunch of units in like an hour, so any wonder you want I can make as long as it is on Google Warehouse

Don't think i can do the seet vault, all of the art includes the inside, not the outside, its a possibility and i will try it but can't promise anything
 
Ah you are as bored as me :D

These might need an artwork remake if you are interested, since there were no specific artwork for them, so I only managed to get something that look like them.
Adam Smith
Banaue Rice Terrace
Cairo Citadel
Catacombs of Kom El Shoqasfa

Additionally, I have no idea how these are supposed to look like, if you know more, you may want to make them more realistic:
Hierapolis Sawmill
Channel Tunnel
P.O. Box 1142

:goodjob:
 
Back
Top Bottom