]> git.pond.sub.org Git - empserver/blob - info/Attacking.t
Update for recent code changes. Make pseudo-code match the real code.
[empserver] / info / Attacking.t
1 .TH Concept "How to take a sector or ship from the enemy"
2 .NA Attacking "Details for attack, assault, paradrop, board and lboard"
3 .LV Expert
4
5 This info page describes 5 different commands: "attack", "assault",
6 "paradrop", "board" and "lboard".  These are the five commands that you
7 use to take something (either a ship, land unit or a sector) from the
8 enemy by force.
9
10 Note that much of the board information relates to the lboard information,
11 just apply it to a land unit instead of a ship.
12
13 .NF
14 A combat has 15 steps:
15 (1)  Ask the aggressor for the target sector/ship.
16 (2)  Ask the aggressor further details about the offensive force.
17 (3)  Estimate the odds and possibly ask the aggressor for confirmation.
18 (4)  Move reacting defensive units to the target sector.
19 (5)  Calculate defensive support.
20 (6)  Fight.
21 (7)  Spread the plague.
22 (8)  Take mobility and supply from land units.
23 (9)  Send reacting units home.
24 (10) If successful, the aggressor takes the target sector/ship.
25 (11) Remove mobility and efficiency from the target sector/ship.
26 (12) Remove mobility from the aggressor's sectors/ship.
27 (13) Possibly ask the aggressor for mil and units to move into the target.
28 (14) Possibly interdict the aggressor's mil and units as they move.
29 (15) Charge the aggressor BTU's.
30 .FI
31 .s1
32 .L "(1)  Ask the aggressor for the target sector/ship."
33 .NF
34 Sea, sanctuary, and wasteland are illegal targets.
35 You may not assault a mountain.
36 You may not paradrop into a mountain, capital, city, or fortress.
37 You may only board a ship from the sector the ship is in, you may
38 not board a ship which is faster than your ship, and you may not board
39 a submarine at sea.
40 You may only board a land unit from the sector the land unit is in.
41 .FI
42 .s1
43 The "assault" command is the only command which will let you attack
44 your own sector (you can use this to get mil & assault units on
45 shore).  You should not "attack" unowned land (see info explore).
46 .s1
47 If the SLOW_WAR option is enabled, you will not be able to attack
48 a sector owned by a country you are not AT_WAR with, unless you
49 are the old owner of the sector.
50 .s1
51 .L "(2)  Ask the aggressor further details about the offensive force."
52 .s1
53 When you board, you are asked for a ship or sector to board from.
54 If you are attacking or assaulting, then you have the option to
55 specify whether you want your forts/ships/plane/units to support your
56 attack.  If no support is specified, then it is assumed that
57 you want support from all sources.
58 .s1
59 If you are not paradropping, then you will be asked for mil and units
60 you would like to attack with.
61 You must always leave at least 1 mil in
62 the sector or ship you are attacking from, so you may never attack
63 with all of your mil out of a sector or ship.  
64 The following limitations apply to the aggressor's mil:
65 .NF
66 Attack:  You are limited by the mobility of the attacking sector
67          according to the mob-cost to move the mil into the target sector.
68 Assault: If the target sector contains mil, then you may only attack with
69          1/10th of your mil on board, unless your ship has "semi-land"
70          capability in which case it is 1/4th, -or- if your ship has 
71          "land" capability in which case there is no limitation.
72 Board:   When boarding from a sector, the sector must have mob.  When
73          boarding from either a ship or a sector, the number of mil
74          you may board with is limited to the maximum number of mil that the
75          target ship can hold.  Note that you can board land units
76          from a sector only.
77
78 The following restrictions apply to the aggressor's land units:
79 A land unit must have mobility and be in supply (see info supply) in
80 order to be able to enter the combat.  Land units with "supply"
81 capability may not attack.  Only land units with "assault"
82 capability may assault or board.
83 Attack:  The land unit must have at least as much mobility that it
84          would cost for it to march into the sector.
85 Board:   You may only board with as many land units as the target ship
86          can hold.  You cannot board a land unit with other land units.
87 .FI
88 .s1
89 When asked whether you'd like to include a certain land unit in the
90 combat, you will be given a prompt ending in [ynYNq?].  At this
91 prompt, you can type:
92 .NF
93 y - yes this unit
94 n - no this unit
95 Y - yes all units in this army
96 N - no all units in this army
97 q - quit attack
98 ? - print this help message
99 .FI
100 .s1
101 .L "(3)  Estimate the odds and possibly ask the aggressor for confirmation."
102 .NF
103 The offense strength of your land units is mil * off where "mil" is the
104 number of mil in the unit, and "off" is the offense multiplier of the
105 unit (see show land stats), with the following exceptions:
106 Assault: If the unit doesn't have "marine" capability, then its
107          offense strength is cut in half.
108 Board:   If the unit doesn't have "marine" capability, then its
109          offense strength is equal to half of the number of mil in the unit.
110 .FI
111 .s1
112 The total offense strength is the number of mil plus the offense
113 strength of all offensive units.  This number is then multiplied by
114 the offense value of the sector the mil and units are attacking from
115 (see show sector stats).  Ships have an offense value of 1.
116 .s1
117 The defense strength of a land unit is the total number of mil in the
118 unit times its defense multiplier (see show land stats).  The only
119 exception to this is non-marine land units on ships which have a
120 strength equal to the total number of mil in them.  The defense
121 strength of units out of supply is cut in half.  The defense strength
122 of fortified units is multiplied by (127 + fortification) / 127.
123 .s1
124 The total defense strength is the number of mil plus the defense
125 strength of all defensive units.  This number is then multiplied by
126 the defense value of the sector the mil and units are in (see show
127 sector stats).  Ships have a defense value of 1 + def/100 (see show
128 ship stats).  You can use the "strength" command to see the defense
129 strength of your sectors.
130 .s1
131 Now, When your scouts estimate the defense strength, they only count
132 land units and mil that they see.  If your scouts didn't notice the
133 efficiency of the defending units, then they assume that they are at
134 100% efficiency.  Your scouts also assume that none of the enemy units
135 are fortified.  Once your scouts have come up with an "estimated
136 defense strength", then that number is compared with your offense
137 strength.  The
138 output so far might look like this:
139 .EX attack -14,2
140 .NF
141 -14,2 is a 100% 5 harbor with approximately 0 military.
142 Number of mil from headquarters at -15,3 (max 108) : 10
143 cavalry #7 has a base attack value of 44
144 attack with cavalry #7 in -15,3 (~ 100%) [ynYNq?] y
145 cavalry #24 has a base attack value of 44
146
147              Initial attack strength:      108
148 Scouts report defending unit: inf1  infantry 1 #22 (efficiency 71, tech 169)
149 Scouts report defending unit: inf2  infantry 2 #41 (efficiency 94, tech 169)
150 Scouts report defending unit: inf2  infantry 2 #42 (efficiency 94, tech 173)
151 Scouts report defending unit: inf2  infantry 2 #43 (efficiency 65, tech 139)
152           Estimated defense strength:     1118
153                       Estimated odds:        8%
154
155 .FI
156 .s1
157 Note that your estimated odds are calculated before any enemy units
158 have reacted, and before support multipliers are calculated, so they
159 will not be particularly accurate.
160 .s1
161 .L "(4)  Move reacting defensive units to the target sector."
162 .s1
163 If the target is not a mountain, then defensive units in nearby
164 sectors may react.  Defensive units will keep reacting until the
165 defense strength is 1.2 times the offense strength.  The following
166 restrictions apply to reacting land units:
167 .NF
168 - The efficiency of the unit must be higher than it's retreat percentage.
169 - The unit must be in supply.
170 - The unit must have enough mobility to get to the target.
171 - The unit must be in range.
172 .FI
173 If the unit is in a 60% efficient headquarters, then 1 is added to its
174 reaction radius.  If it is on "reserve" mission, then 2 is added to
175 the radius.  Note that you can limit the reaction radius of your land
176 units using the "lrange" command.
177 .s1
178 .L "(5)  Calculate support."
179 .s1
180 For attack and assault, both offensive and defensive support is
181 calculated.  For paradrop, only defensive support is calculated, and
182 for board and lboard there is no support (however, defending ships within range
183 will fire on the boarding ship or sector before the fight if boarding
184 a ship).
185 .s1
186 The aggressor's support is calculated based on what the aggressor
187 asked for.  Defensive support is only called in to the extent that it
188 would be useful.  If the aggressor outnumbers the defender 10-to-1,
189 then the defender will not have any support.  Otherwise, the defender
190 will keep calling in support until its strength is at least 1.2 times
191 the offense strength.
192 .s1
193 Fort, ship, and unit support is simply those forts, ships, and units
194 in range that can fire (see info fire).  Note that ships and units on
195 missions will not fire support.  Plane support comes from
196 those planes on "support" mission.  The support multiplier is
197 .NF
198 1.0 + fortdamage/100 + shipdamage/100 + planedamage/100 + unitdamage/100.
199 .FI
200 .s1
201 Ships/forts/units belonging to allies of the combatants will support,
202 if they are at war with the other combatant. (For example, if A is allied
203 with B, and at war with C, and A attacks C, things belonging to B will
204 support the attack if able. The same is true for defense. If C attacks
205 A, the B stuff will help defend A)
206 .s1
207 After these four supports are calculated, then land mine support is
208 added to the defense support.  Defending land mines add (number of mines) *
209 0.02 to a maximum of 0.40.  If there are attacking engineers present,
210 this number is cut in half.
211 .s1
212 .L "(6)  Fight."
213 .s1
214 Total offense and defense strength are multiplied by their support
215 multipliers to obtain the final combat strengths.  From this, odds are
216 calculated.  Then in each "round", a chance according to the combat
217 odds determines whether an aggressor or defender troop is lost.  Troops
218 killed in combat are first taken from the mil (from the sector
219 containing the most mil), and then from the units (from the unit
220 containing the most mil).  Combat odds are recalculated and the
221 process continues until there is a victor.  Each time there is a
222 casualty, a character is printed:
223 .NF
224 ! means a defending soldier bit it
225 @ means one of your soldiers went doan
226 .FI
227 .s1
228 If the effiency of a land unit is less than its retreat percentage when
229 it gets hit, then it will need to make a morale check.
230 The chance of failing a morale check is (retreat
231 percentage - efficiency).  If the unit has nowhere to retreat to, then
232 it takes "extra losses" which amounts to an extra 10% docked from its
233 efficiency.  Otherwise, the land unit retreats to the adjacent sector
234 containing the maximum number of civs.  Units will never retreat into
235 mountains.
236 .s1
237 Also note that once all of the military on a land unit are killed, the
238 land unit stops defending.  What this means is that a land unit can
239 become "trapped" in an sector if an enemy takes it over after killing
240 all the military on a land unit while the land unit may not be destroyed.
241 .s1
242 When planning an attack remember that overwhelming forces greatly increases
243 your odds; i.e., attacking 10 men with 40 will result in your losing
244 fewer troops than if you had attacked with 20.
245 .s1
246 .L "(7)  Spread the plague."
247 .s1
248 If any combatant in a battle is infected with the plague, all potential
249 comnbatants in the battle are infected as well (if they do not already
250 have some level of plague already.)
251 .s1
252 .L "(8)  Take mobility and supply from land units."
253 .s1
254 The "aggresor loss factor" is equal to the number of aggressor
255 casualties divided by the total number of aggressor troops that went into
256 the conflict.  Similarly, the "defender loss factor" is calculated.
257 Then each land unit loses mobility equal to 10 * (loss factor).
258 Defensive land units on reserve mission only lose half of that.  Also
259 there is a chance equal to the loss factor that the land unit will use
260 up some of its supply (see info supply).
261 .s1
262 .L "(9)  Send reacting units home."
263 .s1
264 If the defending land unit did not retreat, then send it back to where
265 it came from at no mobility charge.
266 .s1
267 .L "(10) If successful, the aggressor takes the target sector/ship."
268 .s1
269 Either 1 aggressor mil (first choice) or one land unit (second choice)
270 is automatically moved into the conquered ship or sector to occupy it.
271 Since this mil or unit is effectively "chasing out" the remnants of
272 the defending forces, the defender will not interdict it (because he
273 won't want to damage his forces with "friendly fire").
274 .NF
275 This is what happens to the sector when you take it:
276 - All delivery and distribution information is wiped.
277 - The production in the sector is stopped (see info stop).
278 - Planes in the sector owned by the player you just took the sector from
279   lose 30 plus random(100) efficiency and go to 0 mob. If the new efficiency
280   is less than 10%, the plane is blown up.
281 - Units in the sector owned by the player you just took the sector from
282   lose 30 plus random(100) efficiency and go to 0 mob. If the new efficiency
283   is less than 10%, the unit is blown up.
284 - The avail is set to 0.
285 - New che are created (see info Guerrilla).
286 - Set the loyalty of the sector to 50 (see info Citizens).
287 - Reduce the mobility to 0.
288 - The civs in the sector become "conquered populace" (see info Occupation).
289
290 When you take a ship:
291 - Mission, retreat info and fleet info is wiped.
292 - Planes and land units on the ship are reduced to 10%.
293
294 When you take a land unit:
295 - Mission, retreat info and army info is wiped.
296 - Planes and land units on the unit are reduced to 10%.
297
298 When you take someone's capital, the defender loses half of their
299 money or $3000 whichever is greater.  If the defender wasn't broke to
300 begin with, then the aggressor gets half of their money times (1/5 +
301 4/5 * efficiency of the sector).
302 .FI
303 .s1
304 .L "(11) Remove mobility and efficiency from the target sector/ship."
305 .s1
306 The efficiency of the target sector or ship is damaged by a percentage
307 equal to the total number of casualties divided by ten.
308 .s1
309 If the target is a sector, then it will lose a percentage of the
310 mobility equal to the number of defender mil casualties divided by the
311 total number of mil that were originally in that sector, up to a
312 maximum of 20 mobility.  So if for example, your casualty fraction was
313 70/100, and your sector started with 50 mobility, then you would lose
314 min(20, 50*70/100) = min(20, 35) = 20 mobility.
315 .s1
316 .L "(12) Remove mobility from the aggressor's sectors and ships."
317 .s1
318 The pre-combat mobility costs are:
319 .NF
320 Attack:  Remove mobility equal to the mob cost to move the mil into the
321          target sector.
322 Board:   If boarding from a ship, the cost is the half of the speed of the
323          defending ship times the efficiency of the defending ship.
324          If boarding from a sector, the cost is the number of boarding
325          mil divided by 5. This applies for boarding of ships and land units.
326 .FI
327 .s1
328 Only sectors are charged an additional post-combat mobility cost.
329 In this case, the amount of mobility the sector loses is calculated
330 using the same formula as is used for the defending sector's mobility cost.
331 .s1
332 .L "(13) Possibly ask the aggressor for mil and units to move into the target."
333 .s1
334 If the combat was an assault, paradrop, board or lboard, then all victorious
335 mil and units are automatically moved into the target.  The mil are
336 moved in with no mobility charge.  If the combat is assault, then
337 the mil will take an amount of food with them proportional to the
338 number of people leaving the ship.  The mobility cost to land units is
339 as follows:
340 .NF
341 Assault: If the land units are attacking from a ship with "land" capability,
342          then land units are charged (update mob) mobility, except for
343          "marine" units which are only charged half of that.  For all
344          other kinds of ships, land units go to -(update mob), except for
345          "marine" units which go to zero.  Here, (update mob) refers to
346          the amount of mobility that units gain at the update.
347 Board:   Marine units are charged 10 mobility and other land units are
348          charged 40.     
349 .FI
350 .s1
351 In the case of attack, the aggressor is asked what they'd
352 like to move in as follows:  First, the aggressor is asked how many mil
353 they would like to move in from each attacking sector.  This number is
354 limited by the amount of mobility left in the attacking sector.  Then
355 the aggressor is asked which land units they'd like to move into the
356 sector with the same [ynYNq?] prompt as above, the only difference
357 being that 'q' now means "don't move anything in".  The mobility costs
358 here are the same as for "move" and "march".
359 .s1
360 .L "(14) Possibly interdict the aggressor's mil and units as they move."
361 .s1
362 Post-attack interdiction only occurrs in the "attack" command (and not
363 in "assault", "paradrop", "board" or "lboard").
364 When you move your mil into the target sector after an attack, you
365 will risk the same chances of interdiction (number of mil / 200) and
366 stepping on land mines (see "info lmine") as
367 if you were moving them using the "move" command.  
368 .s1
369 Similarly, once you have specified which land units you'd like to move
370 into the conquered sector, then all of your units will move in at
371 once, and they will be interdicted in the same way as though they were
372 being moved using the "march" command, including the danger of
373 stepping on land mines.  Note that there is no
374 post-attack interdiction and no danger of stepping on land mines if the
375 INTERDICT_ATT option is disabled (see version).
376 .s1
377 .L "(15) Charge the aggressor BTU's."
378 .s1
379 The BTU cost is equal to 0.5 + (the total number of casualties) * 0.015.
380 .s1
381 .SA "attack, assault, paradrop, board, lboard, Combat"