I am trying to make a simple script to have a dead faction re-emerge. However, some scripting conditions are not working for me;
and RiotRisk > 30 ( I am not sure what this even means or what the riotrisk refers to.)
and SettlementLoyaltyLevel < loyalty_happy ( I managed to get this one working, but the army spawns regardless of what the settlement's loyalty is.)
I have tried them in different ways and on their own, but I can't get them to work at all. Can anyone explain how these work? Or tell me another way to have the script check the settlements happiness, or unrest, or if it is rioting?
Here is the whole script, everything works as it should without those two conditions. But when I use any variation of either nothing happens.
Code:monitor_event FactionTurnStart FactionType slave and IsFactionAIControlled and not I_WorldwideAncillaryExists steward_gondor and not I_SettlementOwner Anorien = sicily ; and SettlementLoyaltyLevel Anorien < loyalty_happy ; and RiotRisk Anorien > 30 add_money sicily 8000 spawn_army faction sicily character Pilimor, named character, age 44, x 245, y 126 traits LoyaltyStarter 1 , GoodCommander 2 , ReligionStarter 1 unit Gondor Bodyguard exp 3 armour 1 weapon_lvl 0 unit Kingsguard exp 3 armour 0 weapon_lvl 0 unit Gondor Spearmen exp 2 armour 0 weapon_lvl 0 unit Gondor Spearmen exp 1 armour 0 weapon_lvl 0 unit Gondor Infantry exp 3 armour 0 weapon_lvl 0 unit Gondor Infantry exp 2 armour 0 weapon_lvl 0 unit Gondor Infantry exp 1 armour 0 weapon_lvl 0 unit Gondor Infantry exp 2 armour 0 weapon_lvl 0 unit Dismounted Kofm exp 1 armour 0 weapon_lvl 0 unit Dismounted Kofm exp 1 armour 0 weapon_lvl 0 unit Dismounted Kofm exp 0 armour 0 weapon_lvl 0 unit Dismounted Kofm exp 2 armour 0 weapon_lvl 0 unit Axemen of Lossarnach exp 3 armour 0 weapon_lvl 0 unit Gondor Archers exp 2 armour 0 weapon_lvl 0 unit Gondor Archers exp 2 armour 0 weapon_lvl 0 unit Ithilien Rangers exp 1 armour 0 weapon_lvl 0 unit Ithilien Rangers exp 4 armour 0 weapon_lvl 0 unit Ithilien Rangers exp 3 armour 0 weapon_lvl 0 end terminate_monitor end_monitor
Also, is there anyway to get the script to check if a faction still exists or not like the 'ancillaryexists' condition?





Reply With Quote





