Anything wrong with this? I am putting my attacker near appropriate trees, then damaging other units, but the value of S_INS_Int is always 0 (this is checked later on).
Anything wrong with this block of code?
Anything wrong with this block of code?
Trigger:
- Set S_INS_Int = 0
- Set S_INS_Int = (S_INS_Int + (Number of units in (Units within 600.00 of (Position of (Damage source)) matching ((Destructible-type of (Matching destructible)) Equal to Summer Tree Wall))))
- Set S_INS_Int = (S_INS_Int + (Number of units in (Units within 600.00 of (Position of (Damage source)) matching ((Destructible-type of (Matching destructible)) Equal to Ashenvale Tree Wall))))
- Set S_INS_Int = (S_INS_Int + (Number of units in (Units within 600.00 of (Position of (Damage source)) matching ((Destructible-type of (Matching destructible)) Equal to Ashenvale Canopy Tree))))