Resource icon

Golden Gate Bridge Wonder (XML+Python) 2016-10-05

Before you get excited, no, it doesn't create a workable bridge for land units to move over water. That's impossible without editing the DLL which I can't do (though if someone has the code and wants me to convert it I can).

I made this for my Thomas' War mod:

Golden Gate Bridge World Wonder:

GoldenGateNew.jpg


So besides a general 10% commerce boost to all cities, it'll also increase the owner city's total culture by 20% (So if that city had a 1000 culture, afterwards it will have 1200).

What I am proud of is the code I wrote for the placement of the wonder. It doesn't place a graphic in the city instead:

BridgeBefore.jpg


BridgeAfter.jpg


Basically, if there is a land tile up to four tiles away (in a cardinal direction only at the moment, I might change this) it will build a graphical bridge. This is mostly only aesthetic (like with the great wall) but does give 1 more commerce to any 'bridge' tile.

For modders, all the python is labeled and all the xml changes are at the bottom. For both just search for bridge and you can find my changes.

Credits:
Python, XML, Button: me (tsentom1)
Wonder Movie: Arian
Model" Refar

Thread

Edit: Cleaned up the code, removed the gold bonus, made it a 20% culture bonus.
  • golden_gate_new_7cY.jpg
    golden_gate_new_7cY.jpg
    120.8 KB · Views: 287
Author
tsentom1
Downloads
960
Views
960
First release
Last update

Ratings

4.00 star(s) 3 ratings

More resources from tsentom1

Back
Top Bottom