Mod Request - Desecrate Land

Would someone be able to create a mod where you could cast a Strategic spell to remove the ability to build cities on a large group of tiles? I would never play without it.

It could start small, maybe 3x3 but get up to 15x15 or so.

9,255 views 15 replies
Reply #1 Top

I'm pretty sure this would require the ability to alter those tiles' grain production yields. I'm not sure that that's possible with a spell like this. You can do it through city enchantments/curses easily enough, but I don't know of a way to alter the tile yields with a 'map' type spell:/ Been looking into that this afternoon, but haven't stumbled upon anything useful.

Reply #2 Top

I'll look into it. 

I know for sure the radius can not be altered with calculations, so it will be static.

Reply #3 Top

This is actually really simple because all you really need to do is copy an existing spell. I copied birth of summer and tuned it up a bit.

   <SpellDef InternalName="DesecrateLand">
        <DisplayName>Desecrate Land</DisplayName>
        <Description>Desecrate the land.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>300</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
End of quote

Unlocks from Death 5 obviously.

Reply #4 Top

I think that'll change what the terrain looks like, too, but yeah, that should work.

 

Any idea on how to just alter tile yields via spells?

Reply #5 Top

I haven't tried it, sorry. But I guess you could try putting stuff like

       <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>TileYieldGrain</Attribute>
            <Value>-9</Value>
        </GameModifier>

although that's a wild guess.

 

Reply #6 Top

That's exactly what I tried, but it did nothing. Ah well.

Reply #7 Top

Also you can try placing a world resource with that modifier. A sort of beacon of life-draining. Could work.

Reply #8 Top

how do i implement the mod?

Reply #9 Top

go to C:\Users\yourusername\Documents\My Games\FallenEnchantress\mods\data\ and make a new file called OthelloDesecrateLand.xml and copy that into it. Make sure you have "Use Mods" turned on in the options in-game.

Reply #10 Top

sweet! thanks, never playing without the mod. Death 5 is a little too far for me, moved it to life 2 but that may be too soon (not to mention the 5 mana cost change i made).

Is there a way to make it so the land cant even support an outpost? remove shards, iron deposits, etc?

Reply #11 Top

Such spell should show the fertility as is, but prohibit anyone settling but owner of spell. It should require heavy maintenance.

Something of a Shield of Earth, or Ban

Reply #12 Top

Ok this will be poorly formatted but here's my work in progress (perhaps a "Rejuvenate Land" spell to counter this):

Scorched Earth Spell:

Level 1

   <SpellDef InternalName="ScorchedEarth1">
        <DisplayName>Scorched Earth I</DisplayName>
        <Description>Burn the house to the ground.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

Level 2

   <SpellDef InternalName="ScorchedEarth2">
        <DisplayName>Scorched Earth II</DisplayName>
        <Description>Burn the farm to the ground.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>2</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>150</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

Level 3

   <SpellDef InternalName="ScorchedEarth3">
        <DisplayName>Scorched Earth III</DisplayName>
        <Description>Burn the town to the ground.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>5</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>300</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

Level 4

   <SpellDef InternalName="ScorchedEarth4">
        <DisplayName>Scorched Earth IV</DisplayName>
        <Description>Burn the region to the ground.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>20</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>1000</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

Level 5

   <SpellDef InternalName="ScorchedEarth5">
        <DisplayName>Scorched Earth V</DisplayName>
        <Description>Burn the world to the ground.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <IconColor>153,110,71</IconColor>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <AutoUnlock>1</AutoUnlock>
        <Radius>200</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20000</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

Reply #13 Top

Do you have your prereq spells right for Fire1,Fire2 and so on for each version?  I ask this as the ScorchedEarth4 and 5 version both show Fire1 as the prereq.

Reply #14 Top

good catch, complete oversight!

Reply #15 Top

All good, I have gotten pretty good at looking for the small details after the fact after making all the different armors and then remaking them when I wasn't happy with them.