Primary supplies and territory event

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

Primary supplies and territory event

Post 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
 }
User avatar
BillRunacre
Posts: 6824
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Primary supplies and territory event

Post by BillRunacre »

What script type are you using Kossatx?
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Primary supplies and territory event

Post by Kossatx »

The script attached is a territory script, linked to a decision script not attached.
User avatar
BillRunacre
Posts: 6824
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Primary supplies and territory event

Post 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?
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Primary supplies and territory event

Post 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|]
Post Reply

Return to “Scenario Design and Modding”