﻿# File contains effects for memory creation that are used more than once.

# Generic memory that is not matched by a more specific memory type.
# Ideally we should never use this one and have a specific record for each event type
#
# Scope: target character
# Param: $CHARACTER$ - character that enchants current character
create_memory_fascinare_default = {
    #debug_log = "Triggered: create_memory_fascinare_default"
    create_character_memory = {
        type = regula_memory_fascinare_default

        participants = {
            enchanter = $CHARACTER$
        }
    }
}


# Player or AI NPC enchants a character using the Fascinare scheme.
#
# Scope: target character
# Param: $CHARACTER$ - character that uses Fascinare scheme
create_memory_fascinare_scheme = {
    #debug_log = "Triggered: create_memory_fascinare_scheme"

    if = {
        # Is that a Magister?
        limit = {
            $CHARACTER$ = {
                has_trait = magister_trait_group
            }
        }

        create_character_memory = {
            type = regula_memory_fascinare_scheme_main

            participants = {
                enchanter = $CHARACTER$
            }
        }
    }
    else = {
        create_character_memory = {
            type = regula_memory_fascinare_scheme_ai

            participants = {
                enchanter = $CHARACTER$
                magister = global_var:magister_character
            }
        }
    }
}

# Player enchants a prisoner.
#
# Scope: target character
# Param: $CHARACTER$ - character that enchants current character
create_memory_enchanted_in_prison = {
    #debug_log = "Triggered: create_memory_enchanted_in_prison"
    create_character_memory = {
        type = regula_memory_enchanted_in_prison

        participants = {
            enchanter = $CHARACTER$
        }
    }
}

create_memory_convert_ward_direct = {
    create_character_memory = {
        type = regula_memory_convert_ward_direct

        participants = {
            enchanter = $CHARACTER$
        }
    }
}

create_memory_convert_ward_assistant = {
    create_character_memory = {
        type = regula_memory_convert_ward_assistant

        participants = {
            enchanter = $CHARACTER$
            magister = global_var:magister_character
        }
    }
}


create_memory_infected_by_virus_main = {
    #debug_log = "Triggered: create_memory_infected_by_virus_main"
    create_character_memory = {
        type = regula_memory_infected_by_virus_main

        participants = {
            last_patient = $LAST_PATIENT$
            patient_zero = $PATIENT_ZERO$
            magister = global_var:magister_character
        }
    }
}

create_memory_infected_by_virus_from_relative = {
    #debug_log = "Triggered: create_memory_infected_by_virus_from_relative"
    create_character_memory = {
        type = regula_memory_infected_by_virus_from_relative

        participants = {
            last_patient = $LAST_PATIENT$
            patient_zero = $PATIENT_ZERO$
            magister = global_var:magister_character
        }
    }
}
