Geskripteter Effekt

hacw_setup_contender_effect

hacw_setup_contender_effectin_game/events/disaster/hook_and_cod_wars.txt:1041
Erforderthacw_allegience_to_hookVariableifhacw_contender_prev_owner_variable_1Variableifhacw_contender_prev_owner_variable_2Variableifhacw_contender_variable_1Variableifhacw_contender_variable_2Variableifhacw_sided_with_hookVariableif

Definitionin_game/events/disaster/hook_and_cod_wars.txt:1041

1042if = {
1043limit = {
1043$character$ = {
1043owner = root
}
}
1044$character$ = {
1045custom_tooltip = {
1046text = hacw_allegience_to_$faction$_tt
1047set_variable = {
1047name = hacw_allegience_to_$faction$
1047value = yes
}
}
}
1050set_variable = {
1051name = hacw_$faction$_contender
1052value = $character$
}
1054hidden_effect = {
1055if = {
1056limit = {
1056has_variable = hacw_sided_with_$faction$
}
1057$character$ = {
1057add_character_modifier = {
1057years = -1
1057mode = add_and_extend
}
}
}
1059else = {
1060$character$ = {
1060add_character_modifier = {
1060years = -1
1060mode = add_and_extend
}
}
1061if = {
1061limit = {
1061has_variable = hacw_sided_with_hook
}
1061change_character_allegiance = scope:hacw_cod_faction
}
1062else = {
1062change_character_allegiance = scope:hacw_hook_faction
}
}
1064if = {
1065limit = {
}
1069if = {
1070limit = {
1070$character$ = {
1070has_variable = hacw_allegience_to_hook
}
}
1071add_to_global_variable_list = {
1071name = hacw_hook_list
}
}
1073else = {
1074add_to_global_variable_list = {
1074name = hacw_cod_list
}
}
1076set_variable = {
1077name = hacw_$faction$_contender_prev_owner
1078value = root.var:hacw_contender_prev_owner_variable_1
}
}
1081if = {
1082limit = {
}
1086if = {
1087limit = {
1087$character$ = {
1087has_variable = hacw_allegience_to_hook
}
}
1088add_to_global_variable_list = {
1088name = hacw_hook_list
}
}
1090else = {
1091add_to_global_variable_list = {
1091name = hacw_cod_list
}
}
1093set_variable = {
1094name = hacw_$faction$_contender_prev_owner
1095value = root.var:hacw_contender_prev_owner_variable_2
}
}
1098if = {
1099limit = {
1100has_variable = hacw_$faction$_contender_prev_owner
1101NOT = {
1101var:hacw_$faction$_contender_prev_owner = root
}
}
1103var:hacw_$faction$_contender_prev_owner = {
1104set_variable = {
1104name = hacw_preferred_faction_$faction$
1104value = yes
1104days = 3650
}
1105trigger_event_silently = hook_and_cod_wars.1101
}
}
}
}
1110else = {
1111$character$ = {
1112owner = {
1113set_variable = {
1113name = hacw_preferred_faction_$faction$
1113value = yes
1113days = 3650
}
1114trigger_event_silently = hook_and_cod_wars.1101
}
}
1117add_to_global_variable_list = {
1117name = hacw_$faction$_list
1117target = $character$.owner
}
}
© 2026 Soft Santa Cruz, S.L.U.. Alle Rechte vorbehalten. Inoffizielles Fanprojekt, nicht mit Paradox Interactive verbunden. Spielinhalte © Paradox Interactive. Über · Datenschutz · Impressum