Big Al Posted October 28, 2008 Share Posted October 28, 2008 Ok I figured out how to get real produtcion from using this file. But I want to know how the program reads it? My idea was to block resources and bring them online as the war passes using the #DATE field. Take Germany for example so if I have a set of scripts like this... 1939 #RESOURCE= ABCDEF delisted #DATE = 01/01/40 1940 #RESOURCE= ABCDE delisted #DATE = 01/01/41 1941 #RESOURCE= ABCD delisted #DATE = 01/01/42 1942 #RESOURCE= ABC delisted #DATE = 01/01/43 1943 #RESOURCE= AB delisted #DATE = 01/01/44 1944 all resources and cities online so no script So if I read the scripts correctly and they go top-down in read order if its 1939 ABCDEF are delisted from MPP and the program will also process the rest, ok no problem. Then 1/1/1940 date hits the 1939 script activates all the resourses but as soon as the program sees the 1940 script it delists ABCDE and only F comes online. 1/1/1941 hits and ABCDE are brought online (1940 script has hit its #DATE) but the 1941 script right below it shuts down ABCD. Is this how it would work? I hope so because it will solve a big problem and stablize my scenario. Like the script for Japan is defeated below. ; USA Victory in the Pacific { #NAME= Canadian Industry Mobilizes For Total War #POPUP= Canadian Industry Mobilizes For Total War #IMAGE= #SOUND= troops2.wav, industry.wav #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 #COUNTRY_ID= 14 #TRIGGER= 100 #GV= 1[1,100] #LINK= 0[0] ; Failsafe Activation Date on Surrender of Japan #DATE= 1945/08/10 #RESOURCE= 10,22 #RESOURCE= 27,24 ; dummy condition position, never satisfied #CONDITION_POSITION= 0,0 [0,0] [1,1] [1] [0] } 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted October 29, 2008 Share Posted October 29, 2008 Big Al, I believe that would work... nice implementation Hubert 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.