I have tried various permutations on this theme, having used a muber of different conditions.Code:;****************************************************************************************************************** ; Setting up Battle with Script Commands ;****************************************************************************************************************** prepare_for_battle ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Label Units & Groups & LOCATIONS ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;************* ;ROMAN_UNITS ;************* label_unit 0 0 0 caesar label_unit 0 0 1 legio_iii_gallica_1 label_unit 0 0 2 legio_iii_gallica_2 label_unit 0 0 3 legio_iii_gallica_3 label_unit 0 0 4 legio_iii_gallica_4 label_unit 0 0 5 legio_iii_gallica_5 label_unit 0 0 6 legio_iii_gallica_6 label_unit 0 0 7 legio_iii_gallica_7 label_unit 0 0 8 legio_iii_gallica_8 label_unit 0 0 9 ala_vii_illyricum_1 label_unit 0 0 10 legio_iii_gallica_9 define_unit_group CAESAR_UNITS caesar legio_iii_gallica_4 legio_iii_gallica_5 legio_iii_gallica_6 legio_iii_gallica_7 legio_iii_gallica_8 ala_vii_illyricum_1 legio_iii_gallica_9 define_unit_group FRONT_LINE legio_iii_gallica_1 legio_iii_gallica_2 legio_iii_gallica_3 ;************* ;SLAVE_UNITS ;************* label_unit 1 0 0 pompey label_unit 1 0 1 legio_viii_1 label_unit 1 0 2 legio_viii_2 label_unit 1 0 3 legio_viii_3 label_unit 1 0 4 legio_viii_4 label_unit 1 0 5 legio_viii_5 label_unit 1 0 6 legio_viii_6 label_unit 1 0 7 legio_viii_7 label_unit 1 0 8 legio_viii_8 label_unit 1 0 9 legio_viii_9 label_unit 1 0 10 legio_viii_10 label_unit 1 0 11 legio_viii_11 label_unit 1 0 12 legio_viii_12 define_unit_group POMPEY_UNITS pompey legio_viii_5 legio_viii_6 legio_viii_7 legio_viii_8 legio_viii_9 legio_viii_10 legio_viii_11 legio_viii_12 define_unit_group POMP_FLINE legio_viii_1 legio_viii_2 legio_viii_3 legio_viii_4 label_unit 1 1 0 cav_1 label_unit 1 1 1 cav_2 label_unit 1 1 2 cav_3 label_unit 1 1 3 labienus define_unit_group LABIENUS_UNITS cav_1 cav_2 cav_3 labienus hiding_enabled_set false ai_active_set off monitor_conditions I_UnitGroupDistanceFromGroup POMP_FLINE FRONT_LINE < 50 unit_group_order_attack_group FRONT_LINE terminate_monitor end_monitor end_script
I have come to the conclusion that I must be using monitors incorrectly, as NO monitor works for we in the battle script, no matter what it may be. I have tried using every other condition conceivable, and have even done extensive testing using kill_unit as the command, as it makes results easy to see.
With all that testing done, I think I must be unable to use the monitors correctly as every single monitor I make is broken.
(Btw, the tabbing has completely gone in the passage here, but it is fine in the txt file. Just a twc code-wrap thing, I guess. It's all tabbed, not spaced, in the txt.)
Also, all the units are labelled properly. Going through them, if I insert a line of "kill_unit <whatever> it always kills what I expect it to. So I know that the labelling is not at fault.
Thanks,
RHG.





Reply With Quote









