-
November 17, 2007, 12:51 AM
#1
Laetus
how do you script battles
i have a battle that i want to script, no intro i just want them to attack my men like they do in the trebia battle, i made one but the game ignores it! how do you script battles and other things like that
(hand made)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; script begins
; init
prepare_for_battle
;*************
;PLAYER_UNITS
;*************
; label_unit ALLIANCE ARMY UNIT
label_unit 0 0 0 PLAYER_GENERAL
label_unit 0 0 1 PLAYER_LEGIONARY_1
label_unit 0 0 2 PLAYER_LEGIONARY_2
label_unit 0 0 3 PLAYER_LEGIONARY_3
label_unit 0 0 4 PLAYER_PIKEMEN_1
label_unit 0 0 5 PLAYER_PIKEMEN_2
label_unit 0 0 6 PLAYER_SPANISH_1
label_unit 0 0 7 PLAYER_SPANISH_2
label_unit 0 0 8 PLAYER_ARCHER_1
label_unit 0 0 9 PLAYER_ROYAL_CAVALRY_1
label_unit 0 0 10 PLAYER_ROYAL_CAVALRY_2
label_unit 0 0 11 PLAYER_SARMATIAN
label_unit 0 0 12 PLAYER_ROYAL_CAVALRY_1
label_unit 0 0 13 PLAYER_ROYAL_CAVALRY_2
label_unit 0 0 14 PLAYER_SARMATIAN_1
label_unit 0 0 15 PLAYER_BARBARIAN_1
label_unit 0 0 16 PLAYER_CATAPHRACT_1
label_unit 0 0 17 PLAYER_ELEPHANT_1
;*************
;ROMAN_UNITS
;*************
label_unit 1 0 0 ROMAN_GENERAL
label_unit 1 0 1 ROMAN_LEGIONARY_1
label_unit 1 0 2 ROMAN_LEGIONARY_2
label_unit 1 0 3 ROMAN_LEGIONARY_3
label_unit 1 0 4 ROMAN_LEGIONARY_4
label_unit 1 0 5 ROMAN_LEGIONARY_5
label_unit 1 0 6 ROMAN_LEGIONARY_6
label_unit 1 0 7 ROMAN_LEGIONARY_7
label_unit 1 0 8 ROMAN_LEGIONARY_8
label_unit 1 0 9 ROMAN_PRAETORIAN_COHORT_1
label_unit 1 0 10 ROMAN_PRAETORIAN_COHORT_2
label_unit 1 0 11 ROMAN_MEDIUM_CAVALRY_1
label_unit 1 0 12 ROMAN_MEDIUM_CAVALRY_2
label_unit 1 0 13 ROMAN_CATAPHRACT_1
; *********************************************************************************************
; INITIALISATION
; *********************************************************************************************
prepare_for_battle while ! I_BattleStarted ; Wait for deployment
end_while
ai_active_set off
camera_restrictions_set off
; *********************************************************************************************
; DEFINE UNIT LABELS
; *********************************************************************************************
; *********************************************************************************************
; MOVE ROMAN TROOPS
; *********************************************************************************************
battle_wait 60
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_1 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_2 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_3 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_4 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_5 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_6 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_7 on
; unit_set_fire_at_will_mode ROMAN_LEGIONARY_8 on
; unit_order_attack_closest_unit ROMAN_LEGIONARY_1
; unit_order_attack_closest_unit ROMAN_LEGIONARY_2
; unit_order_attack_closest_unit ROMAN_LEGIONARY_3
; unit_order_attack_closest_unit ROMAN_LEGIONARY_4
; unit_order_attack_closest_unit ROMAN_LEGIONARY_5
; unit_order_attack_closest_unit ROMAN_LEGIONARY_6
; unit_order_attack_closest_unit ROMAN_LEGIONARY_7
; unit_order_attack_closest_unit ROMAN_LEGIONARY_8
; unit_order_attack_closest_unit ROMAN_PRAETORIAN_COHORT_1
; unit_order_attack_closest_unit ROMAN_PRAETORIAN_COHORT_2
; *********************************************************************************************
; FIGHT!
; *********************************************************************************************
; *********************************************************************************************
while I_InBattle
ai_active_set on
end_while
end_script
whats wrong with it?
Last edited by Gaiusscipio; November 17, 2007 at 12:59 AM.
-
November 17, 2007, 03:23 AM
#2
Libertus
Re: how do you script battles
I think you'd get responses and help if you ask in the Rome workshop http://www.twcenter.net/forums/forumdisplay.php?f=208
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules