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

Melphiz

Corporal
19 Badges
Sep 8, 2014
29
2
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Res Publica
  • Sengoku
  • Europa Universalis IV: Pre-order
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Crusader Kings III
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Wealth of Nations
Hey guys,

I wonder who still checks in here and who's got the knowledge and will to help ^__^

I'm trying to create an event that will be activated manually but will occure for all provinces of a country.

As I have noticed, such events when activated via debug console will occure at your capital only.

So for now I was playing around with options like
Code:
any_neighbor_province {
    any_neighbor_province {
        any_neighbor_province {
            any_neighbor_province {
                any_neighbor_province {
                    thingstoactivate = 1
                }
            }
        }
    }
}
which work but will activate multiple times in the same province.

So either I need to find a way for enabling the event to occur in all provinces at once / the country (I tried playing around with country_event instead of province_event) or set a flag and checking if that flag was already set so the event does not occur multiple times in the same province.

And if that flag can be set, is there a way for a loop instead of manually adding more levels?

Oh, and is there a way to get a province id ingame (not from the files)?

Cheers
 
Hey.

Yes, using flag and checking it should prevent it to apply your effect multiple times. BUT.
Why are you using event? If you want to trigger it manually, why not use decision instead?