Supply event questions

Post bug reports and ask for help with other issues here.
Post Reply
User avatar
Elessar2
Posts: 1457
Joined: Wed Nov 30, 2016 12:35 am

Supply event questions

Post by Elessar2 »

Want the event in question to ONLY affect the resources controlled by country X (which are in another country note that X has invaded). My general question is how the scripts "know" that a given resource is owned by the country being targeted. Perusing the list of sample supply events from a vanilla scenario, I see ones like this:

{
#NAME= Norwegian Forces Damage The Rail Network As They Retire Into The Hinterland
#POPUP= Norwegian Forces Damage The Rail Network As They Retire Into The Hinterland
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 643[1]
#COUNTRY_ID= 112
#ALIGNMENT_ID= 0
#FLAG_ID= 78
#TRIGGER= 100
#SEASON_FLAG= 0
#DATE= 1940/04/14
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 312,59 [3,5]
#DESTINATION_RESOURCE= 326,34 [3,5]
#VARIABLE_CONDITION= 112 [2] [100] [0]
#VARIABLE_CONDITION= 78 [2] [100] [1]
}

Why is the #COUNTRY_ID= 112 [the UK] if it is being targeted at Axis units in Norway? What if one of the hexes is controlled by the Allies (tho in this specific example that may not be possible if it fires right after Norway's surrender)? Will it suffer the supply reduction too? Or does the use of the #COUNTRY_ID= give that country "immunity" to the script's effects? Are allied countries also immune?

TIA.
User avatar
BillRunacre
Posts: 6710
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

Re: Supply event questions

Post by BillRunacre »

Yes, an Allied country id prevents the script from damaging Allied held resources.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
User avatar
Elessar2
Posts: 1457
Joined: Wed Nov 30, 2016 12:35 am

Re: Supply event questions

Post by Elessar2 »

Thanks, that's all I need to know! 8-)
Post Reply

Return to “Tech Support”