Hi all,
Just had a quick look at the new UnitStat comparison stuff in 1.6, specifically the Marcher Archer GameModifier:
<GameModifier>
<ModType>Unit</ModType>
<Attribute>AdjustUnitStat</Attribute>
<BoolVal1>1</BoolVal1>
<StrVal>UnitStat_ChanceToCrit</StrVal>
<StrVal2>UnitStat_IsBow</StrVal2>
<Value>25</Value>
<BonusValue>0.5</BonusValue>
<Provides>+25 Critical Hit Chance when using a Bow</Provides>
</GameModifier>
So this mostly is fairly obvious.... I believe that the BonusValue is what is compared to.... so in this case presumably:
If UnitStat_IsBow > 0.5 then +25 UnitStat_ChanceToCrit
If UnitStat_IsBow < 0.5 then nothing.
The bit that i'm not sure about is the <BoolVal1>1</BoolVal1>, anyone want to take a guess or enlighten me on what that might be for? Is that maybe the flag to decide if the StrVal evaluated belongs to the target or the user of the ability?
If/when anyone figures it out before I get round to trying it would be great to know.
Thanks.