Description
Log effect doesn't work for loops
Game Version
[2.2.2]
What version do you use?
[8b3a]
What expansions do you have installed?
Megacorp
Do you have mods enabled?
Empty mode where I'm testing log command.
Please explain your issue is in as much detail as possible.
I've noticed that any log effects doesn't work for loop instances, like every_planet, every_owned_leader, using while structures and so on. Whilst game effects, like set_name works fine.
Steps to reproduce the issue.
> it has to be at least 3 "leader" rows in game logs...
Upload Attachment
Log effect doesn't work for loops
Game Version
[2.2.2]
What version do you use?
[8b3a]
What expansions do you have installed?
Megacorp
Do you have mods enabled?
Empty mode where I'm testing log command.
Please explain your issue is in as much detail as possible.
I've noticed that any log effects doesn't work for loop instances, like every_planet, every_owned_leader, using while structures and so on. Whilst game effects, like set_name works fine.
Steps to reproduce the issue.
Code:
country_event = {
id = irm.91
hide_window = yes
is_triggered_only = yes
immediate = {
every_owned_leader = {
limit = { leader_class = governor }
set_name = "leader"
log = "leader" # try to log this
this = { log = "leader_" } # 2nd test
leader = { log = "leader__" } # 3d test
}
}
}
Code:
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 107. leader
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 108. leader_
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 109. leader__
> it has to be at least 3 "leader" rows in game logs...
Upload Attachment
Attachments
Upvote
0