Page 1 of 1

Primary supplies and territory event

Posted: Thu Jan 03, 2019 9:24 am
by Kossatx
Happy new year people! Now, the problem [:)] I want to make an script to give "B" hex to a country when it occupies "A" hex. The "B" hex is a primary supply of country "Y", but I want when hex "B" is transfered to country "Z" it still remains as a primary supply for country "Z". With this script, when hex "B" is given to country "Z" stops being a supply center [:-] Any idea to solve the problem?

A hex occupied= #LINK= 1[1]
B= #MAP_POSITION= 0,26
Y= #COUNTRY_ID= 40
Z= #RECIPIENT_ID= 45

Code: Select all

; Metz fortress - Metz city - Germany
 {
 #NAME= DE 1 - Metz fortress - Metz city - Germany
 #POPUP=
 #IMAGE=
 #SOUND=
 #FLAG= 1
 #TYPE= 2
 #AI= 0
 #LEVEL= 0
 #GV= 1[1,100]
 #LINK= 1[1]
 #COUNTRY_ID= 40
 #RECIPIENT_ID= 45
 #REMOVE= 3
 #TRIGGER= 100
 #DATE= 1939/09/01
 #VARIABLE_CONDITION= 45 [1] [100] [0]
 #MAP_POSITION= 0,26
 #MAP_POSITION= 1,26
 }

RE: Primary supplies and territory event

Posted: Thu Jan 03, 2019 12:39 pm
by BillRunacre
What script type are you using Kossatx?

RE: Primary supplies and territory event

Posted: Thu Jan 03, 2019 4:19 pm
by Kossatx
The script attached is a territory script, linked to a decision script not attached.

RE: Primary supplies and territory event

Posted: Fri Jan 04, 2019 12:32 pm
by BillRunacre
I'm not sure then, I think it might if transferred by a surrender script, but that would require the conquered country to surrender... which may not be the trigger you want?

RE: Primary supplies and territory event

Posted: Fri Jan 04, 2019 6:45 pm
by Kossatx
Thanks BillRunacre, but I can't use the surrender script because I don't want the country must be surrendered for the transfer. I'll have to look for other solution [8|]