Abbreviations
Aus EnigmaWiki
Available languages: Deutsch, English, Русский
This is a list of abbrevations used in Enigma. These alternative functions can make the code of your level shorter and easier to understand. However these listed functions should NOT be used anymore!
Warning: The listed functions cannot be considered as stable API. They may change in future versions.
Stone-spawner functions
bigbrick(x, y, connections)
Sets a st-bigbrick with the attribute connections=conn to the coordinates x,y.
Doorh(x,y,attrs)
Sets a st-doorh with the attributes attrs to the coordinates x,y.
Doorv(x,y,attrs)
Sets a st-doorv with the attributes attrs to the coordinates x,y.
fakeoxyd(x,y)
Sets a st-fakeoxyd to the coordinates x,y.
laser(x,y,is_on,dir)
Sets a st-laser to the coordinates x,y. If is_on is 1, the laser is turned on, if 0, isn't. dir gives the direction of the laser (0=w; 1=s; 2=e; 3=n).
mirror3(x,y,movable, transp, orient)
Sets a st-3mirror to the coordinates x,y. If movable is 1, the prism is moveable, if 0, isn't.
transp used to define the transparency of the block, can be 0(normal) and 1(transparent); orient used to set the direction of the prism(1=v; 2=<; 3=^; 4=>).
mirrorp(x,y,movable, transp, orient)
Sets a st-pmirror to the coordinates x,y. If movable is 1, the prism is moveable, if 0, isn't.
transp used to define the transparency of the block, can be 0(normal) and 1(transparent); orient used to set the direction of the prism(1=-; 2=\; 3=|; 4=/).
oneway(x,y,orient)
Sets a st-oneway with passing direction orient (0=w, 1=s; 2=e, 3=n) to the coordinates x,y.
oxyd(x,y)
Sets an st-oxyd to the coordinates
x,y.
puzzle(x, y, conn)
Sets a st-puzzle with the attribute connections=conn to the coordinates x,y.
puzzle2(x, y, conn)
Sets a st-puzzle2 with the attribute connections=conn to the coordinates x,y.
switch(x,y,target,action)
Sets a st-switch with the attributes target and action to the coordinates x,y.
Floor-spawner functions
abyss(x,y)
Sets an fl-abyss to the coordinates x,y.
Gradient( x, y, type )
Sets an fl-gradient type type to the coordinates x,y.
Item-spawner functions
hollow(x,y)
Sets a it-hollow to the coordinates x,y.
Document(x,y,t)
Sets a it-document with the text t to the coordinates x,y.
hammer(x,y)
Sets a it-hammer to the coordinates x,y.
dynamite(x,y)
Sets a it-dynamite to the coordinates x,y.
bomb(x,y)
Sets a it-bomb to the coordinates x,y.
keya(x,y) / keyb(x,y) / keyc(x,y)
Sets a it-bomb with keycode 1(if a) 2(if b) or 3(if c) to the coordinates x,y.
shogundot1(x,y,attrs) / shogundot2(x,y,attrs) / shogundot3(x,y,attrs)
Sets a [[Items#it-shogun-{l,m,s}|it-shogun-{l,m,s}]] to the coordinates x,y, with attributes attrs.
Wormhole(x,y,targetx, targety, attribs)
Sets a it-wormhole with attributes attrs to the coordinates x,y.
The other end of the wormhole can be set with targetx, targety.

