PDA

View Full Version : Script Critique - Garrison Script - Why is it Not Working


Edwin P.
04-26-2006, 05:26 PM
I wrote this script for USSR to garrison Archangel, as a favorite tactic of mine vs the AI is to send a Finish corps to seize it, and the AI usually operate a HQ unit north to guard it (bad move), but does not place the HQ unit on Archangel but adjacent to it (another bad move).

Tested it, and it did not work. Why not? Perhaps there were no free units available. I will have to test it again.

; Russian Scripts - Garrison USSR
; ------Activates after Finland joins the Axis
; ------Why? Protects Russian Destination of UK Convoy routes.
;
{
#NAME= USSR Garrison - Archangel
#POPUP=
#FLAG= 1
#TYPE= 2
#COUNTRY_ID= 4
#TRIGGER= 100
#LEVEL= 0
#PLAN_ID= 0
#SIZE= 0
#LENGTH= 1
#GOAL_POSITION= 111,1
#DATE= 1939/09/03
#STEAL= 0
; Set friendly positions:
; 1st Line - Archangel
#FRIENDLY_POSITION= 111,1
; Set variable conditions:
; 1st Line - USSR politically aligned with Allies and not surrendered
; 2nd Line - Finland Activated and allied with Axis
; 3rd Line - UK aligned with Allies and not surrendered
#VARIABLE_CONDITION= 4 [2] [100] [0]
#VARIABLE_CONDITION= 19 [1] [100] [0]
#VARIABLE_CONDITION= 1 [1] [100] [0]
; Set tactical conditions:
; 1st Line - Arcangel not tactically threatened (dummy condition)
#TACTICAL_CONDITION= 111,1 [3]
; Set dummy activate position (no units at position 0,0)
#ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0]
; Set dummy cancel position (single neutral unit at position 0,0). This is not possible as no
; unit can occupy tile 0,0 so event will not be cancelled due to #CONDITION_POSITION
#CANCEL_POSITION= 0,0 [0,0] [1,1] [0]
}

[ April 26, 2006, 02:31 PM: Message edited by: Edwin P. ]

Hubert Cater
04-26-2006, 09:08 PM
Edwin,

I just wanted to say thanks for all your script postings and ideas and while I haven't had much of a chance to respond just yet, patching this game is taking quite some effort, I will eventually get back to you on some of the finer detail.

For this one my guess is that it probably couldn't send a unit up there although the AI does normally handle protecting cities on it's own with the Garrison script more or less used to hold a unit in place until an enemy unit is out of range, or to Garrison a position if it has nothing else to do.

Note, this second part was not working properly for the original release, i.e. the USSR was not properly garrisoning positions before it was fully active but will do so in the first patch.

Edwin P.
04-26-2006, 09:17 PM
HC, many thanks for your response. Looking forward to the patch.