Code:
;-------------- WILLIAM WALLACE --------------; 1290
declare_counter wallace_spawned
monitor_event FactionTurnStart FactionType scotland
and I_TurnNumber = 130
set_counter wallace_spawned 1
terminate_monitor
end_monitor
;trigger Wallace when England attacks
monitor_event GeneralCaptureSettlement I_TurnNumber > 90
and FactionType england
and TargetFactionType scotland
set_counter wallace_spawned 1
terminate_monitor
end_monitor
;trigger Wallace when Scotland is weakened
monitor_event FactionTurnStart FactionType scotland
and I_TurnNumber > 70
and I_NumberOfSettlements scotland < 2
set_counter wallace_spawned 1
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType scotland
and IsFactionAIControlled
and I_CompareCounter wallace_spawned = 1
spawn_army
faction scotland
character William Wallace, named character, age 20, x 53, y 250, direction SE, battle_model Wallace_General, portrait wallace
traits ScotlandHero 1, GoodCommander 2, LoyaltyStarter 1, BattleChivalry 2, NaturalMilitarySkill 2, Loyal 2 , Just 2
unit Highland Nobles exp 4 armour 0 weapon_lvl 1
unit Highland Nobles exp 2 armour 0 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
end
historic_event scotland_wallace event/william_wallace.bik
terminate_monitor
end_monitor
from what i understand of the coding mr.wallace will spawn if scotland meets any of these conditions:
- The game pases turn 130 and scotland is still alive
- England attacks scotland and it is passed turn 90
- Scotland has less then two settelments left and it is passed turn 70