Cheats: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Created the cheats page.)
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ZZT has a number of hidden cheat codes accessible by holding SHIFT and press ? to bring up a text-box in the upper-right corner.
ZZT has a number of hidden '''cheat codes''' accessible by holding SHIFT and press ? to bring up a text-box in the upper-right corner.


Give all keys               keys
{| class="wikitable"
Clears the flag 'flagname'  -flagname
! Cheat !! Effect
Sets the flag 'flagname'    +flagname
|-
Darken level                +DARK
| ammo || Gives 5 ammo.
Un-darken level            -DARK
|-
Debug mode off              -debug
| gems || Gives 5 health
Debug mode on              +debug
|-
Give 3 torches              TORCHES
| health || Gives 50 health.
Give 5 ammo                AMMO
|-
Give 5 gems                GEMS
| keys || Gives all 7 colors of keys.
Give 50 health              HEALTH
|-
Removes anything within 1 square ZAP
| time || Gives 30 extra seconds (for timed boards).
|-
| torches || Gives 3 torches.
|-
| zap || Destroys all 4 spaces surrounding the player.
|-
| dark || Darkens the room.
|-
| -dark || Undarkens the room (ZZT 3.2 only). Also clears the "dark" flag if one exists.
|-
| -[flagname] || Clear a [[flag]].
|-
| +[flagname] || Sets a flag.
|}


'''Be warned that setting/clearing flags and ZAP-ing may break a game world and render that savegame useless.'''
Some of these cheats may be dangerous (particularly ZAP, which can destroy critical objects, passages, board edges, etc.), and some worlds may have anti-cheat mechanisms in place. Use with caution.


The ZAP command is particularly dangerous as it permanently removes '''anything''' within 1 square in each of the [[cardinal directions]] and replace it with an empty space. You can easily ZAP an object containing code disguised as scenery  or a part of a wall.
Some ZZT worlds are designed for the player to use the '''-[flagname]''' or '''+[flagname]''' cheats to activate certain features, such as '''+i''' to bring up a custom inventory.

Latest revision as of 02:01, 24 December 2025

ZZT has a number of hidden cheat codes accessible by holding SHIFT and press ? to bring up a text-box in the upper-right corner.

Cheat Effect
ammo Gives 5 ammo.
gems Gives 5 health
health Gives 50 health.
keys Gives all 7 colors of keys.
time Gives 30 extra seconds (for timed boards).
torches Gives 3 torches.
zap Destroys all 4 spaces surrounding the player.
dark Darkens the room.
-dark Undarkens the room (ZZT 3.2 only). Also clears the "dark" flag if one exists.
-[flagname] Clear a flag.
+[flagname] Sets a flag.

Some of these cheats may be dangerous (particularly ZAP, which can destroy critical objects, passages, board edges, etc.), and some worlds may have anti-cheat mechanisms in place. Use with caution.

Some ZZT worlds are designed for the player to use the -[flagname] or +[flagname] cheats to activate certain features, such as +i to bring up a custom inventory.