Referencing riversides in Python?

LightofAbraxas

Chieftain
Joined
Sep 9, 2011
Messages
30
So, I'm in the process of creating a few civ-unique spells, and the one I want to make for the Malakim is a terraforming spell that creates a flood plains in a riverside desert tile. I've been able to cobble together all the code from other spells except for the requirement that the tile be riverside.

Does anyone have any idea how this might be coded? Thanks!
 
Thanks! Any tips on using this? The only examples I've seen of something similar would be this:

if pPlot.isRiver():
return False

How would I ask the inverse of this, essentially:

if pPlot.isnotRiver():
return False

Because returning just true for the top section of code wouldn't exclude non-river tiles, correct?
 
There are other river specific functions too:
CyPlot:

BOOL isRiver ()

BOOL isRiverConnection (DirectionType eDirection)

BOOL isRiverCrossing (DirectionType eIndex)

BOOL isRiverSide ()

BOOL isNOfRiver ()

VOID setNOfRiver (BOOL bNewValue, CardinalDirectionType eRiverDir)

BOOL isWOfRiver ()

VOID setWOfRiver (BOOL bNewValue, CardinalDirectionType eRiverDir)
 
Top Bottom