Exclusive Spells? (ie, tireless march)

I am unable to figure out which line in Tireless March makes it so you can only have ONE effect of this at a time.

 

I am making a faction Thrallherder, which similar to Beastlord, can Tame monsters. I have set up a tame ability for each monster type, and all I need to do now is make them exclusive so if the spell is cast to tame a new unit, the old one reverts to the wild. How do I make a spell ONLY able to enchant one unit/city at a time?

5,632 views 3 replies
Reply #1 Top


Wouldn't it be enough to have your sovereign produce 1 unit of a unique unstored resource and then have this resource as production requirement for the spell? Don't know if spells can have production requirements, just brainstorming a little bit.

Reply #2 Top

Assuming you're talking about LH, isn't it these:

<CanStack>0</CanStack>

<UniqueSpellUnlock>TirelessMarch</UniqueSpellUnlock>

<GameModifier>
   <ModType>Unit</ModType>
   <Attribute>UnlockSpell</Attribute>
   <StrVal>TirelessMarch</StrVal>
   <Duration>-1</Duration>
</GameModifier>

 

I could be wrong though but i'm not sure that will work for what you're trying to do.  I think tireless march works because it's ends up being an enchantment on the unit that stays there.  Actually thinking about it... that might work but maybe you would also have to put an ongoing effect onto the target also so that it knows the spell is active still.

Regardless I don't think you'll be able to cast the spell on a new unit, won't you have to cancel or whatever the active one first?  Not sure how tireless march works I haven't tried it in LH.

Reply #3 Top

Tireless march has this also.

 

        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockSpell</Attribute>
            <StrVal>TirelessMarch</StrVal>
            <Duration>-1</Duration>
        </GameModifier>

 

This seemingly allows the unit to gain a copy of the spell, I wondered why that was. Perhaps the copy in your spellbook when you re-cast the spell comes from the enchanted unit? I will try the Unique Spell Unlock Tag, and see if it lets me "only have one tame beast at a time".

 

The concept is the faction can only build a few types of units, however can "tame" a limited number of units to compensate it. Luckily the spell upkeep can negate the need to worry about "unit upkeep" for units kept by this spell.