vbraun
Raytracing
I want to make certain spots on a random map always be a Peak. I've looked through a couple Map Scripts and noticed in the Highland map script where it will change a mountain to a hill to avoid "pockets". Most notably are these seris of commands:
When I try those exact commands in the same function as the one in the Highland map (def assignStartingPlots()) nothing happens. Here is my code:
Funny thing is, Using the ingame Python Window, This works. (Also map.plot(x,y).setPlotType(PlotTypes.PLOT_PEAK, true, true) )
So what am I missing?
Code:
map = CyMap()
i = map.plotNum(x, y)
pPlot = map.plotByIndex(i)
pPlot.setPlotType(PlotTypes.PLOT_HILLS, true, true)
When I try those exact commands in the same function as the one in the Highland map (def assignStartingPlots()) nothing happens. Here is my code:
Code:
def assignStartingPlots():
map = CyMap()
i = map.plotNum(1,1)
pPlot = map.plotByIndex(i)
pPlot.setPlotType(PlotTypes.PLOT_PEAK, true, true)
Funny thing is, Using the ingame Python Window, This works. (Also map.plot(x,y).setPlotType(PlotTypes.PLOT_PEAK, true, true) )
So what am I missing?