Scripted Effect
hacw_setup_contender_effect
If
$character$Owner: RootThen
$character$Set variable- Name:
hacw_allegience_to_$faction$ - Value: yes
- Name:
- Set variable
- Name:
hacw_$faction$_contender - Value: character
- Name:
- Not shown in the game's tooltip
- IfHas Variable:
hacw_sided_with_$faction$Otherwise$character$Gains Opposing Claimant permanently
- If
- Has Variable: hacw_contender_prev_owner_variable_1
- var:hacw_contender_variable_1: character
Then- If
$character$Has Variable: hacw_allegience_to_hookOtherwiseAdd to global variable list- Name:
hacw_cod_list - Target: var:hacw_contender_prev_owner_variable_1
- Name:
- Set variable
- Name:
hacw_$faction$_contender_prev_owner - Value: Rootvar:hacw_contender_prev_owner_variable_1
- Name:
- If
- Has Variable: hacw_contender_prev_owner_variable_2
- var:hacw_contender_variable_2: character
Then- If
$character$Has Variable: hacw_allegience_to_hookOtherwiseAdd to global variable list- Name:
hacw_cod_list - Target: var:hacw_contender_prev_owner_variable_2
- Name:
- Set variable
- Name:
hacw_$faction$_contender_prev_owner - Value: Rootvar:hacw_contender_prev_owner_variable_2
- Name:
- If
- Has Variable:
hacw_$faction$_contender_prev_owner var:hacw_$faction$_contender_prev_owner: NotRoot
Thenvar:hacw_$faction$_contender_prev_owner- Set variable
- Name:
hacw_preferred_faction_$faction$ - Value: yes
- Days: 3,650
- Name:
- Trigger event silently:
The Hook and Cod Wars of Holland
- Has Variable:
Otherwise
$character$Owner- Set variable
- Name:
hacw_preferred_faction_$faction$ - Value: yes
- Days: 3,650
- Name:
- Trigger event silently:
The Hook and Cod Wars of Holland
- Set variable
- Add to global variable list
- Name:
hacw_$faction$_list - Target:
$character$Owner
- Name:
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$character$$faction$
Triggers 1
The Hook and Cod Wars of HollandElse, If
Grants 2
Scripting 10
Requires 6
References 2
Used by 2
- hacw_side_with_faction_effect_codcharacter = $pretender_1$ · faction = cod (+1)Hacw setup contender effect 1, Hacw setup contender effect 2
- hacw_side_with_faction_effect_hookcharacter = $pretender_1$ · faction = hook (+1)Hacw setup contender effect 1, Hacw setup contender effect 2



