bonus to summons?

is there any way to do that ?

 

i noticed the trait only apply to sovereign (at least the tag is player, dunno it the tag unit works as well)

 

basically i wanted to make a couple of summoners only item increasing level (or if possible adding abilities or just stats) of the summons, but just using the trait modifier doesnt seem to work at all

 

any idea?

thnx in advance

3,610 views 8 replies
Reply #1 Top

Okay so what you want is to do something like the summoner background which has this

           <GameModifier>
                <ModType>Player</ModType>
                <Attribute>AbilityBonus</Attribute>
                <StrVal>A_SummonedBonusLevels</StrVal>
                <Value>2</Value>
                <Provides>+2 level for Summons, unlocks the Summon Shadow Warg spell</Provides>
            </GameModifier>

but you can't put those types of modifiers on items. They simply don't work.

Your first option is to create a readable book like Pariden has for learning champions new spellbooks. You can do that, but instead put the above modifier in the trait they learn. This makes the item consumable, and gives the user a trait which boosts spell summons.

 

The other way is to provide a custom unitstats for all your items. Say UnitStat_DDD_SummonLevel. You then give it to various items of your choosing. Then you go and modify all the spells that summon units and add your new unitstat to the calculation of the summon level. This makes the summon dependent on who summons it since unitstats are individual. But it also gives you the opportunity to put extra summon-levels on items.

Reply #2 Top

thnx very much, very helpful

 

but is it that simple?

i just provide a new unitstat to items (abilities eventually) and put it in calculation?

dont i need to define it somewhere?

 

and what about strategic? can i read sovereign unitstat even there to add it ?

Reply #3 Top

You also need to define the unitstat like in CoreUnitStats.xml. But other than that, yeah, it's that easy.

You can read the same unitstats in strategic as in tactical afaik.

Reply #4 Top

get structure then is:

CDATA[[UnitOwner_GetDDD_SummonLevel] ?

also i can just add it in coreunitstats or need a different file like you did in your unitstat_BG ?

Reply #5 Top

Yes.

If you're modding the installation directory then it is best to put it in coreunitstats.xml.

 

 

Reply #6 Top

 

ok, the stat is working (i made it visible to check )

but spell calculation doesnt seemt to get it :/

 

 

        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Shadow Warg</StrVal>
            <UnitClass>ShadowWarg</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_Getsummonbonus] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>

 

i think the format for unit_get is wrong

 

 

Reply #7 Top

btw its all working i just had to put the stat clean there :D

now this brought me so many ideas i wont live enough to do all i want

 

thnx again

Reply #8 Top

Quoting ddd888, reply 8
so many ideas i wont live enough to do all i want

 

We need a support group.