This is an old revision of the document!
Table of Contents
ZZT Enhancer's ZZT-OOP enhancements
This article is a stub. You can help by reverse-engineering things.
General principles
- ZZT Enhancer commands are prefixed with
']
. This makes regular ZZT see them as comments, due to the preceding apostrophe. Prefixing the ZZT Enhancer command with ' makes its parser also treat it as a comment.
Variables
TODO (potential names: lastmx
, lastmy
, songpos
, songrow
, songvol
, enhancer
, playerx
, playery
, playerdist
)
Commands
ne, sw, se, nw
TODO
tn, ts, te, tw
TODO
tne, tsw, tse, tnw
TODO
activate
Takes two arguments.
add
Takes two arguments.
addcstat
Takes five arguments.
allocscreen
Takes one argument.
becomeb
Takes two arguments.
becomeo
Takes five arguments.
bgfade
Takes four arguments.
blinkmode
Takes one argument.
border
Takes one argument.
changeb
Takes four arguments.
charedit
Takes three arguments.
charid
Takes two arguments.
chstr
Takes one argument.
color, colour
Takes one argument.
colorxy, colourxy
Takes three arguments.
cropscreen
Takes seven arguments.
defaultpal
Takes no arguments.
delete
Takes one argument.
dieitem
Takes no arguments.
divide
Takes two arguments.
dualfont
Takes no arguments.
dup
Takes three or four arguments.
enhance
TODO
enhancedlogo
Takes one argument.
eraseplayer
Takes no arguments.
extern
Takes between one and eight arguments.
externc
Takes between one and eight arguments.
freescreen
Takes no arguments.
freewav
Takes one argument.
global
Takes no arguments.
goto
Takes one argument.
if
Operators:
==
- equal!=
- not equal>=
- greater than or equal⇐
- smaller than or equal»
- greater than«
- smaller than
ifat
Takes four arguments.
ifbup
Takes two arguments.
ifoat
Takes six arguments.
ifoup
Takes four arguments.
jump
Takes two arguments.
keyvar
Takes two arguments.
keyvard
Takes one argument.
loadfont
Takes two arguments.
loadfontres
Takes two arguments.
loadpal
Takes one argument.
loadpalres
Takes one argument.
loadscreen
Takes one argument.
loadscreenres
Takes two arguments.
loadwav
Takes two arguments.
loadwavres
Takes two arguments.
lockplayer
Takes one argument.
mainfont
Takes one argument.
mod
Takes two arguments.
mousepoll
Takes one argument.
moveplayer
Takes two arguments.
moveplayerhere
Takes no arguments.
multiply
Takes two arguments.
playerchar
Takes one argument.
playercharn, playerchars, playerchare, playercharw
Takes one argument.
playercol
Takes one argument.
playsong
Takes no arguments.
playsongres
Takes one argument.
playwav
Takes five arguments.
putblock
Takes four arguments.
putcolor, putcolour
Takes three arguments.
putmes
Takes three arguments.
putobj
Takes seven arguments.
putobjup
Takes five arguments.
putsave
Takes five arguments.
puttext
Takes three arguments.
putval
Takes four arguments.
random
Takes two arugments.
rel
Takes the following types of arguments: player
, self
, or <x> <y>
.
restorescreen
Takes three arguments.
rgb
Takes four arguments.
savescreen
Takes five arguments.
scrollchar
Takes four arguments.
secfont
Takes one argument.
set
Takes two arguments.
setcoli
Takes two arguments.
setmusicvol
Takes one argument.
setpali
Takes one argument.
setsongpos
Takes one argument.
singlefont
Takes no arguments.
showpal
Takes no arguments.
statvar
Takes two arguments.
stopsong
Takes no arguments.
subtract
Takes two arguments.
teleport
Takes four arguments.
uneraseplayer
Takes two arguments.
unlockplayer
Takes no arguments.
varstat
Takes two arguments.
walk
Takes two arguments.
walkxy
Takes four arguments.
Variables
TODO