Fixed the controller not getting fired for the right side...
...after selecting a location to protect.
This commit is contained in:
parent
825118f1b6
commit
d47ee300a5
1 changed files with 14 additions and 8 deletions
|
@ -498,12 +498,12 @@
|
|||
[defend_location]
|
||||
type=objective
|
||||
|
||||
# remove this line to enable the option...
|
||||
#disabled=yes
|
||||
|
||||
[ai]
|
||||
[protect_location]
|
||||
radius=4
|
||||
x=$ai_controller.side_$ally_side|_current_settings.defend_location.x
|
||||
y=$ai_controller.side_$ally_side|_current_settings.defend_location.y
|
||||
radius=6
|
||||
value=20
|
||||
[/protect_location]
|
||||
[/ai]
|
||||
|
||||
|
@ -519,6 +519,8 @@
|
|||
|
||||
[command]
|
||||
{VARIABLE ai_controller_{AFFIX}.defend_location.picker_active yes}
|
||||
{VARIABLE ai_controller_{AFFIX}.defend_location.original_controller_invokation_x $x1}
|
||||
{VARIABLE ai_controller_{AFFIX}.defend_location.original_controller_invokation_y $y1}
|
||||
{VARIABLE ai_controller_finished yes}
|
||||
|
||||
[print]
|
||||
|
@ -544,8 +546,6 @@
|
|||
{VARIABLE ai_controller_{AFFIX}.defend_location.picker_active no}
|
||||
|
||||
{VARIABLE order_type defend_location}
|
||||
{VARIABLE ai_controller_{AFFIX}.defend_location.ai.protect_location.x $x1}
|
||||
{VARIABLE ai_controller_{AFFIX}.defend_location.ai.protect_location.y $y1}
|
||||
|
||||
{VARIABLE ai_controller.side_$ally_side|_current_settings.current_objective defend_location}
|
||||
{VARIABLE ai_controller.side_$ally_side|_current_settings.currently_doing_objective_description _"focusing on defending the area around $x1|,$y1|."}
|
||||
|
@ -554,11 +554,17 @@
|
|||
name=apply_ai_params
|
||||
[/fire_event]
|
||||
|
||||
[print]
|
||||
text=" "
|
||||
duration=1
|
||||
[/print]
|
||||
|
||||
[fire_event]
|
||||
name=menu item ai_controller
|
||||
|
||||
[primary_unit]
|
||||
side=$ally_side
|
||||
x=$ai_controller_{AFFIX}.defend_location.original_controller_invokation_x
|
||||
y=$ai_controller_{AFFIX}.defend_location.original_controller_invokation_y
|
||||
[/primary_unit]
|
||||
[/fire_event]
|
||||
[/command]
|
||||
|
@ -1025,5 +1031,5 @@ Behavior: $ai_controller.side_$ally_side|_current_settings.currently_doing_behav
|
|||
#enddef
|
||||
|
||||
# A stub for scenario 7 of LoW
|
||||
#define AI_LOCATION AFFIX STRING RADIUS X Y
|
||||
#define AI_LOCATION AFFIX STRING RADIUS X Y
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue