Code:
log --- Zagreb AFTER CAPTURE ARMY SPAWN ----------------------------------------------------
if I_EventCounter faction_size_small == 0 ; the conqueror is not a small faction
and RandomPercent < 66 ; some randomness is always good
and I_EventCounter DifficultyLevel > 2 ; only for H/VH difficulties
and I_EventCounter Zagreb_turns_in_our_realm > 47 ; to avoid situation of spawning many armies in a loop situation (conquer-retake-conquer...)
and I_EventCounter GOLDEN_BULL_HUNGARIAN < 1
spawn_army
faction slave, sub_faction hungary
character Vajk, named character, age 32, x 197, y 176
traits CounterOfBattles 4, NaturalMilitarySkill 2 , GoodCommander 1 , Hardened 1 , StrategyDread 1 , Feck 4 , BattleScarred 3 , Xenophobia 3
unit NE Bodyguard exp 1 armour 0 weapon_lvl 0
unit Magyar Cavalry exp 0 armour 0 weapon_lvl 0
unit Slav Mercenaries exp 7 armour 0 weapon_lvl 0
unit Slav Mercenaries exp 0 armour 0 weapon_lvl 0
unit Transilvanian Peasants exp 0 armour 0 weapon_lvl 0
unit Vlach Axemen exp 7 armour 0 weapon_lvl 0
unit Vlach Axemen exp 0 armour 0 weapon_lvl 0
unit Vlach Archers exp 7 armour 0 weapon_lvl 0
unit Vlach Archers exp 0 armour 0 weapon_lvl 0
end
end_if
if I_NumberOfSettlements hungary > 0 ; faction exists
and I_EventCounter faction_size_small == 0 ; the conqueror is not a small faction
and RandomPercent < 66 ; some randomness is always good
and I_EventCounter DifficultyLevel == 4 ; only for VH difficulty
and I_EventCounter Zagreb_turns_in_our_realm > 47 ; to avoid situation of spawning many armies in a loop situation (conquer-retake-conquer...)
and I_EventCounter faction_turn_hungary == 0 ; core Hungarian region
and I_EventCounter GOLDEN_BULL_HUNGARIAN == 1
if I_EventCounter is_the_player == 1
historic_event SETTLEMENT_CAPTURE_REBELLION
end_if
if I_CompareCounter pl_ec_id == 21
historic_event SETTLEMENT_CAPTURE_REBELLION_OUR_PEOPLE
end_if
spawn_army
faction hungary
character random_name, named character, age 32, x 197, y 176
traits CounterOfBattles 4, NaturalMilitarySkill 2 , GoodCommander 1 , Hardened 1 , StrategyDread 1 , Feck 4 , BattleScarred 3 , Xenophobia 3
unit NE Bodyguard exp 1 armour 0 weapon_lvl 0
unit Magyar Cavalry exp 0 armour 0 weapon_lvl 0
unit Slav Mercenaries exp 7 armour 0 weapon_lvl 0
unit Slav Mercenaries exp 0 armour 0 weapon_lvl 0
unit Transilvanian Peasants exp 0 armour 0 weapon_lvl 0
unit Vlach Axemen exp 7 armour 0 weapon_lvl 0
unit Vlach Axemen exp 0 armour 0 weapon_lvl 0
unit Vlach Archers exp 7 armour 0 weapon_lvl 0
unit Vlach Archers exp 0 armour 0 weapon_lvl 0
unit Hunters exp 0 armour 0 weapon_lvl 0
end
end_if