UPRP
The 64 unit properties slots used by the
Create Unit with Properties action. A slot is
laid out as a UNIT record's properties are, and each field or state is only
applied when its bit is set, so a slot can set the hit points alone.
| Name | UPRP (55 50 52 50) |
|---|---|
| Size | 1280 bytes: 64 slots of 20. |
| Read by | The game. |
| Required | Yes. The game does not load a map without it. |
| More than one copy | Only the last copy counts. |
| In scmJS | Read, and written again when you change what it holds. |
Each slot:
| Offset | Type | Holds |
|---|---|---|
| 0 | u16 | Which special states the slot sets (below) |
| 2 | u16 | Which fields the slot sets (below) |
| 4 | u8 | Owner; unused |
| 5 | u8 | Hit points, per cent |
| 6 | u8 | Shields, per cent |
| 7 | u8 | Energy, per cent |
| 8 | u32 | Resources |
| 12 | u16 | Units in the hangar |
| 14 | u16 | The special states themselves |
| 16 | u32 | Unused |
Special states:
| Bit | Meaning |
|---|---|
| 0x01 | Cloaked |
| 0x02 | Burrowed |
| 0x04 | In transit |
| 0x08 | Hallucinated |
| 0x10 | Invincible |
Fields set:
| Bit | Meaning |
|---|---|
| 0x01 | Owner |
| 0x02 | Hit points |
| 0x04 | Shields |
| 0x08 | Energy |
| 0x10 | Resources |
| 0x20 | Hangar |