Can't make assassination mission working.
Code:
mission assassinate_general
{
COUNCIL_MISSION
duration 10
exclude_duration 25
score_modifier 1.2
;difficulty_threshold 0.4 ; assassination mission marked as too difficult if chance of success <= 40%
turn_start 0
paybacks
{
random 0.33 payback_id council_mod_income
random 0.5 payback_id council_mod_unit
payback_id council_mod_unit_best
}
enemy_modifier 30.0
own_region_modifier 50.0
per_unit_modifier 4.0
character_type named_character
attribute_type Command
attribute_min_threshold 5
}
mission assassinate_general assassinate_king
{
COUNCIL_MISSION
duration 12
exclude_duration 25
score_modifier 1.2
;difficulty_threshold 0.4 ; assassination mission marked as too difficult if chance of success <= 40%
turn_start 1
factions { england, scotland, venice, spain, moors, france, milan, }
paybacks
{
random 0.11 payback_id council_mod_income
random 0.33 payback_id council_mod_unit
payback_id council_major_unit
}
neutral_modifier 100.0
enemy_modifier 100.0
killed_by_any_means
expire_on_hide_disabled
character_type leader
}
Declaring war on faction Bolton (venice) at turn 0, their king is in my region.
Code:
monitor_event FactionTurnStart not IsFactionAIControlled
and I_TurnNumber = 0
console_command create_mission assassinate_king scotland bolton1
end_monitor
monitor_event FactionTurnStart not IsFactionAIControlled
and I_TurnNumber = 1
console_command create_mission assassinate_general scotland bolton1
end_monitor
Got couldn't create mission message in log.
Upd. Added this to first mission entry - same result.
killed_by_any_means
expire_on_hide_disabled