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

Annerose

First Lieutenant
4 Badges
Jun 9, 2011
201
4
  • Arsenal of Democracy
  • Darkest Hour
  • Hearts of Iron III
  • 500k Club
1
tag = { TAG1 TAG2 TAG3 ?TAGX }
Added new option to generic events decision used to define countries which this event/decision is available for. No country = TAG should be specified for such events/decisions. The event/decision will be available only for the specified countries. This will greatly improve game speed when a lot of generic events are used for just few countries (set in event抯 triggers).


if i use this Header, and i do not wanna persistent ,
then what is its logic?
fired only once at first country who matching conditions and at TAG?
can fire once at eveny TAG when they matching conditions?
can fire always when they matching conditions?


2
the some porv like in Egypt has no BASE revoltrisk, but MidEast has it,
where can i change this?
 
1
tag = { TAG1 TAG2 TAG3 ?TAGX }
Added new option to generic events decision used to define countries which this event/decision is available for. No country = TAG should be specified for such events/decisions. The event/decision will be available only for the specified countries. This will greatly improve game speed when a lot of generic events are used for just few countries (set in event抯 triggers). if i use this Header, and i do not wanna persistent ,
then what is its logic?
fired only once at first country who matching conditions and at TAG?
can fire once at eveny TAG when they matching conditions?
can fire always when they matching conditions?
Fires once, depending on which country triggered it first.

2
the some porv like in Egypt has no BASE revoltrisk, but MidEast has it,
where can i change this?

Base revoltrisk? Are you sure you aren't thinking of cores/noncore? Some provinces have very low revolt risk. This is hardcoded, but Martin said something about removing the hardcoded low revolt risk last I checked. You could modify local province revolt risks by looking through a save game and finding the code for changing the rr of a province and then adding it to a .inc or .eug scenario file (since those are like save games).
 
Fires once, depending on which country triggered it first.
then i think add a option to get
"can fire once at eveny TAG when they matching conditions"
is a good idea, right?

Base revoltrisk? Are you sure you aren't thinking of cores/noncore? Some provinces have very low revolt risk. This is hardcoded, but Martin said something about removing the hardcoded low revolt risk last I checked. You could modify local province revolt risks by looking through a save game and finding the code for changing the rr of a province and then adding it to a .inc or .eug scenario file (since those are like save games).

Of course, mean that they are not the core.
so it is hardcoded?oh..
 
then i think add a option to get
"can fire once at eveny TAG when they matching conditions"
is a good idea, right?

It is in theory, but not on practice as such functionality implementation is pushing too much against the current events engine.
You can use a local flag to ensure that the event will fire just once for each country.


Of course, mean that they are not the core.
so it is hardcoded?oh..

Yes. Most African provinces and Pacific islands and some Asian provinces are hard-coded as low revolt risk ones. That is most probably a leftover from HoI1 or HoI2.
 
It is in theory, but not on practice as such functionality implementation is pushing too much against the current events engine.
You can use a local flag to ensure that the event will fire just once for each country.




Yes. Most African provinces and Pacific islands and some Asian provinces are hard-coded as low revolt risk ones. That is most probably a leftover from HoI1 or HoI2.

Firing once for each country already exists...I have it in both of the projects I'm working on.

Code:
event = {
    id = 0
.....
trigger = {
    or = {
        country = A
        country = B
    }
    not = { local_flag = 0 }
}
.....
action = {
command = { trigger = { country = A } type = COMMAND }
command = { trigger = { country = B } type = COMMAND }
command = { type = local_setflag which = 0 }
}
}
TAG is really a shorthand for the trigger = { or = { country.... } code. I almost never use TAG in my events since it is kind of buggy.