;============== Teutonic Order Emergent =================
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber = 125
add_events
event emergent_faction teutonic_order
date 0
end_add_events
set_event_counter attack_Palanga 0
spawn_army
faction teutonic_order
character Herrmann von_Salza, named character, age 40, x 231, y 243, label teuton4leader, family
traits Supplies 1 , Turnsaway 3 , FactionleaderTO 1, MilitaryInclination 1 , Military_Edu 3 , NaturalMilitarySkill 2 , GoodCommander 3 , Bloodthirsty 2 , BattleDread 2 , StrategyDread 2 , PublicFaith 3 , ContentGeneral 3 , Prim 2 , ReligionStarter 1
unit TO Bodyguard exp 5 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit Sword Brethren exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit Burgher Pikemen exp 4 armour 0 weapon_lvl 0
unit Burgher Pikemen exp 3 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 4 armour 0 weapon_lvl 0
unit Christ Knights exp 3 armour 0 weapon_lvl 0
unit Christ Knights exp 1 armour 0 weapon_lvl 0
unit Knechten exp 2 armour 0 weapon_lvl 0
unit Knechten exp 1 armour 0 weapon_lvl 0
unit Ritterbruder exp 3 armour 0 weapon_lvl 0
unit Ritterbruder exp 2 armour 0 weapon_lvl 0
end
console_command add_money teutonic_order, 10000
spawn_character teutonic_order random_name, priest, age 27, x 222, y 238
spawn_character teutonic_order random_name, priest, age 35, x 224, y 236
historic_event teutonic_order_invasion event/teutonic_faction_intro.bik
console_command diplomatic_stance teutonic_order lithuania war
console_command diplomatic_stance teutonic_order russia war
console_command diplomatic_stance teutonic_order poland war
console_command diplomatic_stance teutonic_order hungary war
console_command diplomatic_stance teutonic_order kievan_rus war
if I_SettlementUnderSiege Palanga
terminate_monitor
end_if
if not I_CharacterTypeNearTile teutonic_order, named_character, 0, 231, 243 ;if character not standing where it should, avoid ctd
terminate_monitor
end_if
siege_settlement teuton4leader, Palanga, maintain
set_event_counter attack_Palanga 1
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber = 126
set_event_counter attack_Riga 0
spawn_army
faction teutonic_order
character Conrad von_Thuringen, named character, age 30, x 250, y 254, label teuton4heir, family
traits Supplies 1 , Turnsaway 3 , FactionheirTO 1, MilitaryInclination 1 , Military_Edu 3 , NaturalMilitarySkill 1 , GoodCommander 2 , LoyaltyStarter 1, Bloodthirsty 1 , StrategyDread 2 , PublicFaith 1 , ContentGeneral 3 , ReligionStarter 1
unit TO Bodyguard exp 3 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Order Militia exp 1 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit Sword Brethren exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 4 armour 0 weapon_lvl 0
unit Christ Knights exp 2 armour 0 weapon_lvl 0
unit Christ Knights exp 1 armour 0 weapon_lvl 0
unit Christ Knights exp 3 armour 0 weapon_lvl 0
unit Christ Knights exp 1 armour 0 weapon_lvl 0
unit Ritterbruder exp 3 armour 0 weapon_lvl 0
unit Ritterbruder exp 2 armour 0 weapon_lvl 0
end
console_command add_money teutonic_order, 5000
if I_SettlementUnderSiege Riga
terminate_monitor
end_if
if not I_CharacterTypeNearTile teutonic_order, named_character, 0, 250, 254 ;if character not standing where it should, avoid ctd
terminate_monitor
end_if
siege_settlement teuton4heir, Riga, maintain
set_event_counter attack_Riga 1
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType teutonic_order
and I_IsFactionAIControlled lithuania
and I_TurnNumber < 225
console_command diplomatic_stance teutonic_order lithuania war
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType teutonic_order
and I_TurnNumber = 217
spawn_army
faction teutonic_order
character random_name, named character, age 40, x 231, y 248, family, direction E
traits Supplies 1 , Turnsaway 3 , MilitaryInclination 1 , Military_Edu 2 , NaturalMilitarySkill 1 , GoodCommander 2 , BattleDread 2 , StrategyDread 2 , PublicFaith 2 , Drink 2 , ReligionStarter 1
unit TO Bodyguard exp 5 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Order Militia exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit Sword Brethren exp 2 armour 0 weapon_lvl 0
unit Sword Brethren exp 3 armour 0 weapon_lvl 0
unit Burgher Pikemen exp 4 armour 0 weapon_lvl 0
unit Burgher Pikemen exp 3 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit NE Catapult exp 1 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 3 armour 0 weapon_lvl 0
unit Prussian Archers exp 4 armour 0 weapon_lvl 0
unit Christ Knights exp 3 armour 0 weapon_lvl 0
unit Christ Knights exp 1 armour 0 weapon_lvl 0
unit Knechten exp 2 armour 0 weapon_lvl 0
unit Knechten exp 1 armour 0 weapon_lvl 0
unit Ritterbruder exp 3 armour 0 weapon_lvl 0
unit Ritterbruder exp 2 armour 0 weapon_lvl 0
end
console_command add_money teutonic_order, 10000
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType teutonic_order
and I_TurnNumber = 126
if I_EventCounter attack_Palanga = 1
and I_CharacterExists teuton4leader
and I_CharacterTypeNearTile teutonic_order, named_character, 0, 231, 243 ;if character not standing where it should, avoid ctd
and not I_SettlementOwner Palanga = teutonic_order
siege_settlement teuton4leader, Palanga, attack
end_if
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType teutonic_order
and I_TurnNumber = 127
if I_EventCounter attack_Riga = 1
and I_CharacterExists teuton4heir
and I_CharacterTypeNearTile teutonic_order, named_character, 0, 250, 254 ;if character not standing where it should, avoid ctd
and not I_SettlementOwner Riga = teutonic_order
siege_settlement teuton4heir, Riga, attack
end_if
terminate_monitor
end_monitor