Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

help me for event script

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII War in Europe >> Scenario Design and Modding >> help me for event script Page: [1]
Login
Message << Older Topic   Newer Topic >>
help me for event script - 3/14/2019 2:23:44 PM   
olichris

 

Posts: 11
Joined: 3/14/2019
Status: offline
Hello, i work on a future mod. i' ve got a problem with one event script.
I want Germany choose to support Italy or not.If Germany say yes, Germany loose 30 mmp, Italy take 30mmp but loose 200
morale points. If Germany say no, no consequence. Anybody can help me?
Another question: HQ can only be reinforced in stages. is it possible to do it for other types of units?
Post #: 1
RE: help me for event script - 3/14/2019 8:18:56 PM   
BillRunacre

 

Posts: 4945
Joined: 7/22/2013
Status: offline
Hi

You will need a Decision for Germany to support Italy, with two subsequent dummy Decisions (these are Decision Events that have no text in the Pop Up field, so they fire automatically when triggered):

1) To deduct 30 MPPs a turn from Germany for as long as both Germany and Italy are 100% Axis, i.e. 100% mobilized and not surrendered.

2) To add 30 MPPs a turn to Italy for as long as both Germany and Italy are 100% Axis, i.e. 100% mobilized and not surrendered.

Add in a National Morale script to be triggered (each turn or just once, depending on how much you want them to happen) when Germany says yes to the initial Decision.


At the moment only HQs have that possibility, though shortly it will apply to naval units too, albeit with slightly different rules, as they will be limited to 5 strength points per turn.


_____________________________

Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/

(in reply to olichris)
Post #: 2
RE: help me for event script - 3/15/2019 9:33:49 AM   
olichris

 

Posts: 11
Joined: 3/14/2019
Status: offline
I do this and it doesn' t works. What is wrong?

{
#NAME= DE 802 - Germany: Should Germany accept to help Italy? (AI - 30% Yes)
#POPUP= Führerhauptquartier %N%NDue to his weak economy, Italy ask for German help. we can give 30 MMP to Italy this turn but Italy loose 200 morale points for this humiliation. %N%NShould Germany help Italy (YES) or no (NO)?
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
; Set decision value (1st internally stored decision)
#DECISION= 802
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT= German help for Italy
#NOTES=
#NOTES_POSITION= 173,74
; Set AI acceptance % (AI will accept 90% of the time)
#AI_RESPONSE= 30
#AI_RESPONSE_POPUP=
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#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 not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

{
#NAME= DE 803 - Germany help Italy
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 803
#MPP_UPDOWN= -30
#MPP_TURNS= 1
#MPP_TEXT= Germany help Italy
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Germany help Italy
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

{
#NAME= DE 804 - Italy receive support from Germany
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 59
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 804
#MPP_UPDOWN= 30
#MPP_TURNS= 1
#MPP_TEXT= Support from Germany
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Italy receive support from Germany
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 171,101 [1]
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

(in reply to BillRunacre)
Post #: 3
RE: help me for event script - 3/17/2019 9:16:36 PM   
BillRunacre

 

Posts: 4945
Joined: 7/22/2013
Status: offline
Hi

DE 802 is set to only fire when both Germany and Italy have joined the Axis, so you won't see it when you first start the 1939 campaign.

I think it's a mistake to set it as #TYPE= 2 as that means DE 802 will be presented every turn - which could be what you want?

Either have DE 802 as #TYPE= 1 with DE 803 and DE 804 as #TYPE= 2, or have DE 802 as #TYPE= 2 with DE 803 and DE 804 as #TYPE= 1.

_____________________________

Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/

(in reply to olichris)
Post #: 4
RE: help me for event script - 3/18/2019 3:29:21 PM   
olichris

 

Posts: 11
Joined: 3/14/2019
Status: offline
The idea is that germany can support Italy every turn but that the italian morale go down everytime Germany say yes.

I try this and doesn' t work:
{
#NAME= DE 802 - Germany: Should Germany accept to help Italy?
#POPUP= Führerhauptquartier %N%NDue to his weak economy, Italy ask for German help. we can give 30 MMP to Italy this turn but Italy loose 200 morale points for this humiliation. %N%NShould Germany help Italy (YES) or no (NO)?
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
; Set decision value (1st internally stored decision)
#DECISION= 802
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT= German help for Italy
#NOTES=
#NOTES_POSITION= 173,74
; Set AI acceptance % (AI will accept 90% of the time)
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#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 not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

{
#NAME= DE 803 - Germany support Italy
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 803
#MPP_UPDOWN= -30
#MPP_TURNS= 1
#MPP_TEXT= support for Italy
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Germany help Italy
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

{
#NAME= DE 804 - Italy receive support from Germany
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 59
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 804
#MPP_UPDOWN= 30
#MPP_TURNS= 1
#MPP_TEXT= Support from Germany
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Italy receive support from Germany
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 171,101 [1]
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

In the nationale morale script:
{
#NAME= Italy - Italy loose morale after asking help from Germany [-200]
#POPUP= Italy loose morale after asking help from Germany [-200]
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 59
#TRIGGER= 100
#NM_UPDOWN= -200
#NM_TURNS= 1
#DATE= 1939/09/03
#OBJECTIVE_TEXT_POSITION=
#ALIGNMENT_POSITION=
; 1st Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 59 [1] [100] [0]
; Malta is occupied by an Italian unit
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
And it works.

I try another scripts who doesn't work:
{
#NAME= DE 802 - Germany: Should Germany accept to help Italy?
#POPUP= Führerhauptquartier %N%NDue to his weak economy, Italy ask for German help. we can give 30 MMP to Italy this turn but Italy loose 200 morale points for this humiliation. %N%NShould Germany help Italy (YES) or no (NO)?
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
; Set decision value (1st internally stored decision)
#DECISION= 802
#MPP_UPDOWN= -30
#MPP_TURNS= 1
#MPP_TEXT= German help for Italy
#NOTES=
#NOTES_POSITION= 173,74
; Set AI acceptance % (AI will accept 90% of the time)
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Germany support Italia
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin is in Axis hands
#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 not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}


{
#NAME= DE 804 - Italy receive support from Germany
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 59
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 804
#MPP_UPDOWN= 30
#MPP_TURNS= 1
#MPP_TEXT= Support from Germany
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP= Italy receive support from Germany
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Rome is in Axis hands
#ALIGNMENT_POSITION= 171,101 [1]
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
Only Germany loose mpp and Italy receive nothing.

Italy , in this two case, are in war with the allies when i testing these scripts.
Excuse me for my English, i' m french.

(in reply to BillRunacre)
Post #: 5
RE: help me for event script - 3/20/2019 4:04:34 PM   
BillRunacre

 

Posts: 4945
Joined: 7/22/2013
Status: offline
Hi

I noticed that this is in one of the scripts:

; Berlin is in Axis hands
#ALIGNMENT_POSITION= 171,101 [1]

I think Berlin is 173,74, so that one should perhaps be Rome.

I would suggest having both Berlin and Rome being in Axis hands in every applicable event.

For DE 804 that isn't working, I would suggest adding some text to its #POPUP=

Remove its link to DE 802, and then test it to see if it appears in game.

Providing Italy is fully mobilized I cannot see why it shouldn't work, providing your map is the official map too.

Once you can get that to work, just remove the text from #POPUP=


_____________________________

Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/

(in reply to olichris)
Post #: 6
RE: help me for event script - 3/20/2019 5:03:04 PM   
olichris

 

Posts: 11
Joined: 3/14/2019
Status: offline
Hi Bill,
it works but badly. If Germany say no, Italy receives help from Germany anyway.
I would like DE804 to be a consequence of DE802.

(in reply to BillRunacre)
Post #: 7
RE: help me for event script - 3/20/2019 5:39:37 PM   
crispy131313


Posts: 2055
Joined: 11/30/2013
Status: offline
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]
}

< Message edited by crispy131313 -- 3/20/2019 5:43:17 PM >


_____________________________


(in reply to olichris)
Post #: 8
RE: help me for event script - 3/21/2019 3:45:46 PM   
olichris

 

Posts: 11
Joined: 3/14/2019
Status: offline
I did another way:

In the decision scripts:
{
#NAME= DE 802 - Germany: Should Germany accept to help Italy? (AI - 30% Yes)
#POPUP= Führerhauptquartier %N%NDue to his weak economy, Italy ask for German help. we can give 5% MMP of our production to Italy this turn but Italy may loose 250 morale points for this humiliation. %N%NShould Germany help Italy (YES) or no (NO)?
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
; Set decision value (1st internally stored decision)
#DECISION= 802
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT= German help for Italy
#NOTES= If you say yes, you can create this turn a temporary convoy during one turn between Germany and Italy. Italy has 1/3 chance to see morale drop by 250 points, reflecting the resistance of the German grip on Italian politics.
#NOTES_POSITION= 173,74
; Set AI acceptance % (AI will accept 90% of the time)
#AI_RESPONSE= 30
#AI_RESPONSE_POPUP=
#DATE= 1939/09/03
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Berlin and Rome is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#ALIGNMENT_POSITION= 171,101 [1]
;Set National Morale Trigger (dummy value)
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

In the convoys scripts:
{
#NAME= Germany support Italy
#POPUP= Germany support Italy
#IMAGE=
#SOUND= convoy.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#SENDER_ID= 45
#RECIPIENT_ID= 59
#SENDER_ID_TRIGGER= 100
#RECIPIENT_ID_TRIGGER= 100
#PERCENTAGE= 5
#MAX_PERCENTAGE= 5
#SPRING_REDUCTION= 100
#SUMMER_REDUCTION= 100
#FALL_REDUCTION= 100
#WINTER_REDUCTION= 100
#SOURCE_PORT= 259,137
#DESTINATION_PORT= 258,135
#WAYPOINT= 259,135
}

In the morale scripts:
{
#NAME= Italy - Italy loose morale after asking help from Germany [-250]
#POPUP= Italy loose morale after asking help from Germany [-250]
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 802[1]
#COUNTRY_ID= 59
#TRIGGER= 33
#NM_UPDOWN= -250
#NM_TURNS= 1
#DATE= 1939/09/03
#OBJECTIVE_TEXT_POSITION=
#ALIGNMENT_POSITION=
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
; 2nd Line - Italy politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 59 [1] [100] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

DE802 appears every turn and create, if you say yes, a temporary convoy during one turn between Germany and Italy. Germany give 5% of his MPP to Italy. Italy loose 250 morale points. As the moral events is triggering 3 times by turn (2 in the axis turn and 1 in the allies turn), there 's 33 percentage when triggering.

Thanks to everyone who helped me.


(in reply to crispy131313)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII War in Europe >> Scenario Design and Modding >> help me for event script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.422