Combat: Difference between revisions
More actions
Make math scrollable |
Fix typo in terrain function |
||
| Line 42: | Line 42: | ||
\begin{cases} | \begin{cases} | ||
0.8 & \text{if plains} &\\ | 0.8 & \text{if plains} &\\ | ||
1 & \text{if highlands} &\\ | |||
1.2 & \text{if mountains} \end{cases}</math>}} | 1.2 & \text{if mountains} \end{cases}</math>}} | ||
Revision as of 07:52, 18 November 2025
Combat is Openfront's main mechanic, allowing players, Bots, and Nations to spend Troops and time in order to gain territory. Additionally, players and nations may use Nukes fired from Missile Silos to destroy territory and infrastructure.
Ground combat
Ground combat is the main form of attacking that a player may do. It is performed by left clicking on any territory your territory borders. This will send an attack towards all territory with the same owner you have borders with.
Players may decide how many troops they will send into combat with the Attack Ratio slider at the bottom left of the UI. Once an attack is launched, the number of attacking troops is immediately removed from the player's total troop count, usually changing the troop gain rate. By clicking on a territory you are already attacking, you may add more troops into the same attack. In almost all situations, it is ill advised to send 100% of your troops into any attack, as this will significantly decrease your troop gain rate, and a 3rd party attacker may take over your land while you are attacking the first defender.
When defending, all of your troops which are a part of your max troop count act as defenders. You may send troops from defending to counterattacking, resulting in an equal decrease of your troops as your attacker's. This is sometimes wanted, and sometimes unwanted.
if you conquer all tiles of an enemy, you will gain all of their gold as a reward.
The attack speed and attack efficiency (how many troops are lost on each side) depends on many factors, namely:
- Type of attacker and defender (player, bot, nation)
- Amount of Tiles owned by attacker and defender
- Difficulty of game (for nations)
- Terrain
- Presence of Defense Posts
- Presence of Fallout
- Ratio of attacking and defending troops
- Size of borders between attacker and defender (implicit)
- Defender's connection status (for players)
- Attacker's and defender's Traitor debuff
- AFK status of defender
The fastest and most efficient attack would be one by an extremely large player towards a traitor bot, with a 2x the amount of attackers over defenders, on the easiest terrain, without defense posts with extremely tiny borders.
Calculation
Attack efficiency
The amount of attacking troops lost for each Tile is calculated by the following function.
Where:
The amount of defending troops lost for each tile is calculated by the following function.
If a player has left the game (is AFK) and is on the same team as the attacker, no troops are lost by the attacker when attacking them.
Attack speed
Attack speed is expressed as tiles per Tick used, meaning that the lower the number, the faster the attack goes.
Generally, players want their attacks to be as fast as possible, however, in certain situations, it can be useful to have a very slow attack, as this allows you to put in more troops into an attack than your maximum population.
Where:
Retreat
You may retreat your troops by clicking "X" next to your attack in the events panel. This takes a few seconds, and 25% of your remaining troops will be lost before returning.
Annexation
If you fully surround a territory, or if you split a territory into two disconnected parts where at least one doesn't have coastal borders, you get all of the surrounded territory instantly and with 0 defender troop loss.
Naval combat
Player may send up to 3 Transport Ships to any territory. It is usually advised to send as few troops as possible per ship, as if a transport ship is sunk by a Warship, all troops on board are lost.
Naval attacks may be sent against territories you have borders with, which can help speed up attacks by focusing on important parts of the territory (such as easy territory with easy terrain, or many buildings), or by making Annexation possible for territories with coastal borders.
If a boat was headed for a territory, which then changes owners (even to an ally), you do not attack with all of your troops, however a single Tile gets conquered, which allows you to launch surprise attacks, as these small territories may be quite difficult to spot.
As of v26.16 there is a strategy colloquially named "boat stacking", which abuses the fact that troops in boats do not count towards your maximum population, allowing you to send with many troops a boat to a far-off land land, and then retreat it, to effectively increase your troop count way above your maximum.
Retreat
You may retreat a transport ship by clicking "X" next to the attack in the events panel. The ship will return to the tile it started at. There is no troop loss.
Nuclear combat
Players may launch Nukes using Missile Silos, and the may defend against nukes using SAM Launchers. If a nuke lands, it will turn land in an area around the impact sight into Fallout.
Nukes can destroy Trade Ships, Transport Ships, and Warships, and all land Buildings, and units.
Alliances
Players in alliances may not conquer each other's land. If an ally launches a nuke into their ally's territory, they will automatically get the Traitor debuff, as long as they destroy 100 or more tiles of the ally's territory. As of v26.16 this grace amount of 100 tiles can be abused to destroy an ally's buildings on the coast (without becoming a traitor), particularly ports, by aiming an Atom Bomb in a way as to just barely graze the ally's port.
Nukes can destroy any units, including warships, without breaking alliances, as long as they do not destroy enough ally land.
You may conquer a single ally pixel without becoming a traitor by sending a transport ship into territory, which gets conquered by an ally while your ship is on its way.
Teams
In a team game, teammates cannot conquer each other's land, the defender is AFK.
Players cannot launch nukes directly into teammates' territories, however, if a nuke's impact site is outside of teammates' territories, it may destroy the surrounding territory. This can be used to get borders with an opposing team, if you are blocked by your teammates, though it should be used with caution.