1. You should have all your units labeled at the beginning of the battle.
Assuming 100 meters is a missle units range, it's just
Code:
while not I_UnitInRangeOfUnit roman_archers gaul_warband
; wait until in range
end_while
; fire away
unit_order_attack_unit roman_archers gaul_warband run
2. Counters are like variables in a programming language. You can:
- set a counter value to a number
Code:
set_counter myCounter 666
- change counter value by a positive/negative number
Code:
inc_counter myCounter -333
- compare counter value to a number
Code:
if I_CompareCounter myCounter >= 5
console_command add_money 100
end_if
and that's it. Plus, in RTW they don't retain their values when you save/load your game (in M2TW, they do, though). So, their use is fairly limited.