Have minor join a specific major

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
User avatar
Lothos
Posts: 1291
Joined: Tue May 23, 2006 8:22 pm

Have minor join a specific major

Post by Lothos »

Through events, how does one create a minor and have it join a specific major power.

For example, what if I wanted Greece to become a minor under the control of Italy (which is in the Axis) and/or a major power that is neutral. So lets say I wanted Saudi Arabia to become a minor under a neutral USA.

I been hammering my head on this for almost 2 days now with no luck. I tried looking at the World at War and how Thailand would work but I did not see anything in their that told me how Thailand was sent to be controlled by Japan instead of Germany.
User avatar
Elessar2
Posts: 1463
Joined: Wed Nov 30, 2016 12:35 am

Re: Have minor join a specific major

Post by Elessar2 »

Easy peasy, just set each minor to a specific major "parent" (one for Axis one for Allies) on the minor's main screen. That done, you may need a script to get it to actually join.
User avatar
Lothos
Posts: 1291
Joined: Tue May 23, 2006 8:22 pm

Re: Have minor join a specific major

Post by Lothos »

Needed it to be via a script.

What I did was make France start with Morocco, Algeria and Tunisia as Minors. When Vichy is formed I just wanted them to switch their allegiance to Vichy France (Vichy is a major power).

Best I could figure out so far was to force the three minors to be neutral and provide their resources to Vichy.
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

Re: Have minor join a specific major

Post by The Land »

Each minor is defined in the editor (not the scripts) as having one Axis and one Allied parent. If they enter the war, they automatically join the specified parent.

Greece could be allocated Italy as its Axis Parent and I believe Saudi already has USA as its Allied Parent. Though for a minor to enter the game properly, with its units appearing etc, it needs to reach 100% mobilisation and I am not entirely sure what happens in-game if a minor reaches 100% mobilisation before its associated major, this may not be possible. However, a minor can still provide MPP to its associated major via a Convoy script even if the minor is not mobilised

Does this help?
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
User avatar
Lothos
Posts: 1291
Joined: Tue May 23, 2006 8:22 pm

Re: Have minor join a specific major

Post by Lothos »

Yes, that does explain several things. So their default is the one specified in the editor no matter what.

I am curious what happens if their parent country is not in the game yet. I saw what happens if the major surrendered, the minor just keeps fighting but under their former majors banor.

The issue is the Editor will not let you assign a major that is not on the map yet. So I am not able to assign Tunis, Algeria and Morocco to Vichy France because they do not exist at the starting point of 1939.
User avatar
Lothos
Posts: 1291
Joined: Tue May 23, 2006 8:22 pm

Re: Have minor join a specific major

Post by Lothos »

Question along the same lines

surrender_2.txt

This event never works, I believe the pattern is that the country that is being surrendered to is not fully mobilized then it will not work. Has anyone else had this same issue?

Event 414 is Russia annexing the Baltic States.

{
#NAME= DE 602 - Soviet Annexation of Lithuania
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#GV= 1[1,100]
#LINK= 414[1]
#LEVEL= 0
#COUNTRY_ID= 64
#RECIPIENT_ID= 116
#ARMISTICE= 0
#REMOVE= 3
#TRIGGER= 100
#DATE= 1939/09/01
; 1st Line - Russia - Allies - Neutral - Not Surrendered
#VARIABLE_CONDITION= 116 [2] [0] [0]
; dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
User avatar
BillRunacre
Posts: 6779
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

Re: Have minor join a specific major

Post by BillRunacre »

It needs to be an Annexation script, these already exist in the game, here's the one for Lithuania:

;REMOVE1940
{
#NAME= Soviet Annexation of Lithuania
#POPUP=
#IMAGE=
#SOUND=
#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 always trigger (dummy value)
#LINK= 414[1]
#COUNTRY_ID= 64
#RECIPIENT_ID= 116
#TRIGGER= 100
#DATE= 1940/06/15
}
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
User avatar
Lothos
Posts: 1291
Joined: Tue May 23, 2006 8:22 pm

Re: Have minor join a specific major

Post by Lothos »

The problem with an annexation script is that it then makes the minor country disappear and completely part of the major power when it should be occupied territory by the major power.

Basically what I was trying to do is when Russia annexes the Baltic States that the territory becomes occupied and not part of Russia.

I tried to use the Norway code as a basis on how to do this but I realized these chain of events do not work unless the Major power is fully active.
Post Reply

Return to “Scenario Design and Modding”