you could modify the Python OnBuildingBuilt to give you unit that appears once you've built the building. And then you make the cost to build the unit -1 so that it can't be built unless you've built that building. So you could have a city improvement called "Coastal Battery" and on building the improvement have a unit appear in your city with that name. I've done that before.
What I couldn't figure out is how to make units bombard yet unable to move!
Too funny!He was asking to produce a unit and a building at the same time, with the method that uses hammers, not pythons.
Too funny!
Admit it Jarlaxe Baenre - you despise the Python because you don't know any.
onCommentPosted
:lol: = gc.getInfoTypeForString(POST_TYPE_PYTHON)
pBaldyr = gc.getInfoTypeForString(POSTER_BALDYR)
WittyComeback = gc.getInfotypeForString(TXT_KEY_IMAGINATION_31)
if (pBaldyr.isPoster(:lol:)
pPost.setNumRealOccurences(WittyComeback, 1)
else:
pPost.setNumRealOccurences(WittyComeback, 0)
Of course we should just learn C++ instead
Oh yeah, you're that Macintosh guy who can't mod CivIV for real.
Buy a PC?
Compile my own DLL file?!? Never!Pay hundreds of dollars for a computer when my computer is free?
Get viruses on a computer and have it stop working?
Lose all of my computer skills and have to start over again?
Get a CHUNKY keyboard?!?!?!?!
Actually, Macs are PCs in all but name, running an Unix-like OS.Well, I'm not ever getting a Mac, that much is sure. Not because a PC is superior...
Why did you ask this again, and why here? This is for tutorials and references. And, like I asked in the other thread, why? Where's the gain? If you wanna build a 60-hammer unit and a 60-hammer building, and you're making ten hammers per turn, you can finish one in 6 turns and the other in 12 turns. If you split it to 5 hammers each, you get both done in 12. There's no gain.
Moderator Action: One more offtopic most, and everything offtopic in here will be moved to the bin.