This guide will explain the various ways to protect or defend yourself against enemy (rally) attacks in Guns of Glory.
The game favours attackers. Let's as an example look at a situation of two alliances each with few big players with buildings level 20, and the rest small players with buildings level 15. When one of the big players leads a rally against a smaller player, the big player can have a rally size of 500,000 with a Hall of War lvl 20, which can be filled by fellow alliance members, big and small. Looking at a small player it is a lot more difficult to get an army of 500,000 troops to defend yourself at level 15. Training so many troops yourself will become more and more difficult as you have more troops due to the upkeep. An Embassy level 15 only allows your alliance members to reinforce you with 90,000 troops. The Trap Capacity for a Trap Factory level 15 is 22,500. This means even if you have been able to build an army of 90,000 your defenders are outnumbered significantly.
The amount of troops are an important factor, but the level 20 rally leader also would normally be able to have much better combat boosts from Airship Abilities, Lord Talent Points Projects, Research Projects, and equipment, so the attacking troops would also have much better stats. Realize that the combined effect of these can be quite huge.
If you are online when attacked, you still have the option to use some items to increase Attack and Defense, but if not, this is also favoring the Attacker.
The above means that unless you really have a huge army and you are fully reinforced, you do not stand a chance against incoming rally attacks. The difference is so huge that the attacker can wipe out most castles without taking significant losses.
You do have a benefit as defender, as long as you have hospital capacity your lost troops will not die but end up in your hospitals (or alliance hospital), while the attacking troops that are lost (except for the battle treatment percentage) will die.
The only way to really project yourself is to use a peace shield. Putting up a Peace Shield means nobody can attack you, so your resources and troops are save. However peace shields are not cheap (e.g. an 8 hour peace shield costs 600 gold or 60,000 alliance loyalty), and kill events last 3 days, not even considering attacks outside of kill events. It is going to be expensive to stay shielded whenever you are not online.
When an attack is incoming and you are online and you do not put up a shield, you can chose to defend against the attack. Depending on your Watchtower level you get information about the attack. This can help you in deciding whether defending against the attack is the best option. If you decide to defend you can consider the following: ask your alliance members to reinforce your embassy, you can make sure your equipment and lord talent points are set for combat, and you can use items to boost your attack and defense stats. Keep in mind that the attacker is online for sure and can call off the attack.
Consider your hospital capacity and alliance hospital capacity, make sure you have enough to store all your troops, you might need it.
When an attack is incoming you can also opt to empty your castle. This means send your troops outside and make sure the resources you have are below Storehouse levels. You can use your resources by for example starting a building upgrade, research project and troop trainings. You can also decide to send some to the alliance storehouse or aliance mates. You can send out your troops to gather resources, reinforce an alliance member, or garrison one of the alliance buildings. Even attacking a monster if you make sure it keeps them away from your castle long enough is ok. Your traps will not engage in battle when there are no troops in your castle. They will not inflict any kills, but also not get damaged.
The Strategy Center Alliance Building offers some strategies to defend the alliance, which can help against incoming attacks as well. Most useful is probably the Alliance Shielding Strategy that casts a 4 hour shield to all alliance members.
When you are not online you do not have the option to react on incoming attacks, you need to make a decision in advance. As stated before, staying shielded whenever you are offline is expensive and for most players not an option. Because of the inbalance between attack and defense leaving your troops in your castle can be costly. Sure, if you have enough hospital capacity none of your troops will die, but it still takes a lot of resources to heal your troops, and a lot of time.
However not leaving your troops in your castle has some disadvantages as well, it means people can just attack you and take your excess resources, making it difficult to build up resources for larger building upgrades and research projects.
It is a difficult choice to make, but basically you will probably decide to not keep your troops in your castle anymore if you are hit too often and have to heal all your troops. If that is the case you might opt to send your troops to an alliance member that is shielded (or a very strong alliance member if no one puts up a shield).
If you have sufficient troops and march size it might be a good option to send a full march to the alliance resource building as well. You can even temporarily change your airship abilities to lower (meaning remove any abilities that increase gathering speed) resource gathering speed and increase march capacity and troop load, so that your troops will take longer to come back from the alliance resource building.
Sending troops to Garrison an alliance building is not safe, especially the fortress can be a target and if others notice your troops in garrison in another building they can target it as well. Garrison seems to work like a rally, so if you use it it is important that the strongest player (best boosts) will Garrison first.
The best way to protect yourself is putting up a shield, but since that is quite expensive you might decide to reinforce a shielded alliance member, or send your troops out gathering to the alliance resource building, before you go offline for longer times.
If you have any questions or other tips to defend or protect yourself, please leave a comment.