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

M. Schenk

Private
7 Badges
Mar 6, 2022
23
10
  • Crusader Kings II: The Old Gods
  • Cities: Skylines
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines Industries
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
Want to make some changes in the way game handles Accolades succession with overall goal of stopping autonomous succession if successor wasn't picked (game just assign new Accolade without asking) but can't find the code responsible for assigning new Accolade after death of his predecessor.

In events/accolades_events I found two events, but it seems to me that they're just showing notification about succession done.

Code:
#Accolade succession with unchanged types
# by Jason Cantalini
accolade.0004 = {
    hidden = yes

    trigger = {
        has_dlc_feature = accolades
    }

    immediate = {
        send_interface_toast = {
            title = accolade.0004.new_acclaimed_knight.tt
            left_icon = scope:new_acclaimed_knight
            custom_tooltip = accolade.0004.new_acclaimed_knight_name.tt
            custom_tooltip = accolade.glory_loss.tt
        }
    }
}

#Accolade succession with new secondary type
# by Jason Cantalini
accolade.0005 = {
    hidden = yes

    trigger = {
        has_dlc_feature = accolades
    }

    immediate = {
        send_interface_toast = {
            title = accolade.0005.new_acclaimed_knight_new_type.tt
            left_icon = scope:new_acclaimed_knight
            custom_tooltip = accolade.0005.new_accolade_type.tt
            custom_tooltip = accolade.0005.new_acclaimed_knight_succeeds.tt
            custom_tooltip = accolade.glory_loss.tt
        }
    }
}

Events called from on_action/accolade_on_action

Code:
# Root = Accolade
# Event targets: glory ( value ), new_accolade_type ( bool ), new_acclaimed_knight
on_accolade_new_acclaimed_knight = {
    effect = {
        # for accolade keeping its types
        if = {
            limit = {
                scope:new_accolade_type = no
            }
            save_scope_as = succeeding_accolade
            accolade_owner = {
                trigger_event = accolade.0004
            }
        }
        # for accolade changing its types
        else = {
            save_scope_as = succeeding_accolade
            secondary_type = {
                save_scope_as = new_secondary
            }
            accolade_owner = {
                trigger_event = accolade.0005
            }
        }
    }
}

Don't know where to go from here, I'm lost. Any help?
 
Follow-up: I was able to find a script that manages accolade requirements and kill all personals. This way each Knight is eligible for all accolades, and your secondary won't reset willy-nilly. It's a horrible hack, but it seems to be working and doing its job.
 
Sorry for the year-late question, but which script is that? I'd love to be able to actually RP with accolades, like tying them symbolically to a title or something like that, and this is the only thread I've found that mentions a solution for "unlocking" accolades besides a depreciated workshop mod.
 
Sorry for the year-late question, but which script is that? I'd love to be able to actually RP with accolades, like tying them symbolically to a title or something like that, and this is the only thread I've found that mentions a solution for "unlocking" accolades besides a depreciated workshop mod.
Workshop's mod is outdated, yes. Requirements for specific accolades are in common/accolade_types folder. Files that have 'attributes' in name.
Also, rolled out updated version for mod with unlocked accolades:
 
  • 1Like
Reactions: