This script is run from one city only, and monitors all of them. It will alert you outloud and in alliance chat and in the log window if any city becomes under attack, or gets dangerously low on food (under 5 hours of upkeep). Please read the //Comment lines in the script to know where to edit stuff. {{{ // Only put this in one city to run. Does not need to be in all. // It will check all your cities for incoming attacks and food shortage. // When incoming attacks are spotted, it will talk outloud thru your speakers, and in ally chat. // It will ignore incoming attacks from any of the specified alliances, so you can attack your alts or be treb hit by alts without spamming AC. // You can disable config warrules and audio attack/tts attack warning if you use this, since it covers all 3 areas. label autorun label checkincoming x = 0 label nextcity cs = cities[x] if cs == null sleep 10 if cs == null goto checkincoming cm = cs.cityManager enemy = cm.enemyArmies[0] if enemy gosub gethelp if cm.resource.food.amount / cm.resource.troopCostFood < 5 gosub getfood x = x + 1 goto nextcity // Below you can add the names of your alliance and alt alliances that may be attacking you with your permission. // Add more identical lines if you need more, or delete the lines if you need less. // Don't forget to keep the "quotes" around the names. label gethelp if enemy.alliance == "YOUR_ALLIANCE_HERE" return if enemy.alliance == "YOUR_ALT_ALLIANCE_HERE" return if enemy.alliance == "YOUR_ALT_ALLIANCE_HERE" return if enemy.alliance == "YOUR_ALT_ALLIANCE_HERE" return message = "City " + cm.name + " @ " + cm.coords + " is under attack from " + enemy.king + " in alliance " + enemy.alliance + ". Save me!!!" echo message execute "alliancechat " + message say message sleep 300 return label getfood message = "City " + cm.name + " @ " + cm.coords + " is at " + floor(cm.resource.food.amount / cm.resource.troopCostFood) + " hours of food. Feed me Seymour!!!" echo message execute "alliancechat " + message say message sleep 300 return }}} ---- ScriptExamples