Entry turns?

Post new mods and scenarios here.

Moderator: MOD_Commander_The_Great_War

Post Reply
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

Entry turns?

Post by JJKettunen »

Hi,

I've figured out how to change turn dates, but not yet how to change entry dates for different countries. My idea is to start with the western front on turn 1, turn 2 wouls see AH vs. Serbia, and on turn 3 Russia would join in. If it turns out to be impossible, then all fronts would start blazing on early August.

I'd appeciate any help here. Thanks!

Myrddraal
Posts: 335
Joined: Tue Nov 13, 2012 7:41 am

RE: Entry turns?

Post by Myrddraal »

Look in the scenario file (i.e. 1914.lua) for the lines SetFactionAlignment
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

RE: Entry turns?

Post by JJKettunen »

Thanks, I've checked those but couldn't figure it out. Does one decimal mean one turn?
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

RE: Entry turns?

Post by JJKettunen »

Hmmm, looking at the data, 0.3 means one turn, I guess.

edit: approximately, since it is event related.
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

RE: Entry turns?

Post by JJKettunen »

Had time only for quick testing, but it seems that the first turn is always AH vs. Serbia, before others show up in the following turns, according to their values.
Myrddraal
Posts: 335
Joined: Tue Nov 13, 2012 7:41 am

RE: Entry turns?

Post by Myrddraal »

The starting alliances are defined by which alliance bracket the faction is included in. So in 1914.lua, you'll see something like this:

Code: Select all

alliances =
 {
   {
     id = 0,
 
     factions =
     {
         [i]A load of factions, these are the neutral factions[/i]
     }
   },
   -- **************************** ENTENTE ALLIES ***********************
   {
     id = 1,
     enemies = {2},
 
     factions =
     {
         [i]Just Serbia here[/i]
     }
   },
 
   -- ******************* CENTRAL POWERS *********************
   {
     id = 2,
 
     enemies = {1},
 
     factions =
     {
         [i]Just Austria here[/i]
     }
   }
 }

To change the starting alliances, shift factions between the relevant sections. The alignment of neutral nations is then set by the function SetFactionAlignment
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

RE: Entry turns?

Post by JJKettunen »

Thanks for the info! I have a closer look tomorrow.
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

RE: Entry turns?

Post by JJKettunen »

It works. w00t!
Post Reply

Return to “Mods and Scenarios”