Page 1 of 1

#CONDITION_POSITION

Posted: Sat Jan 27, 2024 11:19 pm
by El_Condoro
I remember reading a thread related to this recently but can't find it, so I will ask.

#CONDITION_POSITION= x,y [0,0] [0,0] [alignment] [country_id]

I thought this condition would be met if there were no units of alignment and country_id in x,y but some of my scripts are not working this way (i.e. at all) I thought I read about a [<] that could be added but haven't found a reference in the patch notes. Can someone confirm that there has been a change and what it is, please?

Re: #CONDITION_POSITION

Posted: Sun Jan 28, 2024 8:35 pm
by BillRunacre
Can you post some examples of your scripts?

Re: #CONDITION_POSITION

Posted: Sun Jan 28, 2024 11:45 pm
by El_Condoro
This script is meant to impose a NM penalty if Mittelheim (ID= 116) does not have a unit in Trondheim. It fires even when there is a Mittelheim unit in the city.

Edit: I have started another game and the issue does not seem to be occuring.

Code: Select all

{
#NAME= Undefended Trondheim
#POPUP= No Mittelheim Defenders In Trondheim
#IMAGE= 
#SOUND= 
#FLAG= 1
#TYPE= 2
#AI= 4
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 100
#COUNTRY_ID= 116
#NM_UPDOWN= -500
#NM_TURNS= 1
#DATE= 1000/1/1
#OBJECTIVE_TEXT_POSITION= 129,56
#ALIGNMENT_POSITION= 129,56[1]
#VARIABLE_CONDITION= 116 [1] [100] [0]
;No Mittelheim unit in Trondheim
#CONDITION_POSITION= 129,56 [0,0] [0,0] [1] [116]
}

Re: #CONDITION_POSITION

Posted: Mon Jan 29, 2024 12:49 pm
by BillRunacre
Is Mittleheim an Axis (equivalent) country?

#CONDITION_POSITION= 129,56 [0,0] [0,0] [1] [116]

Edit: I have seen your edit, so will hold fire on worrying further unless it does reoccur. Fingers crossed for now! :)