Tying a city (or a hero) to a unit

Question to the modding gurus out there:

Can y'all think of any way to tie a city to a unit, so that the city can build improvements for the unit. I'm thinking of making the Golem more fun (and potentially actually useful). Perhaps restrict one golem per city, and then you could "build" the golem a +5 fire attack, etc.

A less-awesome way to do it would be to add buildings that give (e.g.) +5 fire attack to all subsequent golems built. But the first way is so much more thematic.

Perhaps a similar idea (mentioned somewhere else on here, I think) would be to tie a summon to a hero, so the hero could then cast more spells to further buff a summon. I'm sure you could come up with all sorts of things: -5 hp on hero to +10 hp on summon, etc. etc.

As long as we're fantasizing, hell, have a spell/building that requires you to sacrifice an item and then it gets added to the golem/summon, etc. etc.

Maybe this is all v1.1, 1.2, or expansion stuff, though.

3,012 views 3 replies
Reply #1 Top

For the first thing, what you can do is create an improvement that summons a creature. That creature would then at the start of combat have a battleautocastspell trigger. That spell would in turn boost the creature depending on the unitstats it is getting from a city. This way you could avoid bonuses to ALL defenders, and target a certain unit with the bonus.

I haven't tried if "city summoned" defender creatures can activate the battleautocastspell trigger, but it's something to test if you want to dig around a bit.

 

There's another way to do it, but it means the changes won't show up in Unit Details (they'll still work though). Cities are actually unique in a way because it is the one place you can be sure that the enemy isn't in a city when they attack you. So what you could do is give the city a certain unitstat from an improvement, then in the special creature do things like this

           <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>UnitStat_Attack_Boost</StrVal>
                <StrVal2>UnitStat_Boost_Summon_Creature_Golem</StrVal2>
                <Value>3</Value>
                <Provides>If City has Boost Summon Creature Golem, all attacks from this unit deals +3 Attack</Provides>
                <vsLower>1</vsLower>
            </GameModifier>

Reply #2 Top

But the creature would essentially be a Guardian Idol, right? That's actually a pretty good idea and would be an awesome way to make them useful.

I was thinking about Golems, though: that is, units that can leave the city and exist on the strategic layer.

Reply #3 Top

Either of those solutions would work for non-guardian units (units that can move outside cities).