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

ourg

Captain
Oct 29, 2019
379
1.309

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​

The teach court tutor task send the interface toast to the tutor, not the player

Description​

After wondering why I never have a trigger from the teach court tutor task, i've foudn out that the interface toast is sended to the tutor and not the player.

Steps to reproduce​

Use the teach court task and you never see an interface toast

Game Version​

1.15

Platform​

Windows

Additional Information​

Affected Feature​

  • Gameplay
  • Interface

Save Game​



Other Attachments​



 
  • 1
  • 1
Reactions:
The cause of this bug is that the send_interface_toast uses the wrong scope

Currently it's as this :

Perl:
court_tutor_improve_others_skill_effect = {
    send_interface_toast = {
        type = event_royal_court_good_with_text
        title = court_tutor_improve_others_title
        desc = court_tutor_improve_others_notification_desc
        left_icon = root
        right_icon = scope:target_character

        scope:target_character = { add_$SKILL$_skill = 1 }
    }
}

court_tutor_improve_others_trait_effect = {
    send_interface_toast = {
        type = event_royal_court_good_with_text
        title = court_tutor_improve_others_title
        desc = court_tutor_improve_others_notification_desc
        left_icon = root
        right_icon = scope:target_character

        scope:target_character = { add_trait = $TRAIT$ }
    }
}

court_tutor_improve_others_trait_xp_effect = {
    send_interface_toast = {
        type = event_royal_court_good_with_text
        title = court_tutor_improve_others_title
        desc = court_tutor_improve_others_notification_desc
        left_icon = root
        right_icon = scope:target_character

        scope:target_character = {
            add_trait_xp = {
                trait = $TRAIT$
                value = 5
            }
        }
    }
}

court_tutor_improve_others_trait_track_xp_effect = {
    send_interface_toast = {
        type = event_royal_court_good_with_text
        title = court_tutor_improve_others_title
        desc = court_tutor_improve_others_notification_desc
        left_icon = root
        right_icon = scope:target_character

        scope:target_character = {
            add_trait_xp = {
                trait = $TRAIT$
                track = $TRACK$
                value = 5
            }
        }
    }
}


So it doesn't work because root is the tutor

so to have the interface toast sent to the player we need the scope defined as this :


Code:
court_tutor_improve_others_skill_effect = {
    scope:liege_character = {
        send_interface_toast = {
            type = event_royal_court_good_with_text
            title = court_tutor_improve_others_title
            desc = court_tutor_improve_others_notification_desc
            left_icon = root
            right_icon = scope:target_character

            scope:target_character = { add_$SKILL$_skill = 1 }
        }
    }
}

court_tutor_improve_others_trait_effect = {
    scope:liege_character = {
        send_interface_toast = {
            type = event_royal_court_good_with_text
            title = court_tutor_improve_others_title
            desc = court_tutor_improve_others_notification_desc
            left_icon = root
            right_icon = scope:target_character

            scope:target_character = { add_trait = $TRAIT$ }
        }
    }
}

court_tutor_improve_others_trait_xp_effect = {
    scope:liege_character = {
        send_interface_toast = {
            type = event_royal_court_good_with_text
            title = court_tutor_improve_others_title
            desc = court_tutor_improve_others_notification_desc
            left_icon = root
            right_icon = scope:target_character

            scope:target_character = {
                add_trait_xp = {
                    trait = $TRAIT$
                    value = 5
                }
            }
        }
    }
}

court_tutor_improve_others_trait_track_xp_effect = {
    scope:liege_character = {
        send_interface_toast = {
            type = event_royal_court_good_with_text
            title = court_tutor_improve_others_title
            desc = court_tutor_improve_others_notification_desc
            left_icon = root
            right_icon = scope:target_character

            scope:target_character = {
                add_trait_xp = {
                    trait = $TRAIT$
                    track = $TRACK$
                    value = 5
                }
            }
        }
    }
}

wet_nurse_instill_virtue_effect = {
    scope:notification_character = {
        send_interface_toast = {
            type = event_royal_court_good_with_text
            title = wet_nurse_instill_virtue
            desc = wet_nurse_instill_virtue_notification_desc
            left_icon = root
            right_icon = scope:child_character

            scope:child_character = {
                add_trait = $TRAIT$
            }
        }
    }
}

now it works as expected
 
Last edited:
  • 1
  • 1
Reactions: