Tempus Script Reference

A look-up reference for the Tempus scripting language. Each built-in has its own page describing what it does, what it takes, what it returns, and how it behaves, with worked examples and links to related built-ins and concepts.

This manual is task-oriented: it answers "what does this do and how do I use it?" For the precise, normative definition of the language — grammar, the exact rules that make a script correct or incorrect — see the language specification. Where the two differ in emphasis, the specification is authoritative on correctness; this reference is the place to look things up.

How to read a built-in page

Each page opens with a signature line, for example:

oload <vnum> [target] [max]

The notation is:

Argument and result types (int, string, bool, creature, object, room, iterable, block, and so on) are described in Types.

Concepts

Start here for the shape of the language. Built-in pages link back to these.

Built-in functions

Predicates (yield a bool)

abbrev · cansee · exists · hastag · isabbrev · isfighting · isholding · ismob · isnull · isobj · isplayer · iswearing · keyword · location · random · streqi

Entity queries and accessors

alignment · carrier · class · gen · he · him · his · hour · level · moonphase · name · position · room · vnum

Collection producers (yield an iterable)

alias · contents · creatures · equipment · fighting · implants · inventory · list · objects · people · tattoos · words

Iterable consumers

choose · count · each · empty · every · first · hasabbrev · ismember · nth · select · slice · some

Math, string, and conversion

int · lower · randrange · substr · upper

(The arithmetic, comparison, and logical operators are documented together in Operators.)

Prototype retrieval

mob · object

Action commands (act for their effect, yield null)

award · damage · do · doorexit · doorset · driveto · echo · emit · force · giveexp · ldesc · mload · mobflag · oload · opurge · selfpurge · silently · spell · stepto · tag · trans · untag · walkto