Is there a way that I can make a conditional to see if a Unit is in range of another unit. So say Unit A weapon range is 80 and Unit B is within 30 of the weapon range. I need a conditional that can check for things like
pseudo code
if Target Unit B is in 50% of weapon range of Unit A then
Do average damage
increases chance to hit target
else
chance to hit target is less
do little damage if hit target
is there a solution that can check for weapon range or is there a solution that can be done through the data editor?
@farban6: Go Yes, you will have to use validators. There's a type of validator that checks the distance between 2 points or units. Then in your weapon effect you will use the validators to determine with final effect is called.
Heya
Is there a way that I can make a conditional to see if a Unit is in range of another unit. So say Unit A weapon range is 80 and Unit B is within 30 of the weapon range. I need a conditional that can check for things like
pseudo code
if Target Unit B is in 50% of weapon range of Unit A then Do average damage increases chance to hit target
else chance to hit target is less do little damage if hit target
is there a solution that can check for weapon range or is there a solution that can be done through the data editor?
@farban6: Go Yes, you will have to use validators. There's a type of validator that checks the distance between 2 points or units. Then in your weapon effect you will use the validators to determine with final effect is called.
@farban6: Go
It's the type Location Range. Check the Medivac - Heal Target In Range validator and u understand