Open MrTitainin opened 3 years ago
Just off the top of my head, I suspect this may not be viable to implement, at least in the exact way that you describe - the information required simply might not be available at the point where the swarm attacks values are evaluated. But I'll leave this open at least until I or someone else has had a chance to confirm or deny this.
[specials]
[attacks]
id="AE_efm_frenzy"
name=_"frenzy"
description= _ "The more wounded this unit is the more attacks he gets"
multiply="(1 + ((((1.099999 * max_hitpoints) + 0.0) - hitpoints) / max_hitpoints))"
[/attacks]
[/specials]
[specials] [attacks] id="AE_efm_frenzy" name=_"frenzy" description= _ "The more wounded this unit is the more attacks he gets" multiply="(1 + ((((1.099999 * max_hitpoints) + 0.0) - hitpoints) / max_hitpoints))" [/attacks] [/specials]
This solves my immediate issue, thanks. I'll keep the overall issue open though, because I'm sure there are more applications for WFL weapon objects there though.
I need to be able to use WFL weapon object, like self in weapon filter, for value calculation in context of weapon specials, preferably including conferred specials. It would be good if there are ones for both attacker and defender. They could be named weapon and other_weapon for example. Consider the following code as the example of possible application:
Fixed value is not viable in my case because base changes.