Need help with... a lot, actually.

KevinJK

Warlord
Joined
Nov 23, 2010
Messages
121
Because I just felt like it, I decided to change the Inca's improvement into a building, mostly just as an experiment to see if I could do it. Apparently I can't. Or really, I can, but I can't give it the bonus I wanted.

See, I wanted to make it a really unique bonus by having it add food to mountain tiles, thus making the Inca uniquely able to work mountains rather than having them be unworkable like they are for everyone else. My issue is that adding to a mountain seems to be impossible using just the XML, so I may need to use LUA. I do not know LUA.

But I already went to the trouble of making the new icon.
NewTerraceFarmIcon256.png

See? It's nice. It would be a shame to waste.


So I come to you all for help. If this type of bonus is possible to give a building using XML, please let me know. If not, please help me learn LUA. I've been trying to figure it out for a while. I know I'll need SerialEventHexCultureChanged to handle when the city's border grows, but there appears to be no event for when a building is constructed in the first place, and I also have no clue how to go about detecting the tiles around the city and whether the city owns them.
 
I don't know how the mod Civ 5, but I've seen a mod that makes Mountains workable tiles and gives a bonus yield to them.

(Haven't tested it, but comments seem to indicate it works.)

Just search Paro Taktsang in the workshop to find it: you might be able to ask the creator how he did it.
 
Back
Top Bottom