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

Scurek

First Lieutenant
49 Badges
Dec 24, 2013
293
294
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Cadet

Integrity​

I have verified my game files (on Steam)​

Yes

I have disabled all mods​

Yes

Required​

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

OS​

Windows

Additional​

Bug Type​

  • Other

Attachments​

View attachment Scripted_effects_test.zip

Screenshot​

View attachment Scripted_effects_test.zip

 
Last edited:
Upvote 0