Page 1 of 1
Which file has
Posted: Sun Apr 03, 2005 8:47 am
by Traveler
the scrips that controle fixed events?
Also, which file has starting equipment?
RE: Which file has
Posted: Sun Apr 03, 2005 11:51 am
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.
RE: Which file has
Posted: Sun Apr 03, 2005 8:03 pm
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.
RE: Which file has
Posted: Sun Apr 03, 2005 8:46 pm
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
RE: Which file has
Posted: Sun Apr 03, 2005 9:00 pm
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?
RE: Which file has
Posted: Sun Apr 03, 2005 10:30 pm
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 [;)]
RE: Which file has
Posted: Sun Apr 03, 2005 10:32 pm
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.
RE: Which file has
Posted: Mon Apr 04, 2005 10:03 am
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
RE: Which file has
Posted: Mon Apr 04, 2005 5:27 pm
by Traveler
Thanks all[&o]
RE: Which file has
Posted: Tue Apr 05, 2005 12:04 am
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.
RE: Which file has
Posted: Fri Apr 08, 2005 10:17 pm
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.