• 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.
Look!

Code:
########################
# Alliance with Poland #
########################
event = {
	id = XXX
	random = no
	couontry = UKR

	name = "Alliance with Poland"
	desc = "With the war with the Reds going badly the Ukrainian Leader Simon Petlyura and Polish head of State Jozef Pilsudski signed an alliance to fight the Reds and let the Poles regain Belarus which had been Part of Congress Poland in the 1600's."

	date = { day = 21 month = April year = 1920 }

	action_a = {
		name = "Offer them an alliance!"
		command = { type = trigger which = 244501 }
		command = { type = prestige value = 5 }
		command = { type = pop_militancy which = socialist value = 1 }
		command = { type = pop_militancy which = communist value = 1 }
	}
	action_b = {
		name = "We don't need their help!"
		command = { type = prestige value = 10 }
		command = { type = relation which = POL value = -30 }
	}
}


#############################
# Alliance with the Ukraine #
#############################
event = {
	id = 244501
	random = no
	country = POL

	#triggered by Ukraine

	name = "Alliance with the Ukraine"
	desc = "Today we have heard that the Ukrainians want us to help them fight in the war against Bolshevism! If we join them, we will gain Belarus and glory!"
	style = 0

	action_a = {
		name = "Join with them!"
		command = { type = prestige value = 20 }
		command = { type = relation which = UKR value = 50 }
		command = { type = alliance which = UKR }
	}
	action_b = {
		name = "No need, we might loose!"
		command = { type = prestige value = -30 }
		command = { type = relation which = UKR value = -50 }
	}
}


##############################
# The miracle on the Vistula #
##############################
event = {
	id = XXX0
	random = no
	country = U12

        trigger = {
                war = { country = POL country = U12 }
                NOT = {
                   control = { province = 412 data = U12 }
                }
        }

	name = "The miracle on the Vistula"
	desc = "In August 1920 the Red army was sweeping through Poland. But on the outskirts of Warsaw the Poles ,defient and brave, stood their ground. In the battle, on 5th August 1920, the Poles routed the invading Soviets and began to push them back to the Soviet border. After our crushing defeat and low morale, can we still fight them on?"
	style = 0

	date = { day = 5 month = august year = 1920 }

	action_a = {
		name = "Surrender and make peace"
		command = { type = trigger which = XXX1 } #Treaty of Riga
		command = { type = trigger which = XXX } #Miracle of the Vistula
	}
	action_b = {
		name = "fight on!"
		command = { type = reliability value = -1 }
		command = { type = elan value = -5 }
	}
}

##########################
# Miracle on the Vistula #
##########################

event = {
	id = XXX0
	random = no
	country = POL

	name = "The miracle on the Vistula"
	desc = "We have Just defeated the Bolshevik armies at the gates of Warsaw! Our crushing defeat and brilliant route of their forces has made them give up and we can now live in peace and prosperity!"
	style = 0

	action_a = {
		name = "Hurrah for Pisudski and Poland!"
		command = { type = prestige value = 20 }
	}
}

##################
# Treaty of Riga #
##################

event = {
	id = XXX0
	random = no
	country = U12

	name = "Treaty of Riga"
	desc = "After a long and brutal campaign the Soviets decided to call it quits after their humiliating defeat on the outskirts of Warsaw in August 1920 at the hands of the Poles."
	style = 0

	action_a = {
		name = "We´ll have our revenge, but not now."
		command = { type = prestige value = -50 }
                command = { type = secedeprovince which = POL value = 408 }
                command = { type = secedeprovince which = POL value = 409 }
                command = { type = secedeprovince which = POL value = 411 }
                command = { type = secedeprovince which = POL value = 365 }
                command = { type = secedeprovince which = POL value = 990 }
                command = { type = secedeprovince which = POL value = 988 }
                command = { type = secedeprovince which = POL value = 440 }
                command = { type = secedeprovince which = POL value = 435 }
                command = { type = trigger which = xxx } #Treaty of riga
	}
}

##################
# Treaty of Riga #
##################

event = {
	id = XXX0
	random = no
	country = POL

	name = "Treaty of Riga"
	desc = "The Russo-Polish war is now over, the Poles now looked to Lithuania and the city of Vilno. The crushing defeat of the Reds at the gates of Warsaw was seen, my Britsih General and historian, J.F.C Fuller, 'as one of the most important battles in western history'."
	style = 0

	action_a = {
		name = "Hurrah! Hurrah!"
		command = { type = prestige value = 50 }
	}
}

###########################
# Poland occupies Vilnius #
###########################

event = {
	id = XXX0
	random = no
	country = POL

        name = "Poland occupies Vilnius"
	desc = "Vilnus in Lithuania had a large Polish population and the Poles wanted this land. So when invading the Soviet held lands of Belarus, Polish troops invaded and occupied the city."
	style = 0

	date = { day = 9 month = october year = 1920 }

	action_a = {
		name = "Go ahead, Vilnius is ours"
		command = { type = trigger which = XXX1 } #Lithuania
		command = { type = prestige value = 10 }
                command = { type = badboy value = 10 }
                command = { type = relation which = LIT value = -50 }
	}
	action_b = {
		name = "Who needs Vilnius, anyway?"
		command = { type = prestige value = -10 }
		command = { type = relation which = LIT value = 20 }
	}
}

##########################
# Poland demands Vilnius #
##########################

# Action_b is removed indefinately

event = {
	id = XXX0
	random = no
	country = LIT

        name = "Poland demands Vilnius"
	desc = "In 1920 the Poles while invading the Soviet Union decided to occupy the city of Vilnus, one of the ancient Lithuanian Cities. Faced with the mastodont polish army, we have to surrender the city."
	style = 0

	action_a = {
		name = "There is no other option..."
		command = { type = prestige value = -50 }
                command = { type = secedeprovince which = POL value = 449 }
                command = { type = secedeprovince which = POL value = 407 }
	}
}
 
Kaiser Franz said:
could you tell me what the id codes are please. or give some ones because i wanna test these babies out... :cool:

Test them? Just use some ids above 1 million :)

I will try to create a progress file soon.

El-Rey can you e-mail me a fixed Sevres treaty?
 
Look at the useful info above, there youll find the site with the country IDs :)
 
Zuckergußgebäck said:
Fixed? What´s wrong with it?!

Well there was some kind of error in it that did make it not trigger ;)
 
oh yeah...Zucker your events on The Treaty of Riga are very good, but when the treaty happens it doesn't make peace between Poland and USSR. i thought i'd mention that and the fact you spelled country wrong in the first event, the allaince with Poland one.
 
Look!

Code:
########################
# Alliance with Poland #
########################
event = {
	id = XXX
	random = no
	couontry = UKR

	name = "Alliance with Poland"
	desc = "With the war with the Reds going badly the Ukrainian Leader Simon Petlyura and Polish head of State Jozef Pilsudski signed an alliance to fight the Reds and let the Poles regain Belarus which had been Part of Congress Poland in the 1600's."

	date = { day = 21 month = April year = 1920 }

	action_a = {
		name = "Offer them an alliance!"
		command = { type = trigger which = 244501 }
		command = { type = prestige value = 5 }
		command = { type = pop_militancy which = socialist value = 1 }
		command = { type = pop_militancy which = communist value = 1 }
	}
	action_b = {
		name = "We don't need their help!"
		command = { type = prestige value = 10 }
		command = { type = relation which = POL value = -30 }
	}
}


#############################
# Alliance with the Ukraine #
#############################
event = {
	id = 244501
	random = no
	country = POL

	#triggered by Ukraine

	name = "Alliance with the Ukraine"
	desc = "Today we have heard that the Ukrainians want us to help them fight in the war against Bolshevism! If we join them, we will gain Belarus and glory!"
	style = 0

	action_a = {
		name = "Join with them!"
		command = { type = prestige value = 20 }
		command = { type = relation which = UKR value = 50 }
		command = { type = alliance which = UKR }
	}
	action_b = {
		name = "No need, we might loose!"
		command = { type = prestige value = -30 }
		command = { type = relation which = UKR value = -50 }
	}
}


##############################
# The miracle on the Vistula #
##############################
event = {
	id = XXX0
	random = no
	country = U12

        trigger = {
                war = { country = POL country = U12 }
                NOT = {
                   control = { province = 412 data = U12 }
                }
        }

	name = "The miracle on the Vistula"
	desc = "In August 1920 the Red army was sweeping through Poland. But on the outskirts of Warsaw the Poles ,defient and brave, stood their ground. In the battle, on 5th August 1920, the Poles routed the invading Soviets and began to push them back to the Soviet border. After our crushing defeat and low morale, can we still fight them on?"
	style = 0

	date = { day = 5 month = august year = 1920 }

	action_a = {
		name = "Surrender and make peace"
		command = { type = trigger which = XXX1 } #Treaty of Riga
		command = { type = trigger which = XXX } #Miracle of the Vistula
	}
	action_b = {
		name = "fight on!"
		command = { type = reliability value = -1 }
		command = { type = elan value = -5 }
	}
}

##########################
# Miracle on the Vistula #
##########################

event = {
	id = XXX0
	random = no
	country = POL

	name = "The miracle on the Vistula"
	desc = "We have Just defeated the Bolshevik armies at the gates of Warsaw! Our crushing defeat and brilliant route of their forces has made them give up and we can now live in peace and prosperity!"
	style = 0

	action_a = {
		name = "Hurrah for Pisudski and Poland!"
		command = { type = prestige value = 20 }
	}
}

##################
# Treaty of Riga #
##################

event = {
	id = XXX0
	random = no
	country = U12

	name = "Treaty of Riga"
	desc = "After a long and brutal campaign the Soviets decided to call it quits after their humiliating defeat on the outskirts of Warsaw in August 1920 at the hands of the Poles."
	style = 0

	action_a = {
		name = "We´ll have our revenge, but not now."
		command = { type = prestige value = -50 }
                command = { type = secedeprovince which = POL value = 408 }
                command = { type = secedeprovince which = POL value = 409 }
                command = { type = secedeprovince which = POL value = 411 }
                command = { type = secedeprovince which = POL value = 365 }
                command = { type = secedeprovince which = POL value = 990 }
                command = { type = secedeprovince which = POL value = 988 }
                command = { type = secedeprovince which = POL value = 440 }
                command = { type = secedeprovince which = POL value = 435 }
                command = { type = trigger which = xxx } #Treaty of riga
                command = { type = peace which = POL value = 0 }
	}
}

##################
# Treaty of Riga #
##################

event = {
	id = XXX0
	random = no
	country = POL

	name = "Treaty of Riga"
	desc = "The Russo-Polish war is now over, the Poles now looked to Lithuania and the city of Vilno. The crushing defeat of the Reds at the gates of Warsaw was seen, my Britsih General and historian, J.F.C Fuller, 'as one of the most important battles in western history'."
	style = 0

	action_a = {
		name = "Hurrah! Hurrah!"
		command = { type = prestige value = 50 }
	}
}

###########################
# Poland occupies Vilnius #
###########################

event = {
	id = XXX0
	random = no
	country = POL

        name = "Poland occupies Vilnius"
	desc = "Vilnus in Lithuania had a large Polish population and the Poles wanted this land. So when invading the Soviet held lands of Belarus, Polish troops invaded and occupied the city."
	style = 0

	date = { day = 9 month = october year = 1920 }

	action_a = {
		name = "Go ahead, Vilnius is ours"
		command = { type = trigger which = XXX1 } #Lithuania
		command = { type = prestige value = 10 }
                command = { type = badboy value = 10 }
                command = { type = relation which = LIT value = -50 }
	}
	action_b = {
		name = "Who needs Vilnius, anyway?"
		command = { type = prestige value = -10 }
		command = { type = relation which = LIT value = 20 }
	}
}

##########################
# Poland demands Vilnius #
##########################

# Action_b is removed indefinately

event = {
	id = XXX0
	random = no
	country = LIT

        name = "Poland demands Vilnius"
	desc = "In 1920 the Poles while invading the Soviet Union decided to occupy the city of Vilnus, one of the ancient Lithuanian Cities. Faced with the mastodont polish army, we have to surrender the city."
	style = 0

	action_a = {
		name = "There is no other option..."
		command = { type = prestige value = -50 }
                command = { type = secedeprovince which = POL value = 449 }
                command = { type = secedeprovince which = POL value = 407 }
	}
}

Here you go.

And as i directly copied your descriptions, who made the error? And which country is it?
 
And about West Ukraine? :)

I noticed that isn't any event annexing them.

So what trigger should the event have? By date or when Poland occupy provs?

;)
 
OK, as said in Armies thread, I think that the Versailles violation should only fire after a sucessful TGWOR, because Germany was faced with such manpower problems that it would have been impossible for them to gain such an army.

If not, I suggest that we make Germany unable to build irregulars until the Versailles violation.