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

Cold Evil

Major
86 Badges
Jul 7, 2005
767
43
dev.evul.nu
  • Europa Universalis IV: Cossacks
  • Semper Fi
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: No Step Back
  • Divine Wind
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Hearts of Iron Anthology
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
Multiple selection of same event.

I have writhen a little event that you should be able to reselect the same option and get the same effect the same day. But how do I do this?

I can only shoos one option once and after that not get any more effect out of it.

(This event should make Germany hate you when you press on the “Hate You” button and make Germany love you when you press on the “Love You” button.)
Code:
event = {
	id = GER
	random = no

	name = "Diplomacy With Germany"
	desc = "Make a diplomatic state you whit to activate."
	style = 0
	picture = "Diplomacy_Germany"

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action_a = {
		name = "Hate you"
		command = { type = relation which = GER value = -100 }
	}
	action_b = {
		name = "Love you"
		command = { type = relation which = GER value = 100 }
	}
	action_c = {
		name = "Action 3"
		command = { }
	}
	action_d = {
		name = "Action 4"
		command = { }
	}
}
 

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Cold Evil said:
Multiple selection of same event.

I have writhen a little event that you should be able to reselect the same option and get the same effect the same day. But how do I do this?

I can only shoos one option once and after that not get any more effect out of it.

(This event should make Germany hate you when you press on the “Hate You” button and make Germany love you when you press on the “Love You” button.)
Code:
event = {
	id = GER
	random = no

	name = "Diplomacy With Germany"
	desc = "Make a diplomatic state you whit to activate."
	style = 0
	picture = "Diplomacy_Germany"

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action_a = {
		name = "Hate you"
		command = { type = relation which = GER value = -100 }
	}
	action_b = {
		name = "Love you"
		command = { type = relation which = GER value = 100 }
	}
	action_c = {
		name = "Action 3"
		command = { }
	}
	action_d = {
		name = "Action 4"
		command = { }
	}
}
If you want to be able to fire the event more than once (for the same country or different ones), you need to make it a persistent event by adding
persistent = yes

Some notes:
id = GER is not what you want...the id has to be a unique number (well actually, you can use ONE (and only one) event with a name for an ID).