Self-proclaimed jack of all trades
Your condition is "target_range < 0" which actually impossible to get range below 0 @.@Hoo boy, looks like I'm back with a new question in mind. I'm trying to do a ranged attack from an enemy to an ally, but it is not working.
It's mostly on the IF command there, I'm a little confused on how to make it register hitting say a front row of characters but not the back row.
Also, I'm not sure if I understand your question. Can you elaborate? with pics may be better