Potzblitz V25.0 OCT 18th 2024

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: Potzblitz V25.0 OCT 18th 2024

Post by Robotron »

Okay, you'll first need to have an editor to be able to edit the scripts. I suggest to use Notepad++.

https://notepad-plus-plus.org/downloads/


Then go to the game's DATA folder, within that folder is another folder called game, open that folder.

Within the game folder you find a lot of scripts. Of these scripts the following hold the starting values for each scenario.

1914.lua is the script for "Schlieffens's Legacy" scenario

1915.lua is the script for "Aufmarsch Ost" scenario

1916.lua is the script for "Rupprecht Plan" scenario

1917.lua is the script for "Schlieffen-Moltke (historical)" scenario

1918.lua is the script for "Home before the leaves fall" scenario

Potzblitz.lua is the script for "Lamps go out in Europe" scenario.


In each script you will find the political alignment values for all nations beginning at ca. line 1400, the exact line is a bit different in each script.

The "command" to set the alignment is called SetFactionAlignment(X,Y)

X is a number between 0 to 22 to indicate which nation will be modified.
France is 0, Britain is 1, Germany is 2, Austria is 3, Russia is 4, Turkey is 5, Belgium is 6, Serbia is 7, Italy is 8, Netherlands is 9, USA is 10, Sweden is 11, Denmark is 12, Finland is 13, Greece is 14,
15 is Spain, 16 is Portugal, 17 is Switzerland, 18 is Romania, 19 is Bulgaria, 20 is Norway, 21 is Arabia (but don't use it!), 22 is Persia

Y is the alignment, which is a number between 0 and 100.
0 means the nation has joined CP.
100 means the nation has joined Entente.
50 is perfectly neutral.

Now for example see what the instructions for France are in the script at ca. line 1400:

Code: Select all

SetFactionAlignment(0, 99.7)  
The number 0 indicates that the alignment for France will be set.
The number 99.7 means that the alignment for France is set to 99,7 at the start of the game.
Note that you must use a dot (.) and not a comma (,) to indicate fractions.

France has an alignment at 99,7 which means she will join Entente in 3 turns.

Another example this time for Germany:

Code: Select all

SetFactionAlignment (2, 0.3)   
The number 2 indicates that the alignment for Germany will be set.
The number 0.3 means that the alignment for Germany is set to 0,3 at the start of the game.
Again, note that you must use a dot (.) and not a comma (,) to indicate fractions.

Germany has an alignment at 0,3 which means she will join CP in 3 turns.


Another example for a very Entente-friendly Denmark:

Code: Select all

SetFactionAlignment (12, 97)   
Another example for a very CP-friendly Spain:

Code: Select all

SetFactionAlignment (15, 3)   
etc.

You can try out any alignment values from 1 to 99 for each nation with the following limitations:

You may NOT change the starting values for Serbia, France, Germany and Austria because this will lead to too many problems.


If you need more info I'll be happy to help.
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
LepetitKipetchi
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 49
Joined: Sun Aug 16, 2020 1:38 pm

Re: Potzblitz V25.0 OCT 18th 2024

Post by LepetitKipetchi »

Hello Robotron and happy new year everybody,

Thanks for these explanations, it is very simple and works easily ! It was exactly what I needed to create new original scenarios :)
If the diplomaty points are too close from an alliance at the beginning, the new countries are capitulating so it looks like the game needs to have the main protagonists fighting before having small countries joining them no ?
For example with Entente, Netherlands and Denmark joined Serbia at the first turn but in the same turn they made reddition.

Thanks again,
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: Potzblitz V25.0 OCT 18th 2024

Post by Robotron »

Exactly for that reason I wrote

Code: Select all

 You can try out any alignment values from 1 to 99
so no instant surrender takes place.

However it should be safe to go as far as 0.3 and 99.7, so the nations would join their respective alliances as early as turn 3.


Any by the way, the value is called alignment not diplomatic points, diplomatic points are the stuff you use to pay for events.

Using the correct term makes it easier for me to understand what you mean. ;)
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: Potzblitz V25.0 OCT 18th 2024

Post by Robotron »

Exactly for that reason I wrote
You can try out any alignment values from 1 to 99
so no instant surrender takes place.

However it should be safe to go as far as 0.3 and 99.7, so the nations would join their respective alliances as early as turn 3.


Any by the way, the value is called alignment not diplomatic points, diplomatic points are the stuff you use to pay for events.

Using the correct term makes it easier for me to understand what you mean. ;)
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
LepetitKipetchi
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 49
Joined: Sun Aug 16, 2020 1:38 pm

Re: Potzblitz V25.0 OCT 18th 2024

Post by LepetitKipetchi »

OK sorry for my mistake.
I just deleted the "math.random" for the nations I would like to add in the fight and it worked perfectly :)
Thanks again !!!
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”