Terrain values by tech or civic?

frekk

Scourge of St. Lawrence
Joined
Jun 21, 2003
Messages
3,151
Location
Kingston, Ontario
Is there any way to modify terrain values (besides commerce) by a given technology or civic?

For instance, could you have a tech or civic that allowed better food or shield yields from jungle or hills or something?

edit - whooops ... wrong forum ... can someone pls move this to main creation forum ... thx
 
I apologize for reviving this old topic, but I'd really like to see an answer this question myself... I would like to make a technology permanently increase all desert tiles (by giving them +1 food). How would I do this? What python code would I have to add?

Please help a modder in distress! :(
 
Chiyu, I'd recommend taking a look at this: http://forums.civfanatics.com/downloads.php?do=file&id=10535

With this wonder, Tsentom1 terraforms land up one level. I would think it'd be possible where you could terraform desert into another type of desert that gave one food by modifying using this code, maybe combined with a non-random event to call the python.

There may be other ways but this way could work.
 
I apologize for reviving this old topic, but I'd really like to see an answer this question myself... I would like to make a technology permanently increase all desert tiles (by giving them +1 food). How would I do this? What python code would I have to add?

Please help a modder in distress! :(

There's another way to do this with python Gir first did it with his Machu Pichu mod by giving mountains yields. In my Great Mosque of Djenne wonder I use code to give desert tiles in the city radius +2 Commerce.

The problem is, it basically does it once... permanently. Meaning, if that city was destroyed then the desert tiles would still have more commerce. The problem with such a tech would be, say you research it, you set it to give all desert in your city radius one food, done, but if you then gain more territory that has desert the new desert wouldn't have more food. Or if you lost that desert to someone else, it would still have the food (even if they didn't have the tech and then if they researched it the desert would now have +2 food).

Except for very specific situations (ones that have a function in the GameUtils) python works best for one time bonus type deals that fire on specific events (when a building is build, city captured, etc)

Giving +1 Food to a terrain in culture borders based on a tech is the sort of permanent bonus that really can only be done with SDK modding.

With that being said you can cheat and do this for river and water tiles because they already have the function programmed into the SDK for buildings (and thus use the python to give yourself a dummy building that does it). Sadly there's nothing for desert.
 
Thanks for the replies, both of you :).

I realize now that the way I wanted to implement it isn't possible because of these 'bugs'. So the best idea is probably to stick with a (national) wonder like the great mosque instead :). Or.. enable an improvement that can only be built on deserts. I'll have to see ^^.
 
Thanks for the replies, both of you :).

I realize now that the way I wanted to implement it isn't possible because of these 'bugs'. So the best idea is probably to stick with a (national) wonder like the great mosque instead :). Or.. enable an improvement that can only be built on deserts. I'll have to see ^^.

There is a mod that adds solar panels to desert tiles, not sure off top my head, maybe civfusion
 
Planetfall allows a tech and civic to modify the yields of features, and allows a civic to modify the yield of some terrains.

Oh, it's SDK of course. But a closer inspection of the thread reveals you're not interested in that.
 
I realize now that the way I wanted to implement it isn't possible because of these 'bugs'.
They aren't bugs, they're just limitations of Civ4's Python engine. As Maniac said, all this can be done with the SDK.

If you want to stick to Python, my first thought would be to create an improvement for desert tiles, and just add that improvement to every desert tile (where applicable) when the civ gets the technology/civic/whatever. Just to warn you, it's a bit more work than it may seem at first.
 
Back
Top Bottom