How to check in LUA in what direction a river flows?

Great! That is super useful, you should get a prize :)
This should be placed somewhere on civ5 wiki until Firaxis will release official SDK-LUA interface.

So, the functions in question are:
GetRiverEFlowDirection()
GetRiverSEFlowDirection()
GetRiverSWFlowDirection()

Good to know, in meantime I modified my script and it works without those functions (I modified AddRivers() function to put rivers in place twice - on both parts of map, original and mirrored).

I already posted it here on civfanatics: http://forums.civfanatics.com/showthread.php?p=9730553#post9730553

Really thanks for that piece of code Nercury, it will help us a lot!
 
We're trying to discover the methods on the Plot object. The SDK is probably using a metatable, and I'll have to read up at home on how to access the metatable again. If you get it, you can try the above on the metatable.

Edit: Read the second page. Read the second page. Then post. :p
 
Civ4 had a RiverID property on the Plot. I don't see get or set methods for this in Civ5. Has anyone else found a way to identify which river a plot is adjacent to?
 
Back
Top Bottom