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

Question

Field Marshal
Jun 11, 2019
3.417
6.752

Information​

I have verifed my game files (Steam only)​

Yes

I have disabled all mods​

Yes

I am running the latest game update​

Yes

Required​

Summary​

1.9.2.1 : Grand tournament : To the victor, missing event target

Description​

Picture says it all, the event target failed to save, most likely because it wasnt able to find a valid event target, but the event fired anyway.

image.png


Steps to reproduce​

See the save.

Game Version​

1.9.2.1

Platform​

Windows

Additional Information​

Affected Feature​

  • Events

Save Game​

View attachment grand tournament event target failed to save.ck3

Other Attachments​



 
I think I figured out the problem. The trigger and immediate blocks do not match.

The trigger uses this :

Code:
OR = {
            any_child = { tournament_1240_prize_child_trigger = yes }
            AND = {
                this = house.house_head
                any_courtier_or_guest = {
                    house = root.house
                    tournament_1240_prize_child_trigger = yes
                }
            }
        }

But the immediate specifies a spouse and age requirement before adding courtiers/guests to the list :

Code:
if = {
            limit = { this = this.house.house_head }
            every_courtier_or_guest = {
                limit = {
                    house = root.house
                    tournament_1240_prize_child_trigger = yes
                    NOT = {
                        any_spouse = {
                            count >= 1
                            even_if_dead = yes
                        }
                    }
                    age <= 35
                }
                add_to_list = marriage_prize_list
            }
        }

So the solution is to add the spouse and age requirement to the trigger :

Code:
OR = {
            any_child = { tournament_1240_prize_child_trigger = yes }
            AND = {
                this = house.house_head
                any_courtier_or_guest = {
                    house = root.house
                    tournament_1240_prize_child_trigger = yes
                    NOT = {
                        any_spouse = {
                            count >= 1
                            even_if_dead = yes
                        }
                    }
                    age <= 35
                }
            }
        }

Credits to Pep and Amtep for helping to debug this.