Integrity
I have verified my game files (on Steam)
YesI have disabled all mods
YesRequired
Summary
Using add_province_triggered_modifier effects doesn't work in else (and else_if) blocks in scripted effects.Description
Since 1.36 add_province_triggered_modifier cannot be used in else_if and else blocks in scripted effects. While I don't think it impacts the game directly, it will certainly cause problems in some of the bigger mods.Steps to reproduce
I've attached a very simple mod with an event and a couple of scripted effects to showcase this bug.1. With the mod enabled pick a country with a few provinces (like Austria).
2. Trigger event scripted_effect_test.1 via console
3. Observe the options. The first option uses add_province_triggered_modifier directly in the event in the if block. The second option does the same but uses add_province_triggered_modifier in the else block. The third, fourth and fifth options are implemented via scripted effects using add_province_triggered_modifier in if, else and else_if blocks respectively. You can see that the last two options of the event have no effects while being completely the same as the second option, just implemented via a scripted effect.
Game Version
1.36.1OS
WindowsAdditional
Bug Type
- Other
Attachments
View attachment Scripted_effects_test.zipScreenshot
View attachment Scripted_effects_test.zip
Last edited:
Upvote
0