ChrisND Posted November 8, 2006 Share Posted November 8, 2006 Having a problem with scripts for countries that have not been activated yet; none of them seem to be working. The countries will not anything until they are activated; here is a sapling of some of the scripts. What am I doing wrong? { #NAME= Denmark Garrisons; Pre-war #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 6 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 80,75 #GOAL_POSITION= 75,75 #GOAL_POSITION= 86,71 #GOAL_POSITION= 82,68 #GOAL_POSITION= 85,74 #GOAL_POSITION= 97,73 #GOAL_POSITION= 96,72 #DATE= 1939/09/03 #FRIENDLY_POSITION= 97,73 #VARIABLE_CONDITION= 6 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Norway Garrisons; Pre-Action #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 3 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 87,54 #GOAL_POSITION= 87,55 #GOAL_POSITION= 76,61 #GOAL_POSITION= 73,61 #GOAL_POSITION= 89,57 #GOAL_POSITION= 84,55 #DATE= 1939/09/03 #FRIENDLY_POSITION= 87,54 #VARIABLE_CONDITION= 3 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Norway Norvik Garrisons; Pre-Action; Enemy Sighted #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 3 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 110,18 #GOAL_POSITION= 107,17 #GOAL_POSITION= 111,18 #DATE= 1939/09/03 #FRIENDLY_POSITION= 111,18 #VARIABLE_CONDITION= 3 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 93,19 [10,10] [2,2] [1] #ACTIVATE_POSITION= 110,18 [10,10] [2,2] [1] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Norway Trondheim Garrisons; Pre-Action; Enemy Sighted #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 3 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 82,39 #GOAL_POSITION= 83,39 #GOAL_POSITION= 85,39 #DATE= 1939/09/03 #FRIENDLY_POSITION= 85,39 #VARIABLE_CONDITION= 3 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 85,39 [10,10] [1,1] [1] #ACTIVATE_POSITION= 81,37 [15,15] [2,2] [1] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Norway Bergen Garrisons; Pre-Action; Enemy Sighted #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 3 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 57,51 #GOAL_POSITION= 57,50 #DATE= 1939/09/03 #FRIENDLY_POSITION= 57,50 #VARIABLE_CONDITION= 3 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 57,51 [10,10] [1,1] [1] #ACTIVATE_POSITION= 54,51 [10,10] [2,2] [1] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Norway Stavenger Garrisons; Pre-Action; Enemy Sighted #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 3 #TRIGGER= 100 #LEVEL= 0 #LENGTH= 1 #GOAL_POSITION= 58,58 #DATE= 1939/09/03 #FRIENDLY_POSITION= 58,58 #VARIABLE_CONDITION= 3 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 58,58 [10,10] [1,1] [1] #ACTIVATE_POSITION= 81,47 [50,50] [1,1] [1] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= North Sea Patrols #POPUP= #FLAG= 1 #TYPE= 1 #COUNTRY_ID= 1 #TRIGGER= 100 #LEVEL= 0 #SIZE= 2 #BUILD_LENGTH= 1 #LENGTH= 20 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 44,54 #GOAL_POSITION= 45,79 #DATE= 1939/09/03 #FRIENDLY_POSITION= 11,64 #VARIABLE_CONDITION= 1 [2] [100] [0] #TACTICAL_CONDITION= 3,80 [3] #ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } { #NAME= Long-Range North Sea Patrols #POPUP= #FLAG= 1 #TYPE= 1 #COUNTRY_ID= 1 #TRIGGER= 100 #LEVEL= 0 #SIZE= 2 #BUILD_LENGTH= 1 #LENGTH= 20 #GOAL_POSITION= 13,64 #GOAL_POSITION= 33,47 #GOAL_POSITION= 53,43 #GOAL_POSITION= 56,35 #GOAL_POSITION= 69,35 #GOAL_POSITION= 79,32 #GOAL_POSITION= 87,25 #GOAL_POSITION= 97,12 #GOAL_POSITION= 87,25 #GOAL_POSITION= 79,32 #GOAL_POSITION= 69,35 #GOAL_POSITION= 56,35 #GOAL_POSITION= 53,43 #GOAL_POSITION= 33,47 #DATE= 1939/09/03 #FRIENDLY_POSITION= 11,64 #VARIABLE_CONDITION= 1 [2] [100] [0] #TACTICAL_CONDITION= 3,80 [3] #ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } 0 Quote Link to comment Share on other sites More sharing options...
SidiusPOA Posted November 9, 2006 Share Posted November 9, 2006 Dear friend , your script look ok but you have forgotten the Plan_ID and in some cases the SIZE #PLAN_ID= 0 = Garrison #PLAN_ID= 1 = Build up Offencive #PLAN_ID= 2 = Build up amphibious #PLAN_ID= 3 = Build up sea transport The PLAN_ID you put between #LEVEL= 0 #SIZE= 2 So i guess that your script for the Denmark Garrison would be like: { #NAME= Denmark Garrisons; Pre-war #POPUP= #FLAG= 1 #TYPE= 2 #COUNTRY_ID= 6 #TRIGGER= 100 #LEVEL= 0 #PLAN_ID= 0 #SIZE= 1 #LENGTH= 1 #GOAL_POSITION= 80,75 #GOAL_POSITION= 75,75 #GOAL_POSITION= 86,71 #GOAL_POSITION= 82,68 #GOAL_POSITION= 85,74 #GOAL_POSITION= 97,73 #GOAL_POSITION= 96,72 #DATE= 1939/09/03 #FRIENDLY_POSITION= 97,73 #VARIABLE_CONDITION= 6 [2] [1] [0] #TACTICAL_CONDITION= 87,54 [3] #ACTIVATE_POSITION= 0,0 [0,0] [0,0] [0] #CANCEL_POSITION= 0,0 [0,0] [0,0] [0] } Try it this way and report back to see if everyhting went ok. Christos Sideris 0 Quote Link to comment Share on other sites More sharing options...
Retributar Posted November 9, 2006 Share Posted November 9, 2006 Thank's to those like SidiusPOA who are at the ready to make a meaningful real difference where it count's as practical/useful information!. Now!...In rememberance of those who remembered those who did them right - EG: 'Roman Citizenry',...they knew how to appreciate a good-act or work's, so..." Hail!!!...SidiusPOA!" 0 Quote Link to comment Share on other sites More sharing options...
ChrisND Posted November 9, 2006 Author Share Posted November 9, 2006 Actually POA, thse aren't the problem. In the next version those flags will be gone. 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted November 9, 2006 Share Posted November 9, 2006 Normal Dude, I would double check some of the VARIABLE_CONDITION lines. For example for the Norwegian Garrison you have it where it needs a minimum activation value of 1%... in fact many of these are similar. Also double check the country_id for the VARIABLE_CONDITION to see if it is correct as I am guessing this is for a MOD 0 Quote Link to comment Share on other sites More sharing options...
ChrisND Posted November 9, 2006 Author Share Posted November 9, 2006 Hey HC, Yeah those are all correct, the country ID's are right and those countries are 5% allied stance. 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted November 9, 2006 Share Posted November 9, 2006 Ok, difficult to say really without seeing the game in action... for example wrt the Garrison script what exactly is it not doing, i.e. if you hit the '~' key is the Garrision script assigned to the AI? 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted November 9, 2006 Share Posted November 9, 2006 Also, for your CANCEL_CONDITION I would use the following line instead: #CANCEL_POSITION= 0,0 [0,0] [1,1] [0] otherwise my guess is it is constantly cancelling since there are 0 units at tile 0,0 Hubert 0 Quote Link to comment Share on other sites More sharing options...
ChrisND Posted November 10, 2006 Author Share Posted November 10, 2006 Thanks HC that last one did the trick! Also, a little niggle with the script writing: Noticed that the beginning information for FLEET scripts are the AMPHIBOUS script information. 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted November 10, 2006 Share Posted November 10, 2006 Oops, good catch although I think unfortunately a little too late for the v1.05 release... will fix this for the next iteration 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.