Which file has

Please post here for questions and discussion about scenario design and general game modding. The graphics and scenarios are easily modifiable. Discuss your experiements in this area and get tips and advice!

Moderators: Joel Billings, JanSorensen

Post Reply
Traveler
Posts: 115
Joined: Wed Mar 30, 2005 11:47 pm

Which file has

Post by Traveler »

the scrips that controle fixed events?

Also, which file has starting equipment?
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: Which file has

Post by PDiFolco »

What do you mean by "events" ? Vichy France looks partly hard-coded in Vichy.txt, alliances and DoW times are in Alliance.txt, factory multipliers in factory.txt , and victory conditions in scendatXX.txt.
Starting "equipment" is in regionXX.txt file for defining where are armies at start,and in unitdataXX.txt for defining unit attributes.
PDF
Traveler
Posts: 115
Joined: Wed Mar 30, 2005 11:47 pm

RE: Which file has

Post by Traveler »

HMMM...

I finally fixed the nonsence about Russia attacking Germany:

/ delcare war based on these dates
// DECLARE_WAR,<PLAYER>,<Target player>,<year>,<month>
DECLARE_WAR,PLAYER_UN,PLAYER_JAP,1943,1
DECLARE_WAR,PLAYER_UN,PLAYER_GER,1943,1
DECLARE_WAR,PLAYER_SOV,PLAYER_GER,1946,1 << This read ....1943,1 before.

But I'd like to find the trigers to make sure Russia goes hostile if certin countries are attacked.
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: Which file has

Post by PDiFolco »

Weird, where did you find the DECLARE_WAR in 1946 line ? In alliance.txt I already read 1943

And again in Alliance.txt the CAUSE_WAR trigger should do what you want, however I'm not sure of how it works, I can't understand the first line (WA declares war on Germany if Japan attacks any of them ? Looks weird..) :

// when a frozen zone is attacked by player on these nations war is declared on this player also
// CAUSE_WAR,<flag 0=only if frozen, 1=any time>,<attack player on frozen>,<this player>,<delcares war on player>,<if this nation attacked>,<nation>...
CAUSE_WAR,1,PLAYER_JAP,PLAYER_UN,PLAYER_GER,United States,Commonwealth,France,Netherlands,UK,Canada
CAUSE_WAR,0,PLAYER_GER,PLAYER_UN,PLAYER_JAP,United States,Commonwealth,France,Netherlands,UK,Canada
PDF
Traveler
Posts: 115
Joined: Wed Mar 30, 2005 11:47 pm

RE: Which file has

Post by Traveler »

I'd like to add a line that says:
DECLARE_WAR,PLAYER_SOV,PLAYER_JAP,1945,1 (? I forget, what the date Russia actully entered WW2 against Japan? I think it was late 44.)

Is there any way to make this contingent on PLAYER_UN haveing attacked the Japanese home islands?

color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: Which file has

Post by color »

ORIGINAL: PDiFolco

Weird, where did you find the DECLARE_WAR in 1946 line ? In alliance.txt I already read 1943

That is because the original reads 1943, but he changed it to 1946 [;)]
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: Which file has

Post by color »

ORIGINAL: PDiFolco

And again in Alliance.txt the CAUSE_WAR trigger should do what you want, however I'm not sure of how it works, I can't understand the first line (WA declares war on Germany if Japan attacks any of them ? Looks weird..) :

// when a frozen zone is attacked by player on these nations war is declared on this player also
// CAUSE_WAR,<flag 0=only if frozen, 1=any time>,<attack player on frozen>,<this player>,<delcares war on player>,<if this nation attacked>,<nation>...
CAUSE_WAR,1,PLAYER_JAP,PLAYER_UN,PLAYER_GER,United States,Commonwealth,France,Netherlands,UK,Canada
CAUSE_WAR,0,PLAYER_GER,PLAYER_UN,PLAYER_JAP,United States,Commonwealth,France,Netherlands,UK,Canada

Basically this ensure that whenever any nation declares war on Japan, war is declared on Germany as well. And vice versa.
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: Which file has

Post by PDiFolco »

ORIGINAL: color
ORIGINAL: PDiFolco

And again in Alliance.txt the CAUSE_WAR trigger should do what you want, however I'm not sure of how it works, I can't understand the first line (WA declares war on Germany if Japan attacks any of them ? Looks weird..) :

// when a frozen zone is attacked by player on these nations war is declared on this player also
// CAUSE_WAR,<flag 0=only if frozen, 1=any time>,<attack player on frozen>,<this player>,<delcares war on player>,<if this nation attacked>,<nation>...
CAUSE_WAR,1,PLAYER_JAP,PLAYER_UN,PLAYER_GER,United States,Commonwealth,France,Netherlands,UK,Canada
CAUSE_WAR,0,PLAYER_GER,PLAYER_UN,PLAYER_JAP,United States,Commonwealth,France,Netherlands,UK,Canada

Basically this ensure that whenever any nation declares war on Japan, war is declared on Germany as well. And vice versa.

So this can easily be used to have USSR declare war on Axis as soon as some minors are attacked, that was Traveller's question :). Stg like :
CAUSE_WAR,0,PLAYER_GER,PLAYER_USSR,PLAYER_GER, Turkey, Persia
PDF
Traveler
Posts: 115
Joined: Wed Mar 30, 2005 11:47 pm

RE: Which file has

Post by Traveler »

Thanks all[&o]
color
Posts: 324
Joined: Tue Jul 24, 2001 8:00 am
Location: Oslo, Norway

RE: Which file has

Post by color »

ORIGINAL: PDiFolco

So this can easily be used to have USSR declare war on Axis as soon as some minors are attacked, that was Traveller's question :). Stg like :
CAUSE_WAR,0,PLAYER_GER,PLAYER_USSR,PLAYER_GER, Turkey, Persia

I am not sure if that would work, but please do try it and let us know. In the case of Turkey, whenever a German player attacks Turkey the Russian unfreeze and war is declared. So if this is your desired effect is it already in the game. Which can be a nasty surprise if you were not prepared for it, happened to me[:D].

This logic is in the frozen.txt file:

// Turkey 86,87
FROZEN,86,FR_Group,86
FROZEN,86,FR_Player owns
FROZEN,86,FR_Owned by,PLAYER_NEU
FROZEN,87,FR_Group,86
FROZEN,87,FR_Owned by,PLAYER_NEU

The way this work is the following.
- The first number after FROZEN is the region id (86 & 87 are the two turkish regions).
- The number behind F_Group identifies to which frozen group the region belongs. In this case its group 86, the same group as all frozen west and central russian regions.
- The identifier behind FR_Owned by identifies which player owns the region (in this case it's neutral).

The line: FROZEN,86,FR_Player owns seems most probably like an error and perhaps should not be there.

So if you wanted to have Russia declare on Germany if Norway is attacked, for instance, you would add the following lines in the frozen.txt file:

FROZEN,99,FR_Group,86
FROZEN,99,FR_Owned by,PLAYER_NEU


Jorgen

PD! If you study the frozen.txt file you will discover the following maybe little known fact: If Germany or Japan attacks any turkish region, Afghanistan or Northern Persia: Russia will unfreeze and a state of war will exists.
User avatar
eMonticello
Posts: 525
Joined: Fri Mar 15, 2002 7:35 am

RE: Which file has

Post by eMonticello »

ORIGINAL: Traveler
I'd like to add a line that says:
DECLARE_WAR,PLAYER_SOV,PLAYER_JAP,1945,1 (? I forget, what the date Russia actully entered WW2 against Japan? I think it was late 44.)
The date that the Soviet Union declared war on Japan was between the dates that Little Boy was dropped on Hiroshima and Fat Man was dropped on Nagasaki.

Few things are harder to put up with than the annoyance of a good example. -- Pudd'nhead Wilson
Post Reply

Return to “Mods and Scenarios”