[eQuestion] Can there be calculated abilities?


I suspect the answer is no, but I thougt it would not harm to ask anyway.

Imagine that you want to create a channellers ability that gives 1 mana per turn per each unit in the group. It would be something like that

 

Code: xml
  1.             <GameModifier>
  2.                  <ModType>Resource</ModType>
  3.                  <Attribute>Mana</Attribute>
  4.                  <PerTurn>1</PerTurn>
  5.                  <Calculate InternalName="Value" ValueOwner="CastingUnit">
  6.                      <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
  7.                  </Calculate>
  8.              </GameModifier>

 

But it does not work. I also tried removing the ValueOwner="CastingUnit and does not work either. I tried replacing the expression by a plain 1 and it works. So the question is, is there a way for this to work? Thanks in advance for any possible answer.

2,680 views 2 replies
Reply #1 Top

Calculations can only reliably be used in spelldefs.

Reply #2 Top

Quoting Heavenfall, reply 1

Calculations can only reliably be used in spelldefs.

That was what I suspected. So no way to scale an ability depending on the group units at the moment. X(

 

Thanks for your answer Heavenfall :D