Rise of Darkness

One of the ideas that I have been tinkering aroud with is a feature that I call Living Forts. It allows the player to create forts as a unit instead of an improvement and make the fort improvement lose most of its bonuses and would have to be set so they can't be put to close to eachother.

The living Forts would use five new units:
  1. Mason: 200 :hammers: 2 :move: the Mason unit would be buildable with Masonry and would be able to create the fort units on tiles with the fort improvement on them with a spell that has some duration.
  2. Tower: 5 :strength: 1 :move: Fort Class (would be spawned on ancient towers)
  3. Fort: 7 :strength: 1 :move: Fort Class. This would be the default fort that masons create and would be able to upgrade s/w Fortification 1 with later techs and levels
  4. Castle 10 :strength: 1 :move: Fort Class s/w Fortification 2 Req Mathmatics
  5. Citadel 15 :strength: 1 :move: Fort Class s/w Fortification 3 Req Blasting Powder
Note: The forts have :move: but can not move from their location because they can not enter any terrain. The movement is added in so they can heal and so they can be activated once they gain a promotion.

Promotions of the Fort class:
Fortification 1: Increases passive exp growth (would work like Channeling)
Fortification 2: Increases passive exp growth
Fortification 3: Increases passive exp growth

Promotions Requiring Fortification 1
Combat 1
Medic 1
Drill 1
Magic Resistance
Guardsman
Magical Garrison 1 (Requires KotE): Allows casting of the push spell (pushes back units)

Promotions Requiring Fortification 2
Combat 2
Combat 3
Medic 2 (Requires Sanitation)
Drill 2 (Requires Archery)
Magical Garrison 2 (Requires Sorcery): Allows casting of Poisoned Blade, Enchanted Blade, Flaming Arrows

Promotions Requiring Fortification 3
Combat 4
Combat 5
Medic 3 (Requires Medicine)
Drill 3
Drill 4
Magical Garrison 3 (Requires SoW): can't think of a really good spell (possibly crush)

Some civs could have special versions of forts such as a stronger Dwarven fort or a Svart fort that could hide its nationality.

I want to know what people think so I can get it fixed up for the release.
 
No, not yet Kael just released another patch so I'll need to fix up so things but the .40 version will be ready by next Sunday or earlier unless another ice-storm hits.
 
Version .20 is out and compatable with patch t.
Changes:
  1. Added Odio unit who uses the Ira strength function for strength growth.
  2. Odio can be freed from Odio's prison if the civ is Evil by a lv 15 unit.
  3. Brigit is now only freeable by good civs
  4. Added the Living forts (see top of page 3)
  5. Added a Palace for the Barbs to allow them to use Immortals
  6. Added a Romance (Falamar) Event for Tuanra
  7. Allowed the Overlords to take control of the Leviathan
  8. Allowed the Sheiam to reserect the Four Horsemen under their control for a heavy price.
  9. Made the Four Horsemen spawn under the control of the Infernals if the Infernals are alive.
  10. Made the Library of Souls a civ wonder (works like Hall of Mirrors or Reliquary so no other civ can get it but it is unique for the Cult of Nikito)
  11. Added Diplomacy for Nikito and Tuanra
  12. Made the Cult of Nikito appear as an AI
  13. Added the Soul Sealer, King of Beasts and Sniper UUs for the Cult of Nikito
  14. Added the Item Heart of Stone: allows user to cast petrify which causes enemy units to gain a temporary held promotion (50% wear off per turn) The only current way to obtain it is that it is held by one of the guardians and the pristinus pass.
  15. Added the Body of Stone Building: Requires a lot of different manas, feral bond and the Heart of Stone to be in the builder's city
  16. Added Ryloc: a neutral hero that requires the Body of Stone Building. Has 13 :strength: +2 Earth mana affinity starts with Dragon, Channeling 1-3 and Earth 1-2
  17. The Soul Lord unit (spawns from Brandalines Well) Can cast Oversoul, a dominate spell with high resistance
  18. The Pyre of the Seraphic spawns a powerful Azer called the Eye of Bhall who can summon Azers
  19. Priests start with Magic Promotions:
    Priest of Order: Law 1, High Priest of Order: Life 1
    Priest of Empyrean: Sun 1, High Priest of Empyrean: Fire 1
    Priest of Runes: Earth 1, High Priest of Runes: Law 1
    Priest of Leaves: Nature 1, High Priest of Leaves: Air 1
    Priest of Overlords: Water 1, High Priest of Overlords: Chaos 1
    Priest of Veil: Entropy 1, High Priest of Veil: Fire 1
    High Priest of Esus: Chaos 1
  20. Calabim can raze their cities by feasting when the city goes under 1 pop (Thanks, Magister)
  21. All Amurite Units start with the promotion Mageborn: +5 Spell Damage, Units gain passive exp more quickly.
 
nikita DO NOT start with weaken and NONE of built units had weaken promo.

Nikita is strong now...Do you really need to nerf him:cry::cry::cry:
 
More strangeness, I just can't seem to apply the weak promotion to the units, it doesn't work like it did earlier by adding it with a building or through python in the onunitbuilt code. Is there something that is wrong with my code?
Code:
	def onUnitBuilt(self, argsList):
		'Unit Completed'
		city = argsList[0]
		unit = argsList[1]
		player = PyPlayer(city.getOwner())
		pPlayer = gc.getPlayer(unit.getOwner())

		iFreeProm = unit.getFreePromotionPick()
		
		if city.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_CULT_OF_NIKITO'):
			unit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_WEAK'), True)
I might have to apply it with the race function again but that was awkward and applied to Nikito and the shapeshifters.
 
More strangeness, I just can't seem to apply the weak promotion to the units, it doesn't work like it did earlier by adding it with a building or through python in the onunitbuilt code. Is there something that is wrong with my code?
Code:
	def onUnitBuilt(self, argsList):
		'Unit Completed'
		city = argsList[0]
		unit = argsList[1]
		player = PyPlayer(city.getOwner())
		pPlayer = gc.getPlayer(unit.getOwner())

		iFreeProm = unit.getFreePromotionPick()
		
		if city.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_CULT_OF_NIKITO'):
			unit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_WEAK'), True)

I'll give you a free hint:

if city.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_CULT_OF_NIKITO'):

!= means every civ that isn't the cult will get weaken. You want ==.

:P
 
Thanks a lot Methuselah! I was beginning to think that there was some sort of block hardcoded in the game core.

On a side note I really should learn python instead of beating code with a hammer and seeing if it works.
 
Thanks a lot Methuselah! I was beginning to think that there was some sort of block hardcoded in the game core.

On a side note I really should learn python instead of beating code with a hammer and seeing if it works.

But the hammer way is more fun. :)
 
If you dig around in the Final Frontier mod you should be able to find a way to get your fort units to work without giving them one movement point. Also, the starbases in Final Frontier have code in them for defining cultural borders around them which might also be useful.
 
Yeah, I was thinking of looking for that after things slow down a bit.

EDIT: Personally I was thinking of looking through Lukefist's tidbits to find that one out.

Early in the testing I did for the forts, a Fort unit with Elven, or Dwarven was able to travel through forests or hills which was very scary. I will eventually look at the Final Frontier code for that
 
Patch A is attached in the third post

Patch A: Patch A will not break savegames
  1. Increase chance of Mary Mobus Event
  2. Filled in more TXT_KEY Entries
  3. Fixed Error in Repel Enemies Spell
  4. Removed Worked ability to build Forts
  5. Removed Immortal Ability from Heart of Stone
  6. Added Xienwolf's Great People popups
  7. Forts now have a cultural border like the Starbases in Final Frontier (thanks, Lutefisk)
  8. Raised AI weight for the Roar and Meteor spells / this will cause Archeron to be a bit more aggressive but not too powerful
  9. Forts can no longer enter Jungles, Forests and Ancient Forests
 
After several back and forth shapeshifting my Nikita as warrior has mysteriously gained ability to capture all defeated units: griffons, spiders, barbarian units, etc. Do I have to assume it is intentional feature?

Nikita's promos as warrior are typical warrior promos.Oh and captured units of course, do not have weaken promo.
 
Nikito is supposed to be able to capture only 10% of units and only built units are supposed to be weak.

Also, Nikito does get the typical warrior promos but only when he is a warrior if you want arcane or recon you would have to make him a scout or adept. If you mean heroic promos that would be because he doesn't have hero for balance reasons.
 
After reading Kael's new pedia entry for Gibbon Goetia I started thinking that he shoud get a better ability than impersonate leader.

Gibbon Goetia

Spoiler :

How many roles have I played? They blur together in my mind.

I was a victim from the moment my life began. An attacker came for my mother even as she gave birth to me. He possessed Garrus, a simple stable boy and used him to sneak up through the inn to my parents room. He tried to get close to my mother, to attack her at her most vulnerable. My father fought to stop him. The details are unknown except that a battle occurred in the room and my father was struck a mortal blow. With his last breath he uttered a holy word that destroyed the spirit possessing Garrus and collapsed the entire inn.

My mother died in the collapse, my father died from the attack. The stable boy was pulled from the rubble, one arm was crushed but he appeared otherwise healthy. My soul fled the dying infants form and took home in his newly evacuated body. I was born into the body of a teenage boy.

The innkeeper raised me, teaching me as if I had simply forgotten my life and in a few years I served him well. He raised me as he rebuilt the inn. But I always knew that Garrus wasn’t my name and I listened intently when those that survived the collapse retold the story.

We didn’t know much about my parents. But my father wore the yellow robes of a priest of the Empyrean. There was a small temple to the god in our city and when I was ready I joined their ranks as a disciple. Within the clergy my identity didn’t matter, I was simply a child of Lugus. My superiors praised my empathy, questioned my maturity and laughed when I said that I thought I was the son of a priest. They claimed no such priest had visited the city and considered my thoughts the wishful thoughts of boy with too much imagination.

My right arm was still crushed, by this point it was shriveled and permanently wrapped against my side. When I asked if it could be healed the priests prayed over it, but it never got better. Others came and received healing, nobles, merchants, beggars, soldiers. But I remained maimed.

One day in early Aedrini the temple was in an uproar. Priests barked orders, disciples scurried about trying to look busy, no one had thought to wake me. After many questions a priest finally gave me my answer.

“Luridus Chalid is coming child, stay out of the way.”

I began to retreat to my chamber when he yelled after me, “And don’t bother him when he arrives!”

That next day a single man arrived on a dappled grey mare. He rode without an escort and though he needed no guards on the road, he could have used some outside of the temple. He was immediately mobbed by well meaning disciples, genuflecting priests and hordes of gawking townspeople. He wore the robes of a Luridus and I wondered if my father wore the same.

He spent the next three days in our hastily constructed council chamber. The chamber was open for anyone to hear the deliberation and speak in an orderly manner. They discussed the towns role in the Overcouncil, local legislation and a problem with brigands in the area.

The council meetings always went well into the night, and Chalid attended every dawn ceremony. He only had a few hours between to get some sleep. I was hurrying to the dawn service one morning when I found him standing alone in the refectory looking out the windows toward the east. The morning bell rung, signaling the dawn ceremony was about to start and Chalid turned to find me staring at him.

“Morning disciple, are you ready to receive our lords blessing?”

I managed to stammer something unintelligible out. Despite that he smiled at me with true affection and clasp me on the shoulder. That was the first he noticed my withered arm.

“Do you have something to ask me?” he said.

He expected me to ask for healing, but that didn’t matter to me. Instead I asked, “What sort of spirit attacked my mother?”

He put his arm around me and we walked to the sanctuary together.

“Let me pray about it” he said.

The service was exactly like all the others but I paid little attention. Instead I watched Chalid. He looked confused as he prayed, sometimes pained, sometimes resigned and I imagined that it had something to do with my question.

I waited after the service. Chalid spoke briefly with the vicar who had performed the service and meet a few of the members. And then he left the sanctuary and went into the council chambers.

I spent the day neglecting my duties and waiting outside the council chamber. But just past nightfall the towns warning bells rang out, guards ran through the streets yelling that brigands were attacking.

Everyone flooded out of the temple. At the edge of the town shapes rushed through the darkness. Black tipped arrows cut guards down where they writhed screaming in pain. Guards brought torches and under the cover of shield men they retook the fortifications while the shadows simply moved to attack at another point.

A voice from the darkness called, “What good is a god that abandons you every night?”

Chalid ignored the taunt and ordered the men back within the cities lantern light. He alone bounded over the wall and in to the darkness at the cities edge. His mace glowed faintly in the starlight and though we couldn’t see any attackers on the open field we all knew they were moving in on him.

Chalid prayed and an aura of golden fire burst up around his head and dark men caught fire on the field, on the walls, and even a few that had snuck into the city. The holy fire consumed them and guards rushed in to beat or capture the men.

But one was not distracted by the fire. It clung to his black armor and that of his steed but he rode soundlessly towards Chalid, like a shadow of a dark god stretching out to touch him. Chalid raised his mace up, and then back down and the field was lit up as if it was day. A pillar of golden fire, like the sun itself but full of righteous fury, crushed the rider. There was a horrific scream and then when the pillar retreated back up into the sky the rider was gone.

I spent the night tending to the guardsmen wounded in the attack. Their wounds festered from poison and the men passed between fevered dreams and anguish when awake. There was little I could do but try to keep their wounds clean and try to make them comfortable. Chalid and the priests prayed over the men and some were healed, but too many were injured.

That next morning I returned to my chambers to wash up and change into fresh clothes, as did most of the temple. I headed again to the dawn ceremony and found Chalid alone again in the refectory looking out towards the east.

“You saved the town.” It sounded hollow when I said it. Unsuited to the miracle I had witnessed.

“I only had faith that Lugus would protect me, he did everything else.”

I smiled, the warmth Chalid had shared with me yesterday was gone now. He looked troubled but I assumed it was just the events of the long night. I know he hadn’t slept either.

“Did you find out anything about my mother?”

Chalid looked at the floor, the morning bells rang though neither of us moved.

“I should lie to you” Chalid said, “the mandate of truth is sometimes painful. I am sorry. I won’t lie but I will warn you, it would be better if you did not know.”

“I want to know” I argued with more passion than I intended, “Knowledge, truth, revelation are the precepts of Lugus. I should know my own past.”

“The woman’s name was Magda de’Vala” Chalid started, “The man wasn’t her husband but her guardian, though he was a priest of the Empyrean. The child was prophesied to be a great hero, which is why many sought to kill Magda and her baby.”

He paused, but I only waited for him to continue.

“The stable boy Garrus died three days before the attack. That which killed Garras, that which killed Magda’s guardian and caused the collapse that killed Magda and her baby. That was you.”

I was furious and I rushed out of the refectory. Chalid watched me go then headed into the sanctuary. My thoughts went back to those early days, I never felt like I was the stable boy. And for the first time I questioned my origin. Would a babies spirit in a boy’s body be able to adapt that quickly? Could even a possessed stable boy be able to overcome a priest of Lugus, or was that creature something darker? And was I that creature?

I stopped in the temples infirmary. Except for the wounded it was empty, everyone in the temple was in the dawn ceremony despite those laying here near death. There was only one man awake, a bandage covered his left thigh. I knelt at his bedside. When I saw the torment he was in I forgot a bit of my own.

“What is your name?” I asked.

“Abin,” he said, “I’m a jeweler who pretended to be a city guard.”

That wasn’t unusual. Our city was too small to maintain full time guardsmen so most were volunteers with other jobs.

“Either you are too good at pretending, or not good enough.”

He gave me a weak smile.

“Can I pray for you?” I asked. He nodded.

I placed my hand on him and closed my eyes. I have seen many healed but I had never performed a miracle myself. If I could do this, if I could heal this man and channel the power of Lugus then I couldn’t be whatever creature Chalid thought I was. Maybe I was the holy child, maybe the attack on Magda de’Vala failed.

I could feel his labored breath. I could feel his pain, feel his love for his large family of nieces and nephews. His quiet store and hours spent working on small intricate jewelry. And I felt him die.

Then I felt the poison strike, it burnt through my body focused on the wound in my left thigh. I stepped away from the bed in shock. I was taller and my robes, which were big on me, were now tight. And my formerly withered arm was now trapped uncomfortably in its folds.

I loosened the robe and held out my full, strong arm. But it didn’t look like my arm, it was the jewelers arm. And as I looked at myself I realized that I was identical to the dead body of the jeweler that lay in the bed in front of me. And then the poison struck again and sent me to my knees. I picked myself up and fled the temple in pain and confusion.

Pain will drive you mad and it only took a few hours of suffering like this before I found a farmer out working in his field.

“Blind goats Abin!” he said, “what is wrong with you? Why are you wearing a disciples robes?”

I threw him to the ground and held him, smashing him once in the face when he tried to fight back. I felt for that closeness, I reached out to find everything that he was, and the pain drifted away. When I opened my eyes I saw him staring up at his own reflection in horror. The last I saw him he was running toward his farmhouse, I started running as well. I don’t think I have ever stopped.


I still don’t know what I am. All the roles that I’ve played since then blur together in my mind. I’ve gotten better at reading people and worked for a time for an assassins guild, simply for reading people I touch. During other times I steal the lives of those I wish to share. I tried the lavish extravagance of princes and wealthy merchants, but there is little to envy them for once you understand how they truly live. The best stolen lives come from the simple fathers of large families, those that have the love and respect of everyone in their lives. Dump the body of one of those in a shallow grave and I have a few good weeks of fun before I become bored and move on to something else.

Maybe Chalid was right, maybe I am a monster.

I want some people's opinions on what I should do. Should I make it so that he becomes any unit that he defeats in combat (reversable of course) and give him something like the mimic ability. Post to say which one you would want or suggestions for a better idea.
 
Yeah, I was thinking of looking for that after things slow down a bit.

EDIT: Personally I was thinking of looking through Lukefist's tidbits to find that one out.

Early in the testing I did for the forts, a Fort unit with Elven, or Dwarven was able to travel through forests or hills which was very scary. I will eventually look at the Final Frontier code for that

Another solution is the fort racial promo, even though you alreayd solved it.
 
Hi cyther,

great mod! Looks like you forgot to change the buildingclass entry from library of souls in civilizationInfos.xml. It should be BUILDINGCLASS_CIV_WONDER1. Keep up the great work!
 
Sorry about the wait. Patch b is out now and causes the following changes:

Patch B:WILL break savegames
  1. Fully updated to FfH patch v
  2. Hiring Mercs, or Bandits are abilities
  3. Fixed issue with Library of Souls being a civ_building (thanks, Sephi)
  4. Gives forts the Medical spells
  5. Fixed more TXT_KEY Issues
  6. The Four Horsemen of always hostile
  7. Gibbon Goetia turns into any unit that he defeats in combat and can turn back with a spell
  8. High Priests gain Channneling 1 when they upgrade
  9. Eaters of Dreams can feast a city to death
  10. Escape and Sever Soul are now tried to promotions
  11. Divided Souls can't be obsoleted

The Patch is on the 3rd post.

If you want to install it you should create a copy of FfH patch v and rename it Rise of Darkness v.20 then install the Rise of Darkness patch B into that folder.

Although the patch breaks savegames there are no known bugs to feel free to finsih your savegames before installing and Enjoy.
 
Back
Top Bottom