Climatic Apocolypse

Rystic

Turtle Wizard
Joined
Jun 28, 2008
Messages
677
Location
New Jersey
I was bored today, so I decided to code a flashy AC100 event. I edited two files:

CvRandomEventInterface (goes in Assets-->Python-->entrypoints). This will make Armageddon have a devastating backlash on the world (this will cause a slowdown because a lot of code is running. Don't panic if the game seems to freeze. It's just thinking really hard.)

CustomFunctions
(goes in Assets-->Python). This will make burning sand adjacent to a river get Obsidian Plains instead of flames, and make hell terrain recede faster.

The backlash does more harm to good teams than evil ones, because the Armageddon event doesn't effect hell terrain. It's ideal for good vs evil battles.

Anyway, this is just the first version. I still need to work on it's efficiency (I want to cut back on the slowdown). Any feedback/ideas are welcome :)

View attachment files.zip
 
What does it do in detail?

At the moment, it does kind of a reverse genesis on the world. Changes are:

Grasslands-->Plains(forest/jungle become burnt forest or flames)
Plains-->Desert (forest/jungle become scrubs or flames)
Desert-->Burning Sands (instant flames or obsidian)
Marsh-->Shallows(with possible fallout)
Snow-->Tundra
Tundra-->Fields of Perdition
 
Thank you for the Obsidian Plains fix. This has always annoyed me immensely. But does it transform only Floodplains into Obsidian Plains, or all Desert tiles next to rivers? (Doesn't make a difference except on custom maps.)
 
Thank you for the Obsidian Plains fix. This has always annoyed me immensely. But does it transform only Floodplains into Obsidian Plains, or all Desert tiles next to rivers? (Doesn't make a difference except on custom maps.)

Tiles next to rivers, but that can be easily fixed (even fixed both ways, so obsidian plains become floodplains if hell reverts).
 
I thought the problem was that Flames destroy the obsidian planes pretty much immediately.
 
You could make it also damage all good units and/or units with Order or Empyrian as their religion by 20% or so. Just for that extra kick while your down :D
 
I thought the problem was that Flames destroy the obsidian planes pretty much immediately.

I changed

Code:
	if iTerrain == iBurningSands:
		if pPlot.isCity() == False:
			if pPlot.isPeak() == False:
				if CyGame().getSorenRandNum(100, "Flames") <= iFlamesSpreadChance:
                                     pPlot.setFeatureType(iFlames, 0)

to

Code:
			if iTerrain == iBurningSands:
				if pPlot.isCity() == False:
					if pPlot.isPeak() == False:
						if CyGame().getSorenRandNum(100, "Flames") <= iFlamesSpreadChance:
							if pPlot.isRiverSide() == True and pPlot.isHills() == False:
								pPlot.setFeatureType(iObsidian, 0)
							else:
								pPlot.setFeatureType(iFlames, 0)
 
I'm really not one for mod mods, but I'll give this one a whirl. I've got a good Hyborem game going right now, so I ought to be able to see it in action. Hopefully it won't make my computer explode. :badcomp:
 
I'm really not one for mod mods, but I'll give this one a whirl. I've got a good Hyborem game going right now, so I ought to be able to see it in action. Hopefully it won't make my computer explode. :badcomp:

Let me know how it go. I still worry that there might be bugs with it.
 
Back
Top Bottom