Once PHost has determined what units will fight at a particular place, it will sort the list according to battle order values. You can choose battle order values for your units by using (numeric) friendly codes.
- If your friendly code consists of only digits, that's the battle order value. This can be used to enter values between 000 and 999.
- The friendly code can also start with a minus sign, yielding values between -99 and -00.
- A planet with ATT or NUK will have a battle order value of zero.
- Planets with other non-numeric friendly codes have a value of 1001 if they have defense posts, 1003 if they have none.
- Ships with non-numeric friendly codes have a value of 1000 if they have weapons, 1002 if they don't.
When two units have the same battle order value, the one with the lower Id number fights first. When a ship and a planet with the same Id number and the same battle order value fight, the ship fights first.
Examples:
| Friendly Code | Numeric Value | Rules |
|---|---|---|
| 001 | 1 | (rule 1) |
| 010 | 10 | (rule 1) |
| 01a | 1000 | (rule 5) |
| 10b | 1000 | (rule 5) |
| a10 | 1000 | (rule 5) |
| oof | 1000 | (rule 5) |
| 5ia | 1000 | (rule 5) |
| 5o9 | 1000 | (rule 5, this is a lower-case letter "o" not the digit "zero") |
| -13 | -13 | (rule 2) |
| -09 | -9 | (rule 2) |
| -a5 | 1000 | (rule 5) |
| -3* | 1000 | (rule 5) |
| 33 | 33 | (rule 1, since PHost 4.0h; earlier PHost versions handle only friendly codes consisting of exactly three characters and would use rule 5 here) |



