Motivated Defenders Mod (BTS 3.19)

stolenrays

Deity
Joined
Aug 2, 2009
Messages
2,063
Motivated Defenders Mod v1.3 (BTS 3.19)

This mod was created by isolating the source code of Motivated Defenders from Thomas SG's CCV. I just ported it as a standalone. It is a very small mod and consists mostly of just a few sdk changes. Defenders get a 25% tile defense bonus.

--------Details--------------
-(From CCV) Defenders of the capital or a holy city (if you have it as your state religion) have an additional defense bonus of 25%.
-Motivation is cumulative if the capital/holy city are in the same city
-Motivation defense moves if the capital moves
-Motivation defense is not bombardable.

-------For Modmakers-------
-SDK Changes are commented as Motivated Defenders
-Enable/Disable via the custom Game Option
-Modified the defensive bonuses via the GlobalDefines.xml file

-------Version History------
Spoiler :

-------Version 1.3------------
-Simplified GlobalDefines
-Removed Unneeded source files
-Removed unneeded GlobalDefines
-Added Concept Information and Text
-Added Readme & Changelog

-------Version 1.2------------
-Added Custom Gameoption from IIW Mod
-Removed globaldefines control
-removed unneeded defensemodifier code and replaced with plot defense code
-modifiers for holy city and capital are separate and cumulative
-Defense Modifier text shows up on plot, unit helptext, and during combat as Tile Defense Bonus.

-------Version 1.1-----------
-Added missing GlobalDefines.xml

-------Version 1.0-----------
-Standalone Ported from CCV


-------------Credits--------------
-Thanks to Thomas SG/CCV for developing the original Mod

DOWNLOAD
 

Attachments

  • Civ4ScreenShot0016.JPG
    Civ4ScreenShot0016.JPG
    160.2 KB · Views: 94
I started an advanced start game to see how it works.
Seems that even normal cities, you get the boost?

That one was pointing at Bombay's warrior
 
Didn't try much since I notice the error directly on the first turn :D
Anyway, in the screenshot there are still 2 cities beside the error one and the capital.
The one at the top contains a scout, but he does not get the bonus, which is correct.
But the one to the right contains a warrior, but he gets the bonus as well.

Seeing the one on the right is also on hills, maybe you are right, error with hills? Or error with warriors :D

Either way, definitely an error :D

By the way, what happens if you are in a city that is both a capital and a holy city?
Or a city that is holy site for > 1 religion?
Still 25% or culmulative :D
 
I fixed the error and I'll upload it later. Here are your answers:

1. 25% Defense is for the Tile. Think of it like an invisible Hill.
2. Motiviation is not cumulative. If both a holy city/Capital are on the same tile, only 25% tile defense is given.
3. The Motivation defense appears underneath the city and in combat odds.
4. Motivation Defense is not bombardable/reducable.
5. If you move the capital, the Motivation Defense instantly moves with it.
6. Holy City must be your state religion to have an effect.
 
Hmm, no idea what you did or maybe you uploaded the wrong version :D

Started another advanced start game and got this:
1) Archer in Capital doesn't have bonus
2) Warrior in other City still have bonus

You know I am picky :mischief:
 
Maybe you could upload the saved game just to be sure, but I think I know what is is going on.

1. I think that only a certain hover lets you see the bonus and it is when you look at combat odds. Not sure though. Look at the tile defense underneath the city. It says 45%.
2.Warriors always get a 25% city defense Bonus in Vanilla. The motivation defense will say Tile Bonus.
 
Ah ok, the tile bonus is actually added to the cultural defense, I thought it will either display on the unit itself or the tile itself like hills or forests :D
 
Updated the mod to v1.2. You'll see the changes in the first post. Rewrote the code and other big changes.

-Defenseive bonus is listed on the plot or when hovering over the unit when the unit is on the plot. It is not a unit trait, so it won't appear unless you do the previous or are in combat. In combat it'll be listed under Tile Defense and the hover text on the plot/unit will list it as Defensive Bonus.
 
Version 1.3 is up:
-Simplified GlobalDefines
-Removed Uneeded source files
-Removed uneeded GlobalDefines
-Added Concept Information and Text
-Added Readme & Changelog

I've simplified the mod so now only 3 source files have been changed.
 
Back
Top Bottom