Can someone help?
I have just realised that the army I have spawned will only waits 1 turn, attacks with no siege equipment and loses when clicking to start a siege battle after deployment. This army is AI specific as you will see in the script:
The sieging army wins when auto-resolving. I guess it is something to do with the counter or FactionTurnStart but i copied this part straight from this guide:Code:declare_counter delayattack001 monitor_event FactionTurnStart I_TurnNumber = 1 FactionType scotland and not I_LocalFaction scotland and I_SettlementOwner Edinburgh = denmark and not I_CharacterExists Invade_Edinburgh spawn_army faction scotland character random_name, named character, age 38, x 101, y 173, label Invade_Edinburgh, direction N traits LoyaltyStarter 1 , GoodAdministrator 2 , StrategyChivalry 1 , BattleChivalry 1 , ReligionStarter 1 , Hatesdenmark 2 , GoodCommander 2 unit NE Bodyguard exp 0 armour 0 weapon_lvl 0 unit Highland Nobles exp 1 armour 1 weapon_lvl 0 unit Highlanders exp 1 armour 1 weapon_lvl 0 unit Highlanders exp 1 armour 1 weapon_lvl 0 unit Border Horse exp 1 armour 1 weapon_lvl 0 unit Border Horse exp 1 armour 1 weapon_lvl 0 unit Highland Archers exp 1 armour 1 weapon_lvl 0 unit Highland Archers exp 1 armour 1 weapon_lvl 0 unit Scots Pike Militia exp 1 armour 1 weapon_lvl 0 unit Scots Pike Militia exp 1 armour 1 weapon_lvl 0 sieging siege_settlement Invade_Edinburgh, Edinburgh, maintain set_counter delayattack001 1 end_monitor monitor_event FactionTurnStart FactionType scotland if not I_SettlementOwner Edinburgh = scotland and I_CharacterExists Invade_Edinburgh if I_SettlementUnderSiege Edinburgh and I_CompareCounter delayattack001 = 1 siege_settlement Invade_Edinburgh, Edinburgh, maintain replenish_units Invade_Edinburgh inc_counter delayattack001 1 end_if if not I_SettlementUnderSiege Edinburgh and I_CompareCounter delayattack001 = 1 reposition_character Invade_Edinburgh, 101, 173 siege_settlement Invade_Edinburgh, Edinburgh, maintain replenish_units Invade_Edinburgh inc_counter delayattack001 1 end_if if I_SettlementUnderSiege Edinburgh and I_CompareCounter delayattack001 > 1 siege_settlement Invade_Edinburgh, Edinburgh, attack replenish_units Invade_Edinburgh inc_counter delayattack001 1 end_if if not I_SettlementUnderSiege Edinburgh and I_CompareCounter delayattack001 > 1 reposition_character Invade_Edinburgh, 101, 173 siege_settlement Invade_Edinburgh, Edinburgh, attack replenish_units Invade_Edinburgh inc_counter delayattack001 1 end_if end_if if I_SettlementOwner Edinburgh = scotland and I_CompareCounter delayattack001 > 0 set_counter delayattack001 0 end_if end_monitor terminate_monitor
http://www.twcenter.net/forums/showt...ake+settlement




Reply With Quote




