- Main article: Player-owned starbases
- 1 Overview
- 2 Defense
- 2.1 Shield Hardening
- 2.2 Sensor Dampening
- 2.3 Electronic Countermeasures
- 2.4 Strontium Clathrates
- 2.5 Tower Force Field Settings
- 2.6 Tower Defense Settings
- 3 Offense
- 3.1 General notes
- 3.2 Weapon batteries
- 3.3 Tackle batteries
- 3.4 Anchoring of Spares
- 3.5 Starbase Defense Management
- 4 Initial Attack
- 5 Final Takedown
- 6 Hi-Sec War-Dec Defensive Preparations
- 7 Reference Links
- overview that explains the basic concepts behind attacking or defending a POS
- general information about POS configuration belongs on a different page
- Configuration - we're only going to list very basic attributes for modules and only for the base version, so things like (m3, kg, powergrid used, CPU used, and hitpoints).
- faction versions of POS towers/modules are not covered here
- *briefly* describe a few of the different types of POS setups, bulleted list will be plenty, mention only the major styles such as deathstar, etc
- basic setup of a POS should be covered on a POS Setup page
- null-sec POS tower elements like cyno jammers, etc are not covered at the moment
The primary form of defense for a POS is its force field (or shield bubble). If you are inside the shield bubble, you cannot be targeted or damaged, nor can you target/damage anyone outside it. You can either enter the bubble based on standings or be given the starbase password to slip through the shield. Even if your POS access is based on standings, you must set a password on the tower. The bubble will exist until the tower is destroyed (shield and structure of the control tower) or taken offline.
There are two caveats to the invulnerability when you are inside the POS shield however. The first is that someone who is inside with you may decide to bump you out of the shield radius. The second is that the shield radius tends to warp and wobble, slowly moving inward and outward a few hundred meters. Therefore you should always stay at least 3-5 kilometers inside the bubble and not hang near the edges. Anyone else inside the bubble should be instructed to not move their ship around as it can bump pilots away from the tower. Use of the "keep at range" functionality of the selected item window may be useful for short AFKs to keep you within range of the tower or arrays.
All towers have shield, armor and structure like normal ships, but during the initial phase of combat only the shield comes into play. In addition, each tower has a set of basic shield resists that vary according to the race/faction of the tower. One of the resists will be 50%, one will be 25%, and the other two resists will be at zero. You should add shield hardeners to shore up your weaker resists.
As a general rule of thumb, "array" structures are mounted inside the POS bubble while "battery" structures are mounted outside the POS bubble. If the module targets enemy ships then it must be outside the POS bubble. This is enforced by the game when you attempt to anchor the structure at the POS location. Batteries should be evenly spaced around the POS bubble in order to avoid dead spots or weaknesses in coverage. In general, "battery" structures will need to be at least 5km away from the edge of the POS shield bubble. See the section on offense for more discussion on this.
The correct way to harden the shields of the POS depends on the tower size, the tower location, and expected opposition. But you should probably use one of the following recommendations. You will need the most modules (highest number) for the two resists that start at 0%, with one fewer hardener for the resist that starts at 25%, and one fewer for the 50% resist. So if your tower starts with 0% EM, 0% THE, 25% KIN and 50% EXP (i.e. Amarr towers), you will need (4) EM, (4) THE, (3) KIN and (2) EXP shield hardeners to reach 68-72% resists across the board.
- 1/1/0/0 results in 25%/25%/25%/50% resists
- 2/2/1/0 results in 44%/44%/44%/50% resists
- 3/3/2/1 results in 58%/58%/58%/63% resists
- 4/4/3/2 results in 68%/68%/68%/72% resists
Small towers in hi-sec should start with either no hardeners or a 1/1/0/0 hardener setup, lo-sec should use a minimum of a 2/2/1/0 setup. Medium towers should use a 2/2/1/0 normally, or a 3/3/2/1 setup in lo-sec or during wartime. Large towers should use a minimum of a 2/2/1/0 setup in hi-sec with an upgrade to 3/3/2/1 or 4/4/3/2 in situations where you are more likely to come under attack. In all cases, if you plan on leaving the tower anchored during attacks, you should have spare hardeners already anchored so that you can quickly online additional hardeners. This general means that you will have a setup with 5 or 9 hardeners always running with another 4 hardeners ready to be put online.
A tower with high resists becomes very difficult to reinforce since you force the attackers to spend 1.8x to 3.1x more time then if you don't plug the two 0% resist holes. Trying to stack the resist modules beyond 4/4/3/2 is pointless (due to stacking penalties) and you'd be better off using that PG/CPU for other defensive modules.
Sensor Dampening Batteries are extremely useful because can force the enemy to move closer to the POS. Up to the optimal range of 150km, they cut the target's scan resolution and targeting range in half, with decreasing effects for the next 150km of falloff range. This prevents attackers from sitting at long range and sniping at your POS batteries or tower. Due to their minimal fitting requirements, all towers should mount at least a pair of these. Since they are designed to draw attackers closer, you should spread these around the tower to get full coverage instead of clumping them all together.
Note: Dreads are immune to sensor dampening in siege mode and carriers are immune if in triage mode.
The purpose of electronic countermeasueres (or ECM) is to break a target's locks on other ships/targets and to prevent them from reacquiring those locks for up to 30 seconds. In POS warfare, ECM is extremely useful for frustrating enemy pilots who are trying to do damage to batteries and the POS shield, for breaking up remote-repair gangs so that they cannot repair each other, or for making logistics ships ineffective. Some POS setups place a heavy emphasis on ECM.
Relying on ECM alone to save your tower does not work. It only serves as a deterrent against attack and a way to slow down the attackers while your backup fleet comes to the rescue.
The four types of ECM batteries are Ion Field Projection Battery (MAGNET, Gallente), Phase Inversion Battery (LADAR, Minmatar), Spatial Destabilization Battery (GRAV, Caldari) and White Noise Generation Battery (RADAR, Amarr). They have an optimal range of 200km, a falloff range of 100km, with a jam strength of 45.00 for their primary type and 15.00 for their secondary types. In comparision, ships like the Blackbird, Kitsune, Falcon, and Scorpion have jam strengths in the 6.00 to 12.00 range. These modules must be mounted outside the POS bubble.
Faction ECM is recommended for large towers in hostile environments to ensure jamming on enemy ships, even on secondary types. At a minimum, a medium tower should have (2) of each type online and a large tower will probably want (4) of each type online. If a medium or large tower will be actively defended by players (POS gunners) taking control of the defenses, then you may wish to anchor spares of each type. Some POS setups mount as many as 72 ECM batteries anchored with some of them online at all times. Small towers can be fitted with (1) of each type online, but in most cases you should take a small POS down if you are under threat of a wardec or attack.
Note: Dreads are immune to ECM in siege mode and carriers are immune if in triage mode. Therefore you should not rely on ECM in low-security / null-security space where capital ships can be brought to the fight.
POS towers have two bays, a fuel bay and a 'stront' bay. The stront bay holds Strontium Clathrates which determine how long the tower will remain in reinforced mode if attackers manage to reduce the POS shields to 25%. The more stront, the longer that reinforced mode will last which will enforce a delay before enemies can fully destroy your POS tower. This delay gives you time to rally defenders or evacuate assets before the POS is completely destroyed. See reinforced mode for a full discussion of this.
Never online a tower without putting at least a few hours of Strontium Clathrates in the stront bay. Common recommendations are to put 8-16 hours worth in or 30-40 hours in. The goal is to shift the timer around so that it likely falls during your enemy's off-peak time. You should also have additional Strontium Clathrates available nearby that you can re-fill the bay after repairing the shields.
- Small: 100/hr, 4166 max units for 41.7 hours
- Medium: 200/hr, 8333 max units for 41.7 hours
- Large: 400/hr, 16666 max units for 41.7 hours
You can access the fuel/stront bays as long as you are within 2500m of the POS tower. Right-click on the tower and choose "Access Strontium Bay".
Tower Force Field Settings
The tower force field settings tab controls your POS bubble and shows information about the tower and shield (hit point percentage and shield resists). In the above figure, the tower is online, the shield resists are the default of 0%/0%/25%/50% and the POS shield is at 50% strength.
- Anchoring - Tower is being anchored and a timer will show how long remains.
- Online - Tower is anchored, online and there is enough fuel for the next hour.
- Offline - Tower has run out of fuel, but is still anchored.
- Unanchoring - Tower is being unanchored.
You must set a password on your POS shield in order for the POS bubble to function properly and keep people out of the bubble who aren't allowed in. There are two ways to set the POS bubble password. You can either right-click on the tower in space and choose "set password" or you can set the password in the tower management UI. Once set, you can use it as an "open" secret to allow non-corp/non-alliance pilots to shelter inside your POS bubble. This password only allows them to pass through the boundary, it does not protect them from offensive systems or grant them access to storage modules such as corporate hangars.
Corp/Alliance members should be granted access to the POS via the Restriction Masks.
Be aware that if a spy guesses or knows your password, they can enter the POS bubble and bump AFK pilots or empty ships outside the bubble. They can also board any empty ships within the bubble and simply warp off.
If the tower manager changes the POS password and you were not granted access via the restriction masks, you will be immediately kicked outside of the POS bubble. Never go AFK in lo-sec or null-sec space at a POS.
In order for a non-alliance/non-corp pilot to enter the POS bubble, they will need to right-click on their ship in space and choose "Enter Starbase Forcefield Password...". This setting is not sticky and gets cleared if you eject from the ship, logout, or at downtime. This means that their ship will be ejected from the POS bubble when the password gets cleared due to those conditions.
- what about passwords getting cleared if you disconnect?
There are two restriction masks that can be checked on the "Force Field" tab.
- Allow Corporation Members
- Allow Alliance Members
If either is checked, then people who fall into that category will be able to pass through the POS bubble without needing the password. If these are turned off while people are inside the shield, they will be kicked out of the POS bubble (true/false?).
- explain what the various checkboxes are for - need to find out if there are more restriction masks in an alliance or lo/null sec space
Tower Defense Settings
There are several checkboxes in the POS tower management UI that allow you to configure automatic defense of the tower. POS batteries have built-in self-checks that prevent them from firing on targets that would summon CONCORD in hi-sec. These options are hidden if they are not applicable to the space the POS is anchored.
- Attack if at War, applicable in all space
- Attack if Other Security Status Dropping, applicable in all space
- Are there more settings in lo-sec / null-sec? There are, need to document how to run NBSI and NRDS settings.
Attack if other security status is dropping
Your POS batteries will automatically attack anyone who's security status is dropping (has a criminal [or suspect? someone please edit] flagged) while on-grid. Such as someone shooting at your POS guns without declaring war first. In hi-sec, this checkbox should be turned off as CONCORD will deal with the offender much better then your POS batteries will. If you have a GCC flag, you should never approach a POS (even a normally friendly one) as this setting can cause it to fire on you as a valid target.
Attack if aggression
Your POS batteries will automatically fire on anyone who engages a corp/alliance member. This should be turned off in hi-sec as CONCORD will deal with the offenders and should generally be left off in lo-sec / null-sec. If you have an aggression timer, you should never approach a POS (even if normally friendly) as this setting can cause it to fire upon you. Never shoot or duel other corporation members near a POS. This setting (if turned on) can also cause problems for any logistics ships that are attempting to repair the tower's shield (and possibly modules).
Attack if at war
This is the only setting that should be checked normally in hi-sec space. It will ensure that your POS batteries automatically fire on valid war targets, even if you are not around to control them.
There are two types of offense that a POS can engage in. One is acting as a tackler, using energy neutralizers, stasis webs and warp disruptors/scrambers in order to hold enemy ships in place for destruction by the POS weapons or support fleet. The second type of POS offense is weapon systems such as hybrid turrets, laser turrets, missile launchers or projectile batteries. Each race/faction POS tower gives different bonuses to weapons, but that must be balanced with the issue that once a tower enters reinforced mode all weapons that use CPU will go offline.
All offensive systems that target enemy ships must be mounted outside the POS bubble. This is usually a minimum of 5km outside the POS bubble. Small setups will place clusters of systems at both the north and south pole for good coverage, medium/large setups should spread modules evenly around the entire sphere. A 4-point (pyramid corners), 5-point (north / south / 3 around equator), or 6-point (north / south / 4 around equator) setup around the POS are common configurations.
Structures that are placed outside the POS are vulnerable to attack by the enemy even when the POS tower's bubble is intact. When placing defenses outside the POS bubble, you should spread them far enough apart that a battleship cannot easily attack all of them simultaneously with smartbombs. This generally means a 4-6km separation between elements (which is 4-6 "green boxes" apart as each step is 960m). While smartbombs are not very fast at killing batteries, it's an option in cases where there are no defenses other then ECM.
What works best with what tower
- Amarr (including Blood/Sansha) towers should use laser batteries due to bonuses.
- Minmatar (Angel/Domination) should use projectile batteries due to their bonuses.
- Gallente (Serpentis/Shadow) can use rails, but should use projectile autocannons for short-range. Blaster batteries are not suitable due to range issues.
- Caldari (Guristas) should never use Torpedo / Cruise Missile batteries. Instead, they should fit with projectile batteries (possibly with a few Hybrid Rail batteries).
- Damage type done by the battery is affected by the type of ammunition loaded.
- Damage amount is also affected by the type of ammunition loaded.
- The range bonus/penalty of ammunition affects range.
- All distance calculations for optimal/falloff are calculated from the control tower.
- All traversal calculations are calculated from the control tower.
Lasers, Projectiles, and Rails come in three size flavors.
- Small: Useful against frigates, cruisers and fighters
- Medium: Better for cruisers, battlecruisers and battleships
- Large: Only works well against capital ships and battleships
Hybrid Batteries (Blaster)
Never use small blaster batteries. Because of the incredibly short range of blasters and because range is calculated from the control tower (not the battery itself) you should never use small blaster batteries.
|Small Blaster Battery||56,250||0||10km||17km|
|Medium Blaster Battery||112,500||0||16km||26km|
|Large Blaster Battery||225,000||0||21km||35km|
Hybrid Batteries (Rail)
Railguns are the long range variant of hybrid batteries. Their range is much larger than that of the blaster batteries, but the tracking speed is extremely slow.
|Small Railgun Battery||90,000||0||150km||75km|
|Medium Railgun Battery||180,000||0||225km||112km|
|Large Railgun Battery||360,000||0||300km||150km|
Laser Batteries (Beam)
The "beam" flavor of laser batteries are the long range version. They have higher alpha damage then the "pulse" batteries, but their lower rate of fire results in lower DPS.
|Small Beam Laser||112,500||0||187km||50km|
|Medium Beam Laser||225,000||0||280km||75km|
|Large Beam Laser||450,000||0||375km||100km|
Laser Batteries (Pulse)
The "pulse" flavor of laser batteries are the short range variant. They have smaller alpha damage, but a higher rate of fire gives them more DPS.
Laser batteries get bonuses from Amarr towers and come in two flavors, "beam" for long range and "pulse" for short range. Laser batteries use zero CPU and will continue to function after the tower is reinforced (if repaired and in working order). As with regular Amarr pulse/beam weapons, they use crystals, but the size of the crystals is always one larger then the laser battery. This means that large laser batteries use XL crystals, medium uses large crystals, and small batteries use medium crystals.
|Small Pulse Laser||78,750||0||52km||14km|
|Medium Pulse Laser||157,500||0||79km||21km|
|Large Pulse Laser||315,000||0||106km||28km|
One downside to using Laser Batteries is that the active crystal cannot be removed when you need to unanchor and move the battery. Inactive crystals can be removed before you unanchor.
Missile Batteries (Cruise)
Never use Cruise Missile batteries. The cruise missile batteries use CPU in order to function. This means that once the tower goes into reinforced mode, those batteries go offline and are useless.
Missile Batteries (Torpedo)
Never use Torpedo batteries. The torpedo batteries use CPU in order to function. This means that once the tower goes into reinforced mode, those batteries go offline and are useless.
Projectile Batteries (Artillery)
Artillery Batteries have longer range than AutoCannon Batteries, but poorer tracking.
|Small Artillery Battery||101,250||0||187.5km||168km|
|Medium Artillery Battery||202,500||0||280.5km||246km|
|Large Artillery Battery||405,000||0||300km||327km|
Projectile Batteries (Autocannon)
|Small AutoCannon Battery||67,500||0||10.5km||42km|
|Medium AutoCannon Battery||135,000||0||15km||63km|
|Large AutoCannon Battery||270,000||0||21km||85.5km|
The primary advantage of projectile batteries on a POS is that they do not require any CPU in order to operate. In addition, they can be fitted with different types of ammo in order to spread damage across multiple resists. Minmatar-based towers give bonuses to rate-of-fire, optimal range and fall-off ranges.
- need ammo capacity, max ammo stored, estimated time to deplete ammo. should be around 13 hours for arty and 65 hours for autocannnons
Energy Neutralizing Battery
- 4000 m3 4000 kg
- 350,000 PG 25 CPU
- 100k shield HP, 1.5M armor HP, 100k structure HP
The energy neutralizer has a 250km (50?) range and drains 1000 GJ (a heavy T2 neutralizer on a ship does 600 GJ). Compared to the other types of defensive modules, their fitting requirement is rather high. These are mostly used in lo-sec and null-sec.
Stasis Webification Battery
- 4000 m3 4000 kg
- 50,000 PG 25 CPU
- 100k shield HP, 1.5M armor HP, 100k structure HP
These will cut an enemy's ship speed by 75% and have a range of 150km. A few of these makes speed-tanking the batteries a non-option as well as annoying any fleets that have to slow-boat from location to location around the tower.
Warp Disruption Battery
- 4000 m3 100 kg
- 100,000 PG 50 CPU
- 100k shield HP, 1.5M armor HP, 100k structure HP
The disruption batteries have a 150km range, but higher fitting needs than the scramblers. They have a warp scrambling strength of 3 points.
Warp Scrambling Battery
- 4000 m3 100 kg
- 25,000 PG 25 CPU
- 100k shield HP, 1.5M armor HP, 100k structure HP
The scrambling batteries only have a 75km range, but much lower fitting needs. They have a warp scramble strength of 6 points.
Anchoring of Spares
A recommended tactic is that you always anchor extra weapon and countermeasures outside the POS bubble, but leave them offline until needed. As existing weapons and countermeasures are incapacitated by damage, you can bring new weapons and countermeasures online. This tactic mostly only works if you will have people actively defending the POS during the initial or follow-up sieges who will need spare modules to continue fighting off the attackers. See the Starbase Defense Management section for a discussion of actively defending a POS.
The other theory behind anchoring offline spares is that it makes it more difficult for your enemy to know what modules will be active when they come to attack the POS. This is an effective tactic against enemies that are not specifically out to get you. If you have lots of electronic warfare batteries, weapon batteries and shield hardeners ready to go, smaller groups of opportunistic attackers may decide that you are too much trouble and go looking for easier POS towers. It is only an effective tactic on medium / large towers. Small towers are simply too easy to destroy and expensive modules / labs / contents should be evacuated at the first sign of trouble.
Starbase Defense Management
The Starbase Defense Management skill allows a pilot with the Starbase Defense Operator role to control weapons and countermeasures mounted outside the POS bubble.
- need explanations, what you can control
- how to use the UI
- how to control batteries
- how to relinquish control of batteries
- what do we bring, how long should it take
- ammo types, range needed
Incapacitation of Modules
- order of modules to attack
- modules inside the bubble cannot be attacked (such as shield hardeners)
- how to keep ships from being popped
- what ammo works best
Damage POS Shield
- Best Ammo
- Based on type of faction tower. Each faction tower has 2 weaknesses with 0% base resistance. Any active shield hardening array may also play a factor.
- Amarr EMP and Thermal
- Caldari EMP and Explosive
- Gallente EMP and Explosive
- Minmatar Explosive and Kinetic
- Shield Radii
- 30km for a large POS
- 21km for a medium POS
- 15km for a small POS
- taking down the shield
Once the POS shield drops below 50%, the POS owner can no longer:
- Add/Remove Strontium Clathrates to affect the timer
- Unanchor any modules.
Once the POS shields have been damaged down to 25%, the POS may enter reinforced mode. If there is at least one unit of Strontium Clathrates a timer will appear by the tower in space. This timer will say "reinforced" along with the length of time remaining before the tower comes out of reinforced mode. All towers can carry a maximum of around 41.7 hours worth of Strontium Clathrates in their "stront bay" (see the "Capacity2" field on a tower's attributes). If there is not enough Strontium Clathrates in the tower for at least one hour, you can continue straight to final destruction of the POS.
The math for the stront bay is 50,000 m3 (for a large tower) divided by 3.0 m3 per unit of Strontium Clathrates, give you 16666 units. A large tower goes through 400 per hour in reinforced mode, giving you 41.665 hours of reinforcement (1d 17h 39m 54s).
In addition, the following things will happen:
- The POS shield will no longer regenerate when reinforced
- All modules/structures that require CPU will go offline
- Modules/guns that do not use CPU will stay online
- Modules/structures inside the tower are still safe
What the owner can do while the POS is reinforced:
- Repair guns and modules outside the bubble
- Anchor new guns that do not use CPU
- Online already anchored guns/modules that do not use CPU
- Can access the contents of a Ship Maintenance Array (uses no CPU)
What the owner cannot do while the POS is reinforced:
- Online anchored modules/guns that require CPU
- Online repaired guns/modules that require CPU
- Unanchor anything that uses CPU
- Add Strontium Clathrates to the stront bay
- Cannot repair the POS shields
- Cannot access the contents of corporate hangar, labs or silos
The POS will exit reinforced mode once the Strontium Clathrates run out. At that point in time the shields will start to regenerate on their own. The owner of the POS can bring the shields up to the 50% mark by using ships with shield transporter modules (such as Basilisks, Scimitars, Ospreys, or any other ship that can fit them and stay cap-stable). Once the shield has been repaired to 50%, the owner may online any modules/structures that require CPU. They may also re-stront the tower so that it will enter reinforced mode again if the shields are lowered again to the 25% mark.
If the attacking force wishes to completely destroy the POS after the reinforcement timer, they should leave a harassing force in place to prevent the repair of guns or other modules outside the POS bubble.
- when do we come back, what do we bring, how long should it take
What to Shoot
- repaired modules
- other modules?
What to Loot
Once you have removed the tower, anybody can unanchor all modules that have no structure damage, but you can probaby use a remote Hull repairer to fix any structure damage and then unanchor it. As of 9th of November 2013 armor damage DOES allow unanchoring (tested on SiSi).
- mobile labs retain their contents after being unanchored. they can either be anchored at another POS to retrieve the contents or can be repackaged which will extract the contents
- corporate hangars and ship maint arrays must be destroyed (yes/no?) to obtain the contents, repacking these two modules will result in loss? can't unanchor if they have stuff in them?
- silos and weapon batteries will destroy their contents when unanchored after the POS tower is destroyed, no way to obtain contents?
- Ship mainatainance Arrays will produce a wreck after 19th of November 2013 which contains all ships inside. Since the ships are assembled, you need a Carrier or pilots to get them out of there.
- modules? hangar contents?
- link to IVY war loot policy
Hi-Sec War-Dec Defensive Preparations
You've setup your POS to discourage attackers, but that will not always be enough if your adversaries are determined. So what do you do with a hi-sec POS if you get a war-dec? The answers to that will depend on the expected strength of the opposition, whether or not you will be actively using the POS weapons against the opposition, and how much risk you are willing to tolerate.
In general, hi-sec POSs with good setups are fairly immune to attacks unless the attacker is willing to bring 5-25 battleships and spend a few hours beating on it to put it into reinforced mode. During the 24h warm-up period for a hi-sec war-dec you need to make decisions about what modules you will leave in space and what modules you will tear down and store in a nearby station.
Keep in mind that your future opponents may be watching your every move with their main characters (or an OOC alt) to see if they can find out where you have in-space assets.
Rip it all Down
If you are running a small tower, or a medium tower with few defenses in hi-sec then it's likely that your best plan of action is to rip it all down. Your assumption should be that as soon as the war-dec goes "hot" that the tower will be put into reinforced mode within 1-3 hours and then destroyed once it comes out of reinforced mode. Any jobs in the research / manufacturing slots will need to be cancelled. The contents of any arrays (labs, hangars, manufacturing lines) will need to be emptied and carted to safety (such as a nearby station). Arrays with contents cannot be unanchored.
As a priority, you should focus on getting the labs, arrays, silos and other assets evacuated to safety before worrying about any defensive systems. As defensive systems are inexpensive, you minimize your potential loss. If you run out of time and the defensive modules are still present, turning them all on when the war goes active will make the attacker's job more difficult.
The major downside of this strategy is that you may find that another corp will erect a POS tower at your moon while you are occupied with the war.
The next option is a middle ground. You remove all high value options such as assembly arrays, lab slots, ship maintenance arrays but you leave the tower and all defensive/offensive modules in place. If you have any spare defenses, you will want to bring them online as you take non-essential arrays offline. The primary goal here is to minimize losses while not giving up your place at the moon. The secondary goal is to make the attacker's life as difficult as possible for the least amount of ISK by putting additional ECM / damps / hardeners online.
Small towers should generally be taken down, unless the attackers are few in number. In hi-sec wars, your primary defense is going to be ECM, but the enemy can still bring smart bombing battleships or drone boats to take out the batteries. If you absolutely must leave a small tower in place, anchor a few sensor damp batteries and up to (16) ECM batteries (4 of each type). They will still probably destroy the tower, but they will be forced to rely on smartbombs / drones and it will take a lot longer. You must be prepared to unanchor and remove any modules inside the POS tower such as Mobile Labs, Advanced Mobile Labs or Corporate Hangars.
Medium towers can anchor and online around (24-30) ECM and large towers can do setups with as many as (48-72) ECM. Or you can simply go the shield hardener route and maximize your shield resists. The ECM method is generally preferred in hi-sec, combined with a few stasis webs, sensor damps, and small/medium weapons (projectiles, lasers, rails) for picking off stragglers or drones.
Active defense really only works if you have at least 2-3 POS gunners (players with the Starbase Defense Operator role). Each POS gunner will need to have Starbase Defense Management trained to level IV so that they can control a reasonable number of batteries. The goal here is that the POS gunners will coordinate tackling of ships with one of their control modules while the other gunners immediately bring focused fire to bear on the tackled ship. This needs to happen fast enough that the attacking forces cannot refocus their remote repair fast enough to save the target.
As batteries get thinned out and you start running out of spares to bring online as replacements, you should start putting the shield hardeners online. With (9) hardeners you can do a 3/3/2/1 setup and it will make the attacker's job much more difficult. Large towers may even wish to run with a 4/4/3/2 (13) setup for maximum resists.