Manual:Zone Manual/Appendices/Reserved keyword listing
Reserved keyword listing
These words are the field names and reset commands of the zone language. vmc reads them as keywords wherever they appear outside a string, so none of them can be used as the symbolic name of a room, object, NPC or zone. The list comes from the keyword table in the vmc source, vme/src/vmc/vmctok.h.
ability |
affect |
alignment |
applyf |
armour |
attack |
bits |
bright
|
capacity |
complete |
cost |
creators |
data |
default |
defensive |
descr
|
difficulty |
dilcopy |
door |
duration |
end |
equip |
exit |
exp
|
extra |
firstf |
flags |
follow |
gmap |
height |
help |
hit
|
id |
in |
inside_descr |
into |
key |
keyword |
lastf |
level
|
lifespan |
light |
link |
load |
local |
mana |
manipulate |
max
|
minv |
money |
movement |
names |
nop |
notes |
npcflags |
offensive
|
open |
outside_descr |
position |
purge |
race |
random |
remove |
rent
|
reset |
romflags |
sex |
special |
speed |
spell |
string |
tickf
|
time |
title |
to |
type |
value |
weapon |
weather |
weight
|
zonemax |
Besides these, vmc reserves:
- the section markers
%zone,%rooms,%objects,%mobiles,%dil,%resetand%end; null, anddilbegin, which starts a DIL program (see dilbegin).
Keywords are lowercase and vmc is case sensitive, but don't get round a keyword by changing its case: pick another name, such as exit_room. A keyword used as a name gives a syntax error that names it, here for a room called exit:
v: kwt.zon: 10: syntax error Token: 'exit' Grave errors in file 'kwt.zon'.
The same goes for the zone name: %zone door doesn't compile.
Inside DIL programs other words are reserved; see the DIL manual. And the macros of the header files you include (NORTH, WEAR_BODY, M_AVG_HUMAN ...) are replaced by the preprocessor before vmc sees them, so don't use those names either.