Hi operating. I'll give you a detailed line by line description of this event:operating wrote:Hello Robotron,
Question: Can the February Revolution happen before Feb. 1917? Also, if Russia's NM is below 50 NM, what happens then, if anything? I'm not sure if a minimum of 50 NM is required for this to kick in. What if it is 60 NM?
February revolution
function FebruaryRevolution()
if GetEvent("FebruaryRevolution") == 0 and GetEvent("OctoberRevolution") ~= 0 then
if game.date.year >= 1917 then
local russia = game:GetFactionById(4)
if russia.morale < 50 then
SetEvent("FebruaryRevolution", game.turn)
ChangeFactionMorale(russia, 20)
end
end
end
end
Code: Select all
function FebruaryRevolution()
Code: Select all
if GetEvent("FebruaryRevolution") == 0 and GetEvent("OctoberRevolution") ~= 0 then
Code: Select all
if game.date.year >= 1917 then
Code: Select all
local russia = game:GetFactionById(4)
Code: Select all
if russia.morale < 50 then
Code: Select all
SetEvent("FebruaryRevolution", game.turn)
Code: Select all
ChangeFactionMorale(russia, 20)
Code: Select all
end
end
end
end
Hope this helps.
P.S: the game never shows the correct "internal" morale level of the factions in your alliance, the values are the ones from the LAST turn, not the current turn. This was changed in PotzBlitz.