Gaelan Again

Playing w/ 0.32c ->

Circle of Gaelan isn't founding. I've played through several games and usually am the first to sorcery, if not the first to have KOTE and a mage guild. The event triggers xml looks okay for all that I know. Has anyone had Gaelan trigger with the sorcery tech requirement? I haven't even seen the "willful apprentice" event occur for either me or the ai.

yea, I haven't even seen it once since .32 was released. I think the constellation events are crowding it out.
 
Magister is correct about the difference between GetNumBuildings and GetNumRealBuildings.

I agree with P_L, when I got Gaelan long ago after first fixing the event he was kinda nice (early mage, with some default spheres you might not have built nodes for), but I quickly became upset that I had NO WAY to get him Channeling 3. Now that he won't come until you get Sorcery Tech... I Don't quite see him as being worthwhile. He is no longer an early mage, now he is just "another" mage, one which cannot promote to Archamage.

It'd be kinda better if one of the following was done:
  1. He had a mechanism to gain Channeling 3 (automatic if you have more than 10 Mage Guilds?)
  2. He was just a normal Mage with a Unique Name, Hero and some starting Spheres (Thus you can promote to Archmage later)
  3. He was able to cast a few Govannon Style "Train Spells," preferably in different Spheres for the most part, but at the least in FEWER spheres.

Do any of those 3 and I love the little Cow-Killing, Ranger-Torturing freaky boy once again.
 
I guess he was just unaccessable for a while and so nothing was really done to him.

Since it's now possible to get him, maybe he should be updated?
 
I don't think he should have "train" spells. That would not work well in my modmod, where Givannons spells have been greatly changed.

Right now I'm leaning towards just letting him upgrade to an Archmage. Maybe also having a promotion(a la xienwolf's modcomp) that means he won't count towards the national limit on mages?
 
Gaelan as-is works best for the elves and the Khazad - a twincasting mage hero. He has decent stats once he gets to combat V, and with fire and death mana, you've suddenly got yourself a portable siege machine.

I would like to see him upgradable to an archmage, but still count within the national unit limit, and lose the attack strength (hey, he'd be an old man anyway). With death mana, he could become a lich - your own personal barbatos.

Also, thanks for posting the code, Xienwolf. I have yet to go in and replace it, but looks logical enough.
 
I've been playing Amurites with Living World and I get the Gaelan sequence very early almost every time. At that point, he is by far the most powerful unit in the game with 6/4 combat stats and Chaos 2 (mutate) , Fire 2 (fireball), and Body 2 (regenerate).
 
In CvEventManager.py
Code:
	def onCorporationFounded(self, argsList):
		'Corporation Founded'
		iCorporation, iFounder = argsList
		player = PyPlayer(iFounder)
		pPlayer = gc.getPlayer(iFounder)

		iCircle = gc.getInfoTypeForString('CORPORATION_CIRCLE_OF_GAELAN')
		iMageGuild = gc.getInfoTypeForString('BUILDING_MAGE_GUILD')
		if iCorporation == iCircle:
			for i in range(pPlayer.getNumCities()):
				pCity = pPlayer.getCity(i)
[COLOR="Lime"]#Gaelan Catacomb Add Begin
[COLOR="Red"]#				if pCity.getNumRealBuilding(iMageGuild) > 0:[/COLOR]
				if pCity.getNumBuilding(iMageGuild) > 0:
#Gaelan Catacomb Add End[/COLOR]
					pCity.setHasCorporation(iCircle, True, True, True)

		if (not self.__LOG_RELIGION):
			return
		CvUtil.pyPrint('Player %d Civilization %s has founded %s'
			%(iFounder, player.getCivilizationName(), gc.getCorporationInfo(iCorporation).getDescription()))

And

Code:
	def onCityDoTurn(self, argsList):
		'City Production'
		pCity = argsList[0]
		iPlayer = argsList[1]
		pPlot = pCity.plot()
		pPlayer = gc.getPlayer(pCity.getOwner())

		if pCity.getNumRealBuilding(gc.getInfoTypeForString('BUILDING_CITADEL_OF_LIGHT')) > 0:
			iX = pCity.getX()
			iY = pCity.getY()
			eTeam = gc.getTeam(pPlayer.getTeam())
			iBestValue = 0
			pBestPlot = -1
			for iiX in range(iX-2, iX+3, 1):
				for iiY in range(iY-2, iY+3, 1):
					pPlot2 = CyMap().plot(iiX,iiY)
					bEnemy = false
					bNeutral = false
					iValue = 0
					if pPlot2.isVisibleEnemyUnit(iPlayer):
						for i in range(pPlot2.getNumUnits()):
							pUnit = pPlot2.getUnit(i)
							if eTeam.isAtWar(pUnit.getTeam()):
								iValue += 5 * pUnit.baseCombatStr()
							else:
								bNeutral = true
						if (iValue > iBestValue and bNeutral == false):
							iBestValue = iValue
							pBestPlot = pPlot2
			if (pBestPlot != -1 and pPlot.getNumUnits() != 0):
				caster = -1
				for i in range(pPlot.getNumUnits()):
					pUnit = pPlot.getUnit(i)
					if (caster == -1 or pUnit.getLevel() > caster.getLevel()):
						caster = pUnit
				for i in range(pBestPlot.getNumUnits()):
					pUnit = pBestPlot.getUnit(i)
					pUnit.doDamage(10, 30, caster, gc.getInfoTypeForString('DAMAGE_FIRE'), true)
				if (pPlot.getFeatureType() == gc.getInfoTypeForString('FEATURE_FOREST') or pPlot.getFeatureType() == gc.getInfoTypeForString('FEATURE_JUNGLE')):
					if CyGame().getSorenRandNum(100, "Flames Spread") <= gc.getDefineINT('FLAMES_SPREAD_CHANCE'):
						pPlot.setImprovementType(gc.getInfoTypeForString('IMPROVEMENT_SMOKE'))
				CyEngine().triggerEffect(gc.getInfoTypeForString('EFFECT_PILLAR_OF_FIRE'),pBestPlot.getPoint())
[COLOR="Lime"]#Gaelan Catacomb Add Begin
		if CyGame().isCorporationFounded(gc.getInfoTypeForString('CORPORATION_CIRCLE_OF_GAELAN')):
			if CyGame().getHeadquarters(gc.getInfoTypeForString('CORPORATION_CIRCLE_OF_GAELAN')).getOwner() == pCity.getOwner():
				if pCity.getNumBuilding(gc.getInfoTypeForString('BUILDING_MAGE_GUILD')) > 0:
					if pCity.isHasCorporation(gc.getInfoTypeForString('CORPORATION_CIRCLE_OF_GAELAN')) == False:
						pCity.setHasCorporation(gc.getInfoTypeForString('CORPORATION_CIRCLE_OF_GAELAN'), True, True, True)
#Gaelan Catacomb Add End[/color]
		if pCity.isHasCorporation(gc.getInfoTypeForString('CORPORATION_BROTHERHOOD_OF_WARDENS')):
			if CyGame().getSorenRandNum(100, "Brotherhood of Wardens") <= 50:
				bAlert = False
				iX = pCity.getX()
				iY = pCity.getY()



Add the bits in Lime, and don't forget that you are replacing the line in Red

In that last bit, it might make it a little faster if you swap the IF (has Mage Guild) and the IF (Already has CoG)

Would something similiar to this work for the event with the Tower of Eyes and the free dungeons they get not counting in the order vs. veil event?
 
He triggered one time for me. The Enrage promotion and lack of channeling 3 made me wish that I didn't have him at all. I gave him access to the random spheres that I usually give my buffing adepts and then waited for him to flip barbarian and killed him. Got a couple courage, loyalty and enchanted weapon buffs from him, that was about it.
 
I haven't even seen the starter event for Gaelan since it was first added months ago (when it was broken and didn't actually activate the next step). I'm worried that all the constellation events are watering down the chances of getting it.

Any advice for actually getting ahold of this guy?
 
What does the guild do to the city its present in?

I.
 
It give plus 2 xp to newly created Arcane Units.
 
Haven't had it since going to .32e. (But sure have a lot of those damned Goblins and the Obelisk guy that keeps dying.)
 
Back
Top Bottom