Manual:Zone Manual/Appendices/weapon definitions in values.h
weapon definitions in values.h
Weapons are numbered by the WPN_ constants. You use them in WEAPON_DEF(WPN_..., craftsmanship, magic bonus) for a weapon object, in attack WPN_... for an NPC's natural attack, and in WEAPON_TRANSFER. The numbers are defined in vme/include/values.h; the names, weapon groups and the other properties of each weapon (hands, speed, damage types) are in vme/etc/weapons.def. The tables below were made from these two files in November 2026; when in doubt, look there.
Weapon groups
The groups are defined in vme/include/vme.h. An NPC's weapon skills are set per group, e.g. weapon[WPN_SWORD] 50 or with MSET_WEAPON.
| Constant | Value | Name in weapons.def | Comment in the header |
|---|---|---|---|
WPN_ROOT |
0 | theory | Root of weapon tree |
WPN_AXE_HAM |
1 | category axe hammer | Axe/hammer category |
WPN_SWORD |
2 | category sword | Sword Category |
WPN_CLUB_MACE |
3 | category club mace | Club/Mace/Flail Category |
WPN_POLEARM |
4 | category polearm | Polearm category |
WPN_UNARMED |
5 | category natural | Natural attacks |
WPN_SPECIAL |
6 | category special | Special weapons |
Weapons
Many weapon names are aliases: they are defined as another weapon (e.g. WPN_KATANA is WPN_SCIMITAR), so an object made with them is that weapon in the game. Aliases are marked "same as".
vmc checks the numbers: a weapon object needs a weapon (7 or more, not a group), and an NPC's attack must lie between WPN_FIST (34) and WPN_CRUSH (124). So attack WPN_CRUSH_LARGE and attack WPN_CRUSH_HUGE stop the compile with FATAL: Illegal hand attack type 125. (or 126).
| Constant | Value | Name in weapons.def | Comment in the header |
|---|---|---|---|
WPN_BATTLE_AXE |
7 | battle axe | Two Handed Axe |
WPN_HAND_AXE |
8 | hand axe | One Handed Axe |
WPN_WAR_MATTOCK |
9 | war mattock | Two Handed mattock |
WPN_ADZE |
76 | adze mattock | One handed "mattock" |
WPN_WAR_MAUL |
54 | maul | Two handed hammer, maul, sledge hammer |
WPN_WAR_HAMMER |
10 | war hammer | One handed hammer, e.g. Mjolnir |
WPN_BATTLE_CLUB |
23 | battle club | Two handed club |
WPN_CLUB |
24 | club | One Handed club |
WPN_BATTLE_MACE |
21 | battle mace | Two Handed mace (crushing) |
WPN_MACE |
22 | mace | One Handed mace |
WPN_FLAIL |
26 | flail | Two handed (ball and chain) |
WPN_MORNING_STAR |
25 | morning star // A 1H flail with a morning star at the end, aka popular name | One handed (ball and chain). Fantasy weapon. often called (flail) morning star |
WPN_GREAT_SWORD |
11 | great sword | Two Handed Sword |
WPN_LONG_SWORD |
17 | long sword | One handed sword |
WPN_BROAD_SWORD |
16 | broad sword | 1H |
WPN_CLAYMORE |
53 | claymore | 2H |
WPN_SCIMITAR |
12 | scimitar | One handed, slim curved blade |
WPN_FALCHION |
14 | falchion | One handed, broad curved blade |
WPN_SHORT_SWORD |
19 | short sword | |
WPN_RAPIER |
18 | rapier | Pointy, piercing |
WPN_MAIN_GAUCHE |
73 | main gauche | |
WPN_STILETTO |
97 | stiletto | |
WPN_DAGGER |
20 | dagger | |
WPN_SICKLE |
31 | sickle | One handed, slashing |
WPN_HALBERD |
29 | halberd | Two handed polearm club (crush) |
WPN_BARDICHE |
30 | bardiche | Two handed polearm axe (slash) |
WPN_SCYTHE |
32 | scythe | Two handed (grim reaper) |
WPN_QUARTERSTAFF |
27 | quarterstaff | Two handed |
WPN_SPEAR |
28 | spear | Two handed Pole arm (pierce) |
WPN_JAVELIN |
85 | javelin | Mostly designed to be thrown |
WPN_TRIDENT |
33 | trident | |
WPN_LANCE |
49 | lance | |
WPN_BITE |
109 (same as WPN_BITE_MEDIUM) |
bite medium | |
WPN_STING |
114 (same as WPN_STING_MEDIUM) |
sting medium | |
WPN_CRUSH |
124 (same as WPN_CRUSH_MEDIUM) |
crush medium | |
WPN_FIST |
34 | fist | |
WPN_KICK |
35 | kick small | |
WPN_CLAW |
38 | claw small | |
WPN_KNEE |
55 | knee | |
WPN_ELBOW |
56 | elbow | |
WPN_KNUCKLES |
99 | brass knuckles | metal on your knuckles |
WPN_BOW |
42 | bow | Here down to Staff are Rangers Guild Jan 98 |
WPN_CROSSBOW |
43 | crossbow | |
WPN_SLING |
44 | sling | |
WPN_WHIP |
40 | whip | |
WPN_KICK_TINY |
102 | kick tiny | |
WPN_KICK_SMALL |
35 (same as WPN_KICK) |
kick small | This is also the humanoid kick practiced, naming issue |
WPN_KICK_MEDIUM |
104 | kick medium | |
WPN_KICK_LARGE |
105 | kick large | |
WPN_KICK_HUGE |
106 | kick huge | |
WPN_BITE_TINY |
107 | bite tiny | |
WPN_BITE_SMALL |
108 | bite small | |
WPN_BITE_MEDIUM |
109 | bite medium | |
WPN_BITE_LARGE |
110 | bite large | |
WPN_BITE_HUGE |
111 | bite huge | |
WPN_STING_TINY |
112 | sting tiny | |
WPN_STING_SMALL |
113 | sting small | |
WPN_STING_MEDIUM |
114 | sting medium | |
WPN_STING_LARGE |
115 | sting large | |
WPN_STING_HUGE |
116 | sting huge | |
WPN_CLAW_TINY |
117 | claw tiny | |
WPN_CLAW_SMALL |
38 (same as WPN_CLAW) |
claw small | This is also the humanoid claw practiced (assassins), naming issue |
WPN_CLAW_MEDIUM |
119 | claw medium | |
WPN_CLAW_LARGE |
120 | claw large | |
WPN_CLAW_HUGE |
121 | claw huge | |
WPN_CRUSH_TINY |
122 | crush tiny | |
WPN_CRUSH_SMALL |
123 | crush small | |
WPN_CRUSH_MEDIUM |
124 | crush medium | |
WPN_CRUSH_LARGE |
125 | crush large | |
WPN_CRUSH_HUGE |
126 | crush huge | |
WPN_LUCERN_HAMMER |
29 (same as WPN_HALBERD) |
halberd | |
WPN_KATANA |
12 (same as WPN_SCIMITAR) |
scimitar | |
WPN_WAKIZASHI |
12 (same as WPN_SCIMITAR) |
scimitar | |
WPN_NAGINATA |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_BASTARD_SWORD1 |
17 (same as WPN_LONG_SWORD) |
long sword | |
WPN_BASTARD_SWORD2 |
11 (same as WPN_GREAT_SWORD) |
great sword | |
WPN_HAND_HAMMER |
10 (same as WPN_WAR_HAMMER) |
war hammer | |
WPN_KOPESH |
8 (same as WPN_HAND_AXE) |
hand axe | |
WPN_FLAMBERGE |
11 (same as WPN_GREAT_SWORD) |
great sword | |
WPN_MACHETE |
19 (same as WPN_SHORT_SWORD) |
short sword | |
WPN_PIKE |
28 (same as WPN_SPEAR) |
spear | |
WPN_WAR_AXE |
7 (same as WPN_BATTLE_AXE) |
battle axe | |
WPN_GAFF |
85 (same as WPN_JAVELIN) |
javelin | |
WPN_CUTLASS |
97 (same as WPN_STILETTO) |
stiletto | |
WPN_GREAT_AXE |
7 (same as WPN_BATTLE_AXE) |
battle axe | |
WPN_SABER |
12 (same as WPN_SCIMITAR) |
scimitar | |
WPN_LOCHABER_AXE |
29 (same as WPN_HALBERD) |
halberd | |
WPN_BALL_CHAIN |
25 (same as WPN_MORNING_STAR) |
morning star // A 1H flail with a morning star at the end, aka popular name | |
WPN_FOOT_LANCE |
49 (same as WPN_LANCE) |
lance | |
WPN_POLE_AXE |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_DIRK |
20 (same as WPN_DAGGER) |
dagger | |
WPN_ICE_PICK |
8 (same as WPN_HAND_AXE) |
hand axe | |
WPN_RANSEUR |
28 (same as WPN_SPEAR) |
spear | |
WPN_TALWAR |
12 (same as WPN_SCIMITAR) |
scimitar | |
WPN_ESTOC |
17 (same as WPN_LONG_SWORD) |
long sword | |
WPN_VOULGE |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_FISH_SPINE |
17 (same as WPN_LONG_SWORD) |
long sword | |
WPN_SHOCK_LANCE |
49 (same as WPN_LANCE) |
lance | |
WPN_BILL_GUISARME |
29 (same as WPN_HALBERD) |
halberd | |
WPN_JEDDART_AXE |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_BEC_DE_CORBIN |
29 (same as WPN_HALBERD) |
halberd | |
WPN_FAUCHARD_FORK |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_SHAMSHIR |
12 (same as WPN_SCIMITAR) |
scimitar | |
WPN_SAPPARA |
17 (same as WPN_LONG_SWORD) |
long sword | |
WPN_POLE_CLEAVER |
30 (same as WPN_BARDICHE) |
bardiche | |
WPN_CROWBILL |
29 (same as WPN_HALBERD) |
halberd | |
WPN_CLEAVER |
8 (same as WPN_HAND_AXE) |
hand axe | |
WPN_MILITARY_FORK |
33 (same as WPN_TRIDENT) |
trident | |
WPN_FIGHTING_STAFF |
27 (same as WPN_QUARTERSTAFF) |
quarterstaff | |
WPN_STAFF |
27 (same as WPN_QUARTERSTAFF) |
quarterstaff |