Code: Select all
At file offset 0x804 in herodata.lbx is an array of hero data. Each hero element is 0x3B bytes long and in the following stucture (all offsets in hex):
offset value
00-0E Leaders Name (null terminated string)
0F-22 Leaders Title (null terminated string)
23 Leader type (0 = Ship Officer, 1 = Colony Leader)
24-25 Experience (lo/hi)
26-29 Common Skills flags(same for both ship officers and colony leaders)
Assasin (bit 0)
Assasin* (bit 1)
Commando (bit 2)
Commando* (bit 3)
Diplomat (bit 4)
Diplomat* (bit 5)
Famous (bit 6)
Famous* (bit 7)
Megawealth (bit 8)
Megawealth* (bit 9)
Operations (bit 10)
Operations* (bit 11)
Researcher (bit 12)
Researcher* (bit 13)
Spy Master (bit 14)
Spy Master* (bit 15)
Telepath (bit 16)
Telepath* (bit 17)
Trader (bit 18)
Trader* (bit 19)
2A-2D Special Skills (different for ship officers and colony leaders)
For Ship Officer
----------------
Engineer (bit 0)
Engineer* (bit 1)
Fighter Pilot (bit 2)
Fighter Pilot* (bit 3)
Galactic Lore (bit 4)
Galactic Lore* (bit 5)
Helmsman (bit 6)
Helmsman* (bit 7)
Navigator (bit 8)
Navigator* (bit 9)
Ordinance (bit 10)
Ordinance* (bit 11)
Security (bit 12)
Security* (bit 13)
Weaponry (bit 14)
Weaponry* (bit 15)
For Colony leader
-----------------
Environmentalist (bit 0)
Environmentalist* (bit 1)
Farming Leader (bit 2)
Farming Leader* (bit 3)
Financial Leader (bit 4)
Financial Leader* (bit 5)
Instructor (bit 6)
Instructor* (bit 7)
Labor Leader (bit 8)
Labor Leader* (bit 9)
Medicine (bit 10)
Medicine* (bit 11)
Science Leader (bit 12)
Science Leader* (bit 13)
Spiritual Leader (bit 14)
Spiritual Leader* (bit 15)
Tactics (bit 16)
Tactics* (bit 17)
2E-30 Array of tech numbers (up to 3 free techs, 0=none)
31 Picture number
32-3C unknown
The same array appears in the save game at offset 0x19A9B. For 67 leaders in total.