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

WeeLittleSpoon

Never met a word he didn't like
88 Badges
Mar 30, 2017
488
1.972
  • Crusader Kings II
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Crusader Kings II: Charlemagne
  • 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
  • Hearts of Iron III
  • Darkest Hour
  • Europa Universalis IV: Wealth of Nations
  • Cities in Motion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Shadowrun Returns
  • Hearts of Iron IV: No Step Back
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
I've stumbled into a bug that I think, unusually, isn't actually my own fault.

I'm trying to create a special_guests role for hunts. When you have a variable that is equal to a character, the game should automatically select the appropriate character from that variable, and then make them a special guest for your hunt.

The problem that I'm running into is with the scope:special_option.

This works:

Code:
    special_guests = {
        hunt_victim = {
            is_shown = {
                has_variable = plotting_to_kill
                scope:special_option ?= flag:hunt_type_standard
            }

            is_required = no

            select_character = {
                var:plotting_to_kill = {
                    save_scope_as = character
                }
            }
        }
    }

This crashes the game:

Code:
    special_guests = {
        hunt_victim = {
            is_shown = {
                has_variable = plotting_to_kill
                scope:special_option ?= flag:hunt_type_falconry
            }

            is_required = no

            select_character = {
                var:plotting_to_kill = {
                    save_scope_as = character
                }
            }
        }
    }

It seems every time I try to use the scope:special_option ?= flag:hunt_type_falconry inside of the is_shown block in hunts, it crashes the game. If you make the change when the game is running, switching the hunt type, it works as you'd expect, but once you restart the game, the game crashes the second you choose the location for the hunt.

I've tried a bunch of different things before finally whittling down the problem to this little thing. The .info file tells me that scope:special_option is a hard coded scope for the special_guests block in an activity, and I've found a reference of it being used in a couple other events this way, but for some reason the game doesn't like the falconry special option.

Just thought I'd take a shot in the dark and ask if anyone has come across this before, and if there isn't maybe something really obvious that I'm missing?