Page 1 of 1

#ADD_HQ= 1

Posted: Sat Apr 27, 2019 12:34 pm
by Gilber
hello,

The following Guard script works but if I modify #ADD_HQ= 0 to #ADD_HQ= 1 the script is not accepted,

{
#NAME= Défense Amiens
#POPUP= Défense Amiens
#FLAG= 1

#TYPE= 2

#COUNTRY_ID= 112

#TRIGGER= 100

#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]

#LENGTH= 1

#HOLD= 2
; 2 = Unité la plus forte possible, Possibilité d'Attaquer

#ADD_HQ= 0


#GOAL_POSITION= 154,82
; 154,83 = Reims

#GOAL_POSITION= 155,82
; 154,83 = Reims

#DATE= 1939/10/14

#STEAL= 0

#FRIENDLY_POSITION= 151,84
; 151,84 = Paris

#VARIABLE_CONDITION= 40 [2] [100] [0]
; La France est un Allié en Guerre

#VARIABLE_CONDITION= 116 [2] [0] [0]
; URSS est un Allié Aligné >0%

#TACTICAL_CONDITION= 151,84 [3]
; 151,84 = Paris

#ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0]
; Script toujours Activé

#CANCEL_POSITION= 151,82 [1,1] [1,1] [1]
; 151,81 = Amiens
; Script annulé si une unité de l'axe détectée
}

does anyone understand why #ADD_HQ= 1 could be a problem?

Gilles

RE: #ADD_HQ= 1

Posted: Mon Apr 29, 2019 11:45 am
by Hubert Cater
Hi Gilber,

Can you tell me what the exact error message is that you receive when you try and compile this event?

Hubert

RE: #ADD_HQ= 1

Posted: Tue Apr 30, 2019 1:50 am
by Gilber
Hi Hubert,

when i compile this event in the script edit windows, guard stays with * (guard*)

Gilles

RE: #ADD_HQ= 1

Posted: Tue Apr 30, 2019 10:32 am
by Hubert Cater
Hi Gilles,

In this case click on the event list item in the left column that has the '*' showing, and then click on 'Update' and it should then provide a more detailed error message. Typically the message should indicate what it is you'll have to do to correct the script, and if not let us know.

Hubert