crispy131313 -> RE: help me for event script (3/20/2019 5:39:37 PM)
|
Hi olichris I'm copying and pasting two similar events. Please feel free to use as a base. If you change the DE to Type=2 they should fire every turn, and then you can just add your national morale events. Note you may want to remove the USSR/Romania mobilization variables if they do not fit your context. Coal Imports { #NAME= DE 928 - Germany: Coal Exports To Italy (AI - 75% Yes) #POPUP= Führerhauptquartier %N%NGerman Exports to Italy %N%NMein Führer, Our Allies in Italy have approached us with concerns that they require large amounts of non-military resources over the first 12 months of the war and due to allied blockades the Italians have turned to Germany for assistance. %N%NWe have drawn up a proposal to supply Italy with these resources only until our planned invasion of Russia. Italy can expect to receive 15 MPP per turn from Germany over the course of the agreement. %N%NDo you approve the exports of German resources to Italy until war breaks out Russia (YES) or should Germany deny the Italian request (No)? #IMAGE= #SOUND= teletype_1.ogg, teletype_2.ogg #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ; Set global variable condition to always trigger (dummy value) #GV= 1[1,100] #LINK= 0[0] #COUNTRY_ID= 45 #TRIGGER= 100 #DISPLAY_ORDER= 0 ; Set decision value #DECISION= 928 #MPP_UPDOWN= 0 #MPP_TURNS= 0 #MPP_TEXT= #NOTES= %N%NIf you select (Yes) Italy will receive 15 MPP per turn. However, it will cost Germany 25 MPP to redirect its resources to her less efficient Ally in Italy. Italy will continue receiving resources from Germany each turn so long as USSR remains neutral. #NOTES_POSITION= 171,101 ; Set AI acceptance % (AI will accept 75% of the time) #AI_RESPONSE= 75 #AI_RESPONSE_POPUP= Germany Begins Coal Exports To Italy #DATE= 1939/09/03 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ;Set Friendly Position (Berlin) #ALIGNMENT_POSITION= 173,74 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - USSR politically aligned with Allies not Fully Active and Not Surrendered ; 3rd Line - Italy politically aligned with the Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 116 [2] [0] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] ; Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } { #NAME= DE 929 - Germany: Coal Exports To Italy (AI - 100% Yes) #POPUP= #IMAGE= #SOUND= #FLAG= 1 #TYPE= 2 #AI= 0 #LEVEL= 0 ; Set global variable condition to always trigger (dummy value) #GV= 1[1,100] #LINK= 928[1] #COUNTRY_ID= 45 #TRIGGER= 100 #DISPLAY_ORDER= 0 ; Set decision value #DECISION= 929 #MPP_UPDOWN= -25 #MPP_TURNS= 1 #MPP_TEXT= Coal Exports To Italy #NOTES= #NOTES_POSITION= ; Set AI acceptance % (AI will accept 75% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1939/09/03 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ;Set Friendly Position (Berlin) #ALIGNMENT_POSITION= 173,74 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - USSR politically aligned with Allies not Fully Active and Not Surrendered ; 3rd Line - Italy politically aligned with the Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 116 [2] [0] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] ; Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } { #NAME= DE 830 - Italy: Coal Imports From Germany (AI - 100% Yes) #POPUP= #IMAGE= #SOUND= #FLAG= 1 #TYPE= 2 #AI= 0 #LEVEL= 0 ; Set global variable condition to always trigger (dummy value) #GV= 1[1,100] #LINK= 928[1] #COUNTRY_ID= 59 #TRIGGER= 100 #DISPLAY_ORDER= 0 ; Set decision value #DECISION= 830 #MPP_UPDOWN= 15 #MPP_TURNS= 1 #MPP_TEXT= Coal Imports From Germany #NOTES= #NOTES_POSITION= ; Set AI acceptance % (AI will accept 75% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1939/09/03 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ;Set Friendly Position (Berlin) #ALIGNMENT_POSITION= 173,74 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - USSR politically aligned with Allies not Fully Active and Not Surrendered ; 3rd Line - Italy politically aligned with the Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 116 [2] [0] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] ; Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } Oil Imports ; { #NAME= DE 839 - Germany: Oil Imports To Italy (AI - 50% Yes) #POPUP= Führerhauptquartier %N%NRomanian Oil Imports To Italy %N%NMein Führer, our Allies in Italy have approached us with concerns that they do not have enough oil to fight the war as effectively as possible. We must consider now that we have strategic control over the Romanian oil field that we can direct some of the nations oil exports into Italy. Our Generals urge a cautious approach as to not put our own nation at a disadvantage. If we agree to the oil exports it could be expected that Italy will receive 15 MPP per turn. %N%NMein Führer, do you approve the exports of oil from Romania to Italy to help our allies in the war? It will cost us 15 MPPS for the duration of the war. #IMAGE= #SOUND= teletype_1.ogg, teletype_2.ogg #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ;Set global variable condition to always trigger (dummy value) #GV= 1[1,100] ;Set link value to Dummy #LINK= 0[0] #COUNTRY_ID= 45 #TRIGGER= 100 #DISPLAY_ORDER= 1 ; Set decision value #DECISION= 839 #MPP_UPDOWN= 0 #MPP_TURNS= 0 #MPP_TEXT= #NOTES= If you select (Yes) to this decision Germany will redirect 15 MPP to Italy per turn. Should Germany lose control of the Ploesti oilfields in Romania, Germany will no longer committ to the resource transfer. #NOTES_POSITION= 193,109 ; Set AI acceptance % (AI will not accept 100% of the time) #AI_RESPONSE= 50 #AI_RESPONSE_POPUP= Germany Begins Exporting Oil To Italy #DATE= 1941/02/01 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ; London is in Allied hands #ALIGNMENT_POSITION= 173,74 [1] #ALIGNMENT_POSITION= 198,94 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - Italy politically aligned with Axis and Fully Active ; 3rd Line - Romania politically aligned with Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] #VARIABLE_CONDITION= 93 [1] [100] [0] ; Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } { #NAME= DE 840 - Germany: Exports To Italy (AI - 100% Yes) #POPUP= #IMAGE= #SOUND= #FLAG= 1 #TYPE= 2 #AI= 0 #LEVEL= 0 ; Set global variable condition to always trigger (dummy value) #GV= 1[1,100] #LINK= 839[1] #COUNTRY_ID= 45 #TRIGGER= 100 #DISPLAY_ORDER= 0 ; Set decision value #DECISION= 840 #MPP_UPDOWN= -15 #MPP_TURNS= 1 #MPP_TEXT= Oil Exports To Italy #NOTES= #NOTES_POSITION= ; Set AI acceptance % (AI will accept 100% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1939/09/03 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ;Set Friendly Position (Berlin) #ALIGNMENT_POSITION= 173,74 [1] #ALIGNMENT_POSITION= 198,94 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - Italy politically aligned with Axis and Fully Active ; 3rd Line - Romania politically aligned with Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] #VARIABLE_CONDITION= 93 [1] [100] [0] #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } { #NAME= DE 841 - Italy: Oil Imports From Germany (AI - 100% Yes) #POPUP= #IMAGE= #SOUND= #FLAG= 1 #TYPE= 2 #AI= 0 #LEVEL= 0 ; Set global variable condition to always trigger (dummy value) #GV= 1[1,100] #LINK= 839[1] #COUNTRY_ID= 59 #TRIGGER= 100 #DISPLAY_ORDER= 0 ; Set decision value #DECISION= 841 #MPP_UPDOWN= 15 #MPP_TURNS= 1 #MPP_TEXT= Oil Imports From Germany #NOTES= #NOTES_POSITION= ; Set AI acceptance % (AI will accept 100% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1939/09/03 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 0,0,0 ;Set Friendly Position (Berlin) #ALIGNMENT_POSITION= 173,74 [1] #ALIGNMENT_POSITION= 198,94 [1] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ; Set variable conditions: ; 1st Line - Germany politically aligned with Axis and Fully Active ; 2nd Line - Italy politically aligned with Axis and Fully Active ; 3rd Line - Romania politically aligned with Axis and Fully Active #VARIABLE_CONDITION= 45 [1] [100] [0] #VARIABLE_CONDITION= 59 [1] [100] [0] #VARIABLE_CONDITION= 93 [1] [100] [0] #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] }
|
|
|
|