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

nachinus

Homo ludens
74 Badges
Dec 27, 2002
6.582
3.148
  • Hearts of Iron IV: Cadet
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Expansion Pass
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Achtung Panzer
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • BATTLETECH: Season pass
  • Imperator: Rome Sign Up
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • BATTLETECH: Flashpoint
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Europa Universalis III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Heir to the Throne
  • East India Company
  • Deus Vult
I've just started to fiddle with the EUR/EU3 code and being used to the old HoI/EU2 one, I'm a bit lost with how the new event system works. I'm wondering how to make an event that will only fire only once in the whole game, and once it fires no other country can get it.

I know how to make an event fire only once for a given country, using flags (in fact I would also like to know if there's any other way than this one, I don't like filling the world with country_flags), but I have no idea if there is in the new EU3/EUR engine any kind of event that fires only once, like old HoI or EU2 events, or any trigger or special modifier that can be added so that it is an unique event.
 
nachinus said:
I've just started to fiddle with the EUR/EU3 code and being used to the old HoI/EU2 one, I'm a bit lost with how the new event system works. I'm wondering how to make an event that will only fire only once in the whole game, and once it fires no other country can get it.

I know how to make an event fire only once for a given country, using flags (in fact I would also like to know if there's any other way than this one, I don't like filling the world with country_flags), but I have no idea if there is in the new EU3/EUR engine any kind of event that fires only once, like old HoI or EU2 events, or any trigger or special modifier that can be added so that it is an unique event.

i would do this:
1. use the trigger "ai = no", so the event fires only for the player. with the switches you can modify the event in a way, that it is working for all countries/provinces/characters as you want.
2. use a country-flag for the players country, so its exclude that the event fires a second time. 1 country_flag should be ok. ;)
 
hmm...my suggestion: the event should trigger a "flag" for the triggering nation what would not allow the same nation to trigger it again... of course this would make the event trigger once PER nation :eek:o
 
You could make the event trigger another event for all other countries which tells them that the unique event has taken place somewhere else. This secondary one would give those countries the flag which prevents the unique event from firing.

I'm sure there's a way to give every country a flag when an event fires, not just the receiving country, though.
 
Cheexsta said:
You could make the event trigger another event for all other countries which tells them that the unique event has taken place somewhere else. This secondary one would give those countries the flag which prevents the unique event from firing.

I'm sure there's a way to give every country a flag when an event fires, not just the receiving country, though.
but this would mean a LOT of flags...and a possibility on crashing :eek:
 
next thought:

shouldn´t a trigger like
Code:
NOT = {
   any_country = { has_country_flag = blabla }
}

prevent the event from fireing, if ONE flag to ONE country is given?
 
Can't you set a global flag?