Cain Posted December 14, 2006 Posted December 14, 2006 (edited) It solves many many problems monitor_event FactionTurnStart FactionType mongols and I_LocalFaction mongols and I_NumberOfSettlements mongols < 1 spawn_army faction mongols character Jebe, named character, age 30, x 261, y 140, family traits GoodCommander 2 , Bloodthirsty 2 , BattleDread 4 , StrategyDread 2 , PublicFaith 1 , Loyal 2 , ContentGeneral 3 unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0 end terminate_monitor end_monitor mind blowing monitor_conditions I_NumberOfSettlements mongols < 1 and I_NumberOfHeirs mongols < 1 spawn_army faction mongols character Jebe, named character, age 30, x 261, y 140, family traits GoodCommander 2 , Bloodthirsty 2 , BattleDread 4 , StrategyDread 2 , PublicFaith 1 , Loyal 2 , ContentGeneral 3 unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0 end terminate_monitor end_monitor Edited December 18, 2006 by Cain - The Trivium Organization - Community Manager -- Petroglyph Fan Forums - CoAdmin & Human Resources Manager -
Xerces Posted December 14, 2006 Posted December 14, 2006 Testing. Maybe posting will allow me to download!
Cain Posted December 14, 2006 Author Posted December 14, 2006 (edited) monitor_event FactionTurnStart FactionType hungary and not I_LocalFaction hungary console_command add_money hungary, 5000 terminate_monitor end_monitor Gives money only once at the start of the campaign if the AI is playing this faction. monitor_event FactionTurnEnd FactionType hungary and not I_LocalFaction hungary and Treasury < -1000 console_command add_money hungary, 10000 end_monitor Gives money to the AI if at the end of the turn his finances are minus 1000. Basically each time when you exploited them to accept your money requests or you distrubed their economy beyond repair. Anyway the Ai does not know that he can exploit this feature monitor_event SiegeEquipmentCompleted SettlementName Budapest if not I_FactionBesieging hungary console_command create_unit Budapest "Mercenary Spearmen" 2 end_if end_monitor Simple cities get 1 units spawned when you prepare to siege based on how many siege equipement you build on the spot. Capital cities get 2 spear units each time. this script could get some improvement monitor_conditions I_SettlementUnderSiege Budapest if I_BattlePlayerArmyIsAttacker console_command create_unit Budapest "Pavise Spearmen" 2 console_command create_unit Budapest "Hussars" 2 console_command create_unit Budapest "Pavise Crossbow Militia" 2 console_command create_unit Budapest "Royal Banderium" 1 end_if terminate_monitor end_monitor Capital cities get also a cool army when the player is attacking it - happens only once. monitor_event SiegeEquipmentCompleted SettlementName Bran if not I_FactionBesieging hungary console_command create_unit Bran "Mercenary Spearmen" 1 end_if end_monitor ;;;;;;;;;;;;;;;;;;;;;;;; ; -- Papal_states ;;;;;;;;;;;;;;;;;;;;;;;; monitor_event FactionTurnEnd FactionType papal_states and not I_LocalFaction papal_states and Treasury < -1000 console_command add_money papal_states, 10000 end_monitor monitor_event SiegeEquipmentCompleted SettlementName Rome if not I_FactionBesieging papal_states console_command create_unit Rome "Papal Guard" 2 end_if end_monitor monitor_conditions I_SettlementUnderSiege Rome if I_BattlePlayerArmyIsAttacker console_command create_unit Rome "Papal Guard" 4 console_command create_unit Rome "Swiss Guard" 2 console_command create_unit Rome "Pavise Crossbow Militia" 2 console_command create_unit Rome "Knights Templar" 1 end_if terminate_monitor end_monitor ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; -- Aztecs, Mongols, Timurids, Jerusalem ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; monitor_event SiegeEquipmentCompleted SettlementName Jerusalem and not I_FactionBesieged turks and not I_FactionBesieged egypt and not I_FactionBesieged mongols and not I_FactionBesieged timurids and not I_FactionBesieged moors and not I_FactionBesieged slave console_command create_unit Jerusalem "Crusader Sergeants" 1 console_command create_unit Jerusalem "Dismounted Crusader Knights" 1 end_monitor monitor_event SiegeEquipmentCompleted SettlementName Jerusalem and not I_FactionBesieged england and not I_FactionBesieged france and not I_FactionBesieged hre and not I_FactionBesieged spain and not I_FactionBesieged venice and not I_FactionBesieged sicily and not I_FactionBesieged milan and not I_FactionBesieged scotland and not I_FactionBesieged byzantium and not I_FactionBesieged russia and not I_FactionBesieged denmark and not I_FactionBesieged portugal and not I_FactionBesieged poland and not I_FactionBesieged hungary and not I_FactionBesieged papal_states and not I_FactionBesieged aztecs and not I_FactionBesieged slave console_command create_unit Jerusalem "Dismounted Arab Cavalry" 1 console_command create_unit Jerusalem "Saracen Militia" 1 end_monitor monitor_conditions I_SettlementUnderSiege Jerusalem and I_BattlePlayerArmyIsAttacker if I_FactionBesieged egypt console_command create_unit Jerusalem "Dismounted Arab Cavalry" 4 console_command create_unit Jerusalem "Tabardariyya" 2 console_command create_unit Jerusalem "Nubian Archers" 4 console_command create_unit Jerusalem "Royal Mamluks" 1 end_if terminate_monitor end_monitor monitor_conditions I_SettlementUnderSiege Jerusalem and I_BattlePlayerArmyIsAttacker if I_FactionBesieged turks console_command create_unit Jerusalem "Otoman Infantry" 4 console_command create_unit Jerusalem "Janissary Heavy Inf" 2 console_command create_unit Jerusalem "Janissary Archers" 4 console_command create_unit Jerusalem "Sipahi Lancers" 1 end_if terminate_monitor end_monitor monitor_conditions I_SettlementUnderSiege Jerusalem and I_BattlePlayerArmyIsAttacker and not I_FactionBesieged turks and not I_FactionBesieged egypt and not I_FactionBesieged mongols and not I_FactionBesieged timurids and not I_FactionBesieged moors and not I_FactionBesieged slave and not I_FactionBesieged aztecs console_command create_unit Jerusalem "Crusader Sergeants" 3 console_command create_unit Jerusalem "Dismounted Crusader Knights" 2 console_command create_unit Jerusalem "Mercenary Crossbowmen" 2 console_command create_unit Jerusalem "Knights Templar" 1 terminate_monitor end_monitor monitor_event FactionTurnEnd FactionType aztecs and not I_LocalFaction aztecs and Treasury < -1000 console_command add_money aztecs, 10000 end_monitor monitor_event FactionTurnEnd FactionType mongols and not I_LocalFaction mongols and Treasury < -1000 console_command add_money mongols, 10000 end_monitor monitor_event FactionTurnEnd FactionType timurids and not I_LocalFaction timurids and Treasury < -1000 console_command add_money timurids, 10000 end_monitor monitor_event ObjSeen TargetFactionType mongols and not FactionType slave set_faction_undiscovered mongols false terminate_monitor end_monitor monitor_event ObjSeen TargetFactionType timurids and not FactionType slave set_faction_undiscovered timurids false terminate_monitor end_monitor Edited December 17, 2006 by Cain - The Trivium Organization - Community Manager -- Petroglyph Fan Forums - CoAdmin & Human Resources Manager -
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now