Unit Ids

Listed bellow are the unit ids, group ids and line ids for all the units, buildings and Gaia objects available in the AoK:TC game engine. Group ids can be particularly useful when you need to test a group of facts such as how many knights and camels you have in order to determine whether it's worth while upgrading armour and attack.
For example:
Instead of

  (defrule
    (or
      (unit-type-count knight-line > 4)
      (unit-type-count camel-line > 4)
    )
    (can-research ri-plate-barding)
  =>
    (research ri-plate-barding)
    (disable-self)
  )

you can write instead

  (defrule
    (unit-type-count 912 > 4)
    (can-research ri-plate-barding)
  =>
    (research ri-plate-barding)
    (disable-self)
  )

The second version also has the advantage that it would include in the unit count units such as Cataphracts, Tarkans and War Elephants, etc.

It should be noted that the Gaia items with a unit description in red can only be counted using the cc-players-unit-type-count fact.

AI Group ID

Group Description

AI Line ID

Std AI Line Name

Line Description

Unit ID

Std AI Unit Name

Unit Description

900

Ranged Units

-299

archer-line

Archer Line

4

archer

Archer

900

Ranged Units

-299

archer-line

Archer Line

24

crossbowman

Crossbowman

900

Ranged Units

-299

archer-line

Archer Line

492

arbalest

Arbalest

900

Ranged Units

-295

spearman-line

Skirmisher Line

6

elite-skirmisher

Elite Skirmisher

900

Ranged Units

-295

spearman-line

Skirmisher Line

7

skirmisher

Skirmisher

900

Ranged Units

-280

chu-ko-nu-line

Chu Ko Nu Line

73

chu-ko-nu

Chu Ko Nu

900

Ranged Units

-280

chu-ko-nu-line

Chu Ko Nu Line

559

elite-chu-ko-nu

Elite Chu Ko Nu

900

Ranged Units

-277

longbowman-line

Longbowman Line

8

longbowman

Longbowman

900

Ranged Units

-277

longbowman-line

Longbowman Line

530

elite-longbowman

Elite Longbowman

900

Ranged Units

-266

plumed-archer-line

Plumed Archer Line

763

plumed-archer

Plumed Archer

900

Ranged Units

-266

plumed-archer-line

Plumed Archer Line

765

elite-plumed-archer

Elite Plumed Archer

900

Ranged Units

 

 

 

200

 

Robin Hood

900

Ranged Units

 

 

 

642

 

Lord de Graville

900

Ranged Units

 

 

 

686

 

Archers of the Eyes

901

Monument

 

 

 

826

 

Monument

902

Trade Cog

 

 

 

17

trade-cog

Trade Cog

903

Buildings

 

 

 

12

barracks

Barracks

903

Buildings

 

 

 

45

dock

Dock

903

Buildings

 

 

 

49

siege-workshop

Siege Workshop

903

Buildings

 

 

 

68

mill

Mill

903

Buildings

 

 

 

70

house

House

903

Buildings

 

 

 

82

castle

Castle

903

Buildings

 

 

 

84

market

Market

903

Buildings

 

 

 

87

archery-range

Archery Range

903

Buildings

 

 

 

101

stable

Stable

903

Buildings

 

 

 

103

blacksmith

Blacksmith

903

Buildings

 

 

 

104

monastery

Monastery

903

Buildings

 

 

 

109

town-center

Town Center

903

Buildings

 

 

 

110

 

Trade Workshop

903

Buildings

 

 

 

209

university

University

903

Buildings

 

 

 

276

wonder

Wonder

903

Buildings

 

 

 

562

lumber-camp

Lumber Camp

903

Buildings

 

 

 

584

mining-camp

Mining Camp

903

Buildings

 

 

 

598

outpost

Outpost

903

Buildings

 

 

 

599

 

Cathedral

903

Buildings

 

 

 

618

 

Town Center

903

Buildings

 

 

 

619

 

Town Center

903

Buildings

 

 

 

620

 

Town Center

903

Buildings

 

 

 

624

 

Pavilion

903

Buildings

 

 

 

625

 

Pavilion

903

Buildings

 

 

 

626

 

Pavilion

903

Buildings

 

 

 

655

 

Mosque

903

Buildings

 

 

 

689

 

Pyramid

903

Buildings

 

 

 

690

 

Dome of the Rock

903

Buildings

 

 

 

696

 

Great Pyramid

903

Buildings

 

 

 

712

 

Yurt

903

Buildings

 

 

 

713

 

Yurt

903

Buildings

 

 

 

714

 

Yurt

903

Buildings

 

 

 

715

 

Yurt

903

Buildings

 

 

 

716

 

Yurt

903

Buildings

 

 

 

717

 

Yurt

903

Buildings

 

 

 

718

 

Yurt

903

Buildings

 

 

 

719

 

Yurt

904

Villagers

83

villager

Villager

56

 

Male Fisherman

904

Villagers

83

villager

Villager

57

 

Female Fisherman

904

Villagers

83

villager

Villager

118

 

Male Builder

904

Villagers

83

villager

Villager

120

 

Male Forager

904

Villagers

83

villager

Villager

122

 

Male Hunter

904

Villagers

83

villager

Villager

123

 

Male Lumberjack

904

Villagers

83

villager

Villager

124

 

Male Stone Miner

904

Villagers

83

villager

Villager

156

 

Male Repairer

904

Villagers

83

villager

Villager

212

 

Female Builder

904

Villagers

83

villager

Villager

214

 

Male Farmer

904

Villagers

83

villager

Villager

216

 

Female Hunter

904

Villagers

83

villager

Villager

218

 

Female Lumberjack

904

Villagers

83

villager

Villager

220

 

Female Stone Miner

904

Villagers

83

villager

Villager

222

 

Female Repairer

904

Villagers

83

villager

Villager

259

 

Female Farmer

904

Villagers

83

villager

Villager

293

 

Female Idle Villager

904

Villagers

83

villager

Villager

354

 

Female Forager

904

Villagers

83

villager

Villager

579

 

Male Gold Miner

904

Villagers

83

villager

Villager

581

 

Female Gold Miner

904

Villagers

83

villager

Villager

590

 

Female Shepherd

904

Villagers

83

villager

Villager

592

 

Male Shepherd

905

Fishing Grounds Fish

 

 

 

53

 

Fish(Perch)

905

Fishing Grounds Fish

 

 

 

450

 

Great Fish(Marlin)

905

Fishing Grounds Fish

 

 

 

451

 

Great Fish(Marlin)

905

Fishing Grounds Fish

 

 

 

455

 

Fish(Dorado)

905

Fishing Grounds Fish

 

 

 

456

 

Fish(Salmon)

905

Fishing Grounds Fish

 

 

 

457

 

Fish(Tuna)

905

Fishing Grounds Fish

 

 

 

458

 

Fish(Snapper)

906

Infantry Units

-296

militiaman-line

Militia Line

74

militiaman

Militia

906

Infantry Units

-296

militiaman-line

Militia Line

75

man-at-arms

Man-at-arms

906

Infantry Units

-296

militiaman-line

Militia Line

77

long-swordsman

Long Swordman

906

Infantry Units

-296

militiaman-line

Militia Line

473

two-handed-swordsman

Two-Handed Swordman

906

Infantry Units

-296

militiaman-line

Militia Line

567

champion

Champion

906

Infantry Units

-295

spearman-line

Spearman Line

93

spearman

Spearman

906

Infantry Units

-295

spearman-line

Spearman Line

358

pikeman

Pikeman

906

Infantry Units

-295

spearman-line

Spearman Line

359

halberdier

Halberdier

906

Infantry Units

-282

berserk-line

Berserk Line

692

berserk

Berserk

906

Infantry Units

-282

berserk-line

Berserk Line

694

elite-berserk

Elite Berserk

906

Infantry Units

-279

huskarl-line

(Castle)Huskarl Line

41

huskarl

Huskarl (Castle)

906

Infantry Units

-279

huskarl-line

(Castle)Huskarl Line

555

elite-huskarl

Elite Huskarl (Castle)

906

Infantry Units

-274

samurai-line

Samurai Line

291

samurai

Samurai

906

Infantry Units

-274

samurai-line

Samurai Line

560

elite-samurai

Elite Samurai

906

Infantry Units

-273

teutonic-knight-line

Teutonic Knight Line

25

teutonic-knight

Teutonic Knight

906

Infantry Units

-273

teutonic-knight-line

Teutonic Knight Line

554

elite-teutonic-knight

Elite Teutonic Knight

906

Infantry Units

-272

throwing-axeman-line

Throwing Axeman Line

281

throwing-axeman

Throwing Axeman

906

Infantry Units

-272

throwing-axeman-line

Throwing Axeman Line

531

elite-throwing-axeman

Elite Throwing Axeman

906

Infantry Units

-269

woad-raider-line

Woad Raider Line

232

woad-raider

Woad Raider

906

Infantry Units

-269

woad-raider-line

Woad Raider Line

534

elite-woad-raider

Elite Woad Raider

906

Infantry Units

-268

jaguar-man-line

Jaguar Warrior Line

725

jaguar-man

Jaguar Warrior

906

Infantry Units

-268

jaguar-man-line

Jaguar Warrior Line

726

elite-jaguar-man

Elite Jaguar Warrior

906

Infantry Units

-267

eagle-warrior-line

Eagle Warrior Line

751

eagle-warrior

Eagle Warrior

906

Infantry Units

-267

eagle-warrior-line

Eagle Warrior Line

752

elite-eagle-warrior

Elite Eagle Warrior

906

Infantry Units

 

 

 

164

 

Sheriff of Nottingham

906

Infantry Units

 

 

 

165

 

Charlemagne

906

Infantry Units

 

 

 

168

 

Theodoric the Goth

906

Infantry Units

 

 

 

169

 

Aethelfirth

906

Infantry Units

 

 

 

170

 

Siegfried

906

Infantry Units

 

 

 

171

 

Erik the Red

906

Infantry Units

 

 

 

173

 

King Arthur

906

Infantry Units

 

 

 

195

 

Kitabatake

906

Infantry Units

 

 

 

196

 

Minamoto

906

Infantry Units

 

 

 

198

 

El Cid

906

Infantry Units

 

 

 

424

 

Charles Martel

906

Infantry Units

 

 

 

426

 

Harald Hardraade

906

Infantry Units

 

 

 

428

 

Hrolf the Ganger

906

Infantry Units

 

 

 

430

 

Joan the Maid

906

Infantry Units

 

 

 

432

 

William Wallace

906

Infantry Units

 

 

 

640

 

La Hire

906

Infantry Units

 

 

 

759

 

Huskarl (Barracks)

906

Infantry Units

 

 

 

761

 

Elite Huskarl (Barracks)

906

Infantry Units

 

 

 

783

 

Scythian Wild Woman

906

Infantry Units

 

 

 

845

 

Nobunaga

907

Forage

 

 

 

59

 

Forage Bush

908

Stone

 

 

 

102

 

Stone Mine

909

Tame Animals

 

 

 

65

 

Deer

909

Tame Animals

 

 

 

835

 

Wild Horse

910

Wild Animals

 

 

 

48

 

Wild Boar

910

Wild Animals

 

 

 

89

 

Dire Wolf

910

Wild Animals

 

 

 

126

 

Wolf

910

Wild Animals

 

 

 

202

 

Rabid Wolf

910

Wild Animals

 

 

 

700

 

Hunting Wolf

910

Invalid

 

 

 

707

 

Ornlu the Wolf

910

Wild Animals

 

 

 

810

 

Iron Boar

910

Wild Animals

 

 

 

812

 

Jaguar

910

Wild Animals

 

 

 

822

 

Javelina

910

Wild Animals

 

 

 

860

 

Furious the Monkey Boy

912

Cavalry Units

-288

camel-line

Camel Line

329

camel

Camel

912

Cavalry Units

-288

camel-line

Camel Line

330

heavy-camel

Heavy Camel

912

Cavalry Units

-287

knight-line

Knight Line

38

knight

Knight

912

Cavalry Units

-287

knight-line

Knight Line

283

cavalier

Cavalier

912

Cavalry Units

-287

knight-line

Knight Line

569

paladin

Paladin

912

Cavalry Units

-286

scout-cavalry-line

Scout Cavalry Line

441

hussar

Hussar

912

Cavalry Units

-286

scout-cavalry-line

Scout Cavalry Line

546

light-cavalry

Light Cavalry

912

Cavalry Units

-281

cataphract-line

Cataphract Line

40

cataphract

Cataphract

912

Cavalry Units

-281

cataphract-line

Cataphract Line

553

elite-cataphract

Elite Cataphract

912

Cavalry Units

-276

mameluke-line

Mameluke Line

282

mameluke

Mameluke

912

Cavalry Units

-276

mameluke-line

Mameluke Line

556

elite-mameluke

Elite Mameluke

912

Cavalry Units

-271

war-elephant-line

War Elephant Line

239

war-elephant

War Elephant

912

Cavalry Units

-271

war-elephant-line

War Elephant Line

558

elite-war-elephant

Elite War Elephant

912

Cavalry Units

-265

tarkan-line

Tarkan Line

755

tarkan

Tarkan

912

Cavalry Units

-265

tarkan-line

Tarkan Line

757

elite-tarkan

Elite Tarkan

912

Cavalry Units

 

 

 

160

 

Richard the Lionhearted

912

Cavalry Units

 

 

 

161

 

The Black Prince

912

Cavalry Units

 

 

 

166

 

Roland

912

Cavalry Units

 

 

 

167

 

Belisarius

912

Cavalry Units

 

 

 

174

 

Lancelot

912

Cavalry Units

 

 

 

175

 

Gawain

912

Cavalry Units

 

 

 

176

 

Mordred

912

Cavalry Units

 

 

 

197

 

Alexander Nevski

912

Cavalry Units

 

 

 

629

 

Joan of Arc

912

Cavalry Units

 

 

 

632

 

Frankish Paladin

912

Cavalry Units

 

 

 

634

 

Sieur de Metz

912

Cavalry Units

 

 

 

636

 

Sieur Bertrand

912

Cavalry Units

 

 

 

638

 

Duke D'Alen_on

912

Cavalry Units

 

 

 

646

 

Constable Richemont

912

Cavalry Units

 

 

 

648

 

Guy Josselyne

912

Cavalry Units

 

 

 

652

 

Sir John Fastolf

912

Cavalry Units

 

 

 

678

 

Reynald de Chatillon

912

Cavalry Units

 

 

 

680

 

Master of the Templar

912

Cavalry Units

 

 

 

702

 

Kushluk

912

Cavalry Units

 

 

 

777

 

Attila the Hun

912

Cavalry Units

 

 

 

779

 

Bleda the Hun

912

Cavalry Units

 

 

 

824

 

El Cid Campeador

912

Cavalry Units

 

 

 

847

 

Henry V

912

Cavalry Units

 

 

 

849

 

William the Conqueror

912

Cavalry Units

 

 

 

852

 

Scythian Scout

913

Siege Units

-291

battering-ram-line

Battering Ram Line

35

battering-ram

Battering Ram

913

Siege Units

-291

battering-ram-line

Battering Ram Line

422

capped-ram

Capped Ram

913

Siege Units

-291

battering-ram-line

Battering Ram Line

548

siege-ram

Siege Ram

913

Siege Units

-290

mangonel-line

Mangonel Line

280

mangonel

Mangonel

913

Siege Units

-290

mangonel-line

Mangonel Line

550

onager

Onager

913

Siege Units

-290

mangonel-line

Mangonel Line

588

siege-onager

Siege Onager

913

Siege Units

 

 

 

36

bombard-cannon

Bombard Cannon

913

Siege Units

 

 

 

644

 

Jean de Lorrain

913

Siege Units

 

 

 

650

 

Jean Bureau

913

Siege Units

 

 

 

748

 

COBRA

915

Gaia Effects/Tree group

 

 

 

284

 

Tree TD

915

Gaia Effects/Tree group

 

 

 

348

 

Bamboo Forest Tree

915

Gaia Effects/Tree group

 

 

 

350

 

Pine Forest Tree

915

Gaia Effects/Tree group

 

 

 

351

 

Palm Forest Tree

915

Gaia Effects/Tree group

 

 

 

394

 

Oak Forest Tree

915

Gaia Effects/Tree group

 

 

 

399

 

Tree A

915

Gaia Effects/Tree group

 

 

 

400

 

Tree B

915

Gaia Effects/Tree group

 

 

 

401

 

Tree C

915

Gaia Effects/Tree group

 

 

 

402

 

Tree D

915

Gaia Effects/Tree group

 

 

 

403

 

Tree E

915

Gaia Effects/Tree group

 

 

 

404

 

Tree F

915

Gaia Effects/Tree group

 

 

 

405

 

Tree G

915

Gaia Effects/Tree group

 

 

 

406

 

Tree H

915

Gaia Effects/Tree group

 

 

 

407

 

Tree I

915

Gaia Effects/Tree group

 

 

 

408

 

Tree J

915

Gaia Effects/Tree group

 

 

 

409

 

Tree K

915

Gaia Effects/Tree group

 

 

 

410

 

Tree L

915

Gaia Effects/Tree group

 

 

 

411

 

Forest Tree

915

Gaia Effects/Tree group

 

 

 

413

 

Snow Pine Tree

915

Gaia Effects/Tree group

 

 

 

414

 

Jungle Tree

915

Gaia Effects/Tree group

 

 

 

723

 

Crater

918

Monk Units

 

 

 

125

monk

Monk

918

Monk Units

 

 

 

163

 

Friar Tuck

918

Monk Units

 

 

 

177

 

Archbishop

918

Monk Units

 

 

 

775

missionary

Missionary

918

Monk Units

 

 

 

781

 

Pope Leo I

918

Monk Units

 

 

 

842

 

Imam

919

Trade Carts

 

 

 

128

trade-cart

Trade Cart(unpacked)

919

Trade Carts

 

 

 

204

 

Trade Cart(packed)

919

Trade Carts

 

 

 

733

 

Emperor in a Barrel

920

Transport Ship

 

 

 

545

transport-ship

Transport Ship

921

Civilian Boat

 

 

 

13

fishing-ship

Fishing Boat

922

Military Boats

-294

demolition-ship-line

Demolition Ship Line

527

demolition-ship

Demolition Ship

922

Military Boats

-294

demolition-ship-line

Demolition Ship Line

528

heavy-demolition-ship

Heavy Demolition Ship

922

Military Boats

-293

fire-ship-line

Fire Ship

529

fire-ship

Fire Ship

922

Military Boats

-293

fire-ship-line

Fire Ship

532

fast-fire-ship

Fast Fire Ship

922

Military Boats

-292

galley-line

Galley Line

21

war-galley

War Galley

922

Military Boats

-292

galley-line

Galley Line

442

galleon

Galleon

922

Military Boats

-292

galley-line

Galley Line

539

galley

Galley

922

Military Boats

-285

cannon-galleon-line

Cannon Galleon Line

420

cannon-galleon

Cannon Galleon

922

Military Boats

-285

cannon-galleon-line

Cannon Galleon Line

691

elite-cannon-galleon

Elite Cannon Galleon

922

Military Boats

-284

longboat-line

Longboat Line

250

longboat

Longboat

922

Military Boats

-284

longboat-line

Longboat Line

533

elite-longboat

Elite Longboat

922

Military Boats

-283

turtle-ship-line

Turtle Ship Line

831

turtle-ship

Turtle Ship

922

Military Boats

-283

turtle-ship-line

Turtle Ship Line

832

elite-turtle-ship

Elite Turtle Ship

922

Military Boats

 

 

 

706

 

Saboteur

922

Military Boats

 

 

 

844

 

Admiral Yi Sun-shin

923

Conquistador

-264

conquistador-line

Conquistador Line

771

conquistador

Conquistador

923

Conquistador

-264

conquistador-line

Conquistador Line

773

elite-conquistador

Elite Conquistador

927

Walls

-399

stone-wall-line

Stone Wall Line

117

stone-wall

Stone Wall

927

Walls

-399

stone-wall-line

Stone Wall Line

155

fortified-wall

Fortified Wall

927

Walls

 

 

 

72

palisade-wall

Palisade Wall

932

Gold

 

 

 

66

 

Gold Mine

933

Shore Fish

 

 

 

69

 

Shore Fish

935

Petard

 

 

 

440

petard

Petard

936

Cavalry Archer Units

-298

cavalry-archer-line

Cavalry Archer Line

39

cavalry-archer

Cavalry Archer

936

Cavalry Archer Units

-298

cavalry-archer-line

Cavalry Archer Line

474

heavy-cavalry-archer

Heavy Cavalry Archer

936

Cavalry Archer Units

-275

mangudai-line

Mangudai Line

11

mangudai

Mangudai

936

Cavalry Archer Units

-275

mangudai-line

Mangudai Line

561

elite-mangudai

Elite Mangudai

936

Cavalry Archer Units

-270

war-wagon-line

War Wagon Line

827

war-wagon

War Wagon

936

Cavalry Archer Units

-270

war-wagon-line

War Wagon Line

829

elite-war-wagon

Elite War Wagon

936

Cavalry Archer Units

 

 

 

172

 

Tamerlane

936

Cavalry Archer Units

 

 

 

583

 

Genitour

936

Cavalry Archer Units

 

 

 

596

 

Elite Genitour

936

Cavalry Archer Units

 

 

 

698

 

Subotai

936

Cavalry Archer Units

 

 

 

731

 

Genghis Khan

939

Gates

81

 

Gate(Upward-Sloping)

64

 

Closed Gate(Upward-Sloping)

939

Gates

81

 

Gate(Upward-Sloping)

78

 

Opened Gate(Upward-Sloping)

939

Gates

95

 

Gate(Downward-Sloping)

88

 

Closed Gate(Downward-Sloping)

939

Gates

95

 

Gate(Downward-Sloping)

91

 

Opened Gate(Downward-Sloping)

939

Gates

663

 

Gate(Horizontal)

659

 

Closed Gate(Horizontal)

939

Gates

663

 

Gate(Horizontal)

661

 

Opened Gate(Horizontal)

939

Gates

671

 

Gate(Vertical)

667

 

Closed Gate(Vertical)

939

Gates

671

 

Gate(Vertical)

669

 

Opened Gate(Vertical)

942

Relics

 

 

 

285

 

Relic

942

Relics

 

 

 

688

 

Piece of the True Cross

943

Monk with Relic

 

 

 

286

 

Monk with Relic

944

Gunpowder Units

-278

janissary-line

Janissary Line

46

janissary

Janissary

944

Gunpowder Units

-278

janissary-line

Janissary Line

557

elite-janissary

Elite Janissary

944

Gunpowder Units

 

 

 

5

hand-cannoneer

Hand Cannoneer

947

Scouting Cavalry Units

-286

scout-cavalry-line

Scout Cavalry Line

448

scout-cavalry

Scout Cavalry

949

Farming Objects

 

 

 

50

farm

Farm

949

Farming Objects

 

 

 

199

fish-trap

Fish Trap

951

Trebuchets - Packed

 

 

 

331

trebuchet

Trebuchet(Packed)

951

Trebuchets - Packed

 

 

 

729

 

God's own Sling(Packed)

951

Trebuchets - Packed

 

 

 

730

 

Bad Neighbor(Packed)

952

Towers

-398

watch-tower-line

Watch Tower Line

79

watch-tower

Watch Tower

952

Invalid

-398

 

 

234

guard-tower

Guard Tower

952

Invalid

-398

 

 

235

keep

Keep

952

Towers

 

 

 

236

bombard-tower

Bombard Tower

952

Towers

 

 

 

684

 

The Accursed Tower

952

Towers

 

 

 

685

 

The Tower of Files

954

Trebuchets - Unpacked

 

 

 

42

 

Trebuchet(Unpacked)

954

Trebuchets - Unpacked

 

 

 

682

 

Bad Neighbor(Unpacked)

954

Trebuchets - Unpacked

 

 

 

683

 

God's own Sling(Unpacked)

955

Scorpion Line

-289

scorpion-line

Scorpion Line

279

scorpion

Scorpion

955

Scorpion Line

-289

scorpion-line

Scorpion Line

542

heavy-scorpion

Heavy Scorpion

958

Domestic Animals

 

 

 

594

 

Sheep

958

Domestic Animals

 

 

 

833

 

Turkey

959

King Units

 

 

 

434

 

King

959

King Units

 

 

 

704

 

Shah

959

King Units

 

 

 

838

 

King Sancho

959

King Units

 

 

 

840

 

King Alfonso

961

Horse

 

 

 

814

 

Horse