• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
I made this event and put it in the hoi2.txt

Code:
#########################################################################
#  Argentina gears up for war
#########################################################################

event = {
	id = 2551985
	random = no
	country = ARG

	name = Argentina gears up for war
	desc = EVT_2551985_DESC
	picture = "factory"
	style = 0

	trigger = {
		atwar = no
		OR = {
			alliance = { country = CHL  country = SOV }
			alliance = { country = CHL  country = VEN }
                        alliance = { country = CHL  country = BRA }
			alliance = { country = CHL  country = PAR }
                        alliance = { country = CHL  country = URU }
			alliance = { country = BRA  country = SOV }
			alliance = { country = BRA  country = VEN }
                        alliance = { country = BRA  country = BOL }
			alliance = { country = BRA  country = PAR }
                        alliance = { country = BRA  country = URU }
			alliance = { country = BOL  country = SOV }
			alliance = { country = BOL  country = VEN }
                        alliance = { country = BOL  country = CHL }
			alliance = { country = BOL  country = PAR }
                        alliance = { country = BOL  country = URU }
			alliance = { country = PAR  country = SOV }
			alliance = { country = PAR  country = VEN }
			alliance = { country = PAR  country = URU }
			alliance = { country = URU  country = SOV }
			alliance = { country = URU  country = VEN }
			under_attack = GER
			under_attack = ITA
			under_attack = JAP
			control = { province = 485 data = SOV } #Warshaw
			control = { province = 56  data = ENG } #Paris
			control = { province = 56  data = USA } #Paris
			control = { province = 300 data = USA } #Berlin
			control = { province = 300 data = SOV } #Berlin
			control = { province = 515 data = ENG } #Rome
			control = { province = 515 data = SOV } #Rome
			control = { province = 19  data = SOV } #London
			war = { country = URU country = GER }
			war = { country = URU country = JAP }
			war = { country = BRA country = GER }

		}
		random = 15
	}

	date = { day = 0 month = january year = 1936 }
    offset = 5
	deathdate = { day = 29 month = december year = 1963 }

	action_a = {
		ai_chance = 100
		name = OK
		command = { type = domestic which = professional_army value = -1 }
		command = { type = construct which = ic where = 825 value = 1 }
		command = { type = construct which = ic where = 667 value = 3 }
		command = { type = peacetime_ic_mod value = 25 }
	}
}

right?

Now i tested them in the game and it works when i force it through with the cheatbar, the commands all work like a charm. But its doesn't seem to trigger. Can someone please check the event and see if there are any flaws.

Tried it only once though, i just made an alliance between Brazil and USSR just to see if it would work, but it didn't.

what i want is the event to trigger when any of those actions happen, right away. Like when Brazil goes in alliance with Soviet Union. I want it to happen right after that alliance happens, not a few months later..... Is that possible?


I have made and want to make more of these "gearing up for war" events for other countries, countries with at least 30 base IC

I also noticed that the changed hoi2.txt didn't change the 4 letters in the top right corner of the menu. I thought it would.
 

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
you mean the "random = no" or the "Random = 15"?
 

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
ah yes, jolly good. It now works right away. Now that that also works, still got 1 more problem. It only works once.

One of the triggers is that when Germany controls warshaw. But when warshaw was taken(1939 scenario) nothing happened as the event already triggered when Brazil got in the comintern.

I'm guessing i have to put the random on yes, but i don't know.