Desert me~! Events modder Neophyte

PotatoSamurai

ChooseReligion enthusiast
Joined
Aug 27, 2007
Messages
168
Location
Acworth, GA
I haven't really modded events at all before, and I'm trying to figure out how to change a tile's terrain (to Desert, in this case). Is this possible in XML, or do I need to dig me out some python?
 
I don't think that there's a parameter in the xml to do this for you. A python callback would do it simply. I think this would work.

Spoiler :

Code:
def applyDesertEvent(argsList):
	iEvent = argsList[0]
	kTriggeredData = argsList[1]

	iDesert = gc.getInfoTypeForString('TERRAIN_DESERT')
	pPlot = gc.getMap().plot(kTriggeredData.iPlotX, kTriggeredData.iPlotY)
	pPlot.setTerrainType(iDesert,True,True)
 
Back
Top Bottom