Gem

From Wiki of ZZT
Jump to navigation Jump to search
Gem
ZZT-OOP namegem
Internal ID7 (0x07)
Character#char 4 (0x04)
Categoryitem
Stats?no
Other traits
Effect on movementpushable, squishable
Destructible?yes
Uses ZZT-OOP color names?yes

The gem element is a collectible, multipurpose item.

Collecting a gem for the first time displays the message "Gems give you Health!", and then gives you a paltry 1 health. Since every built-in damage source in the game takes 10 health, it is common for many worlds to provide objects to disburse health instead.

Gems also increment the gem counter by 1 when collected. Unlike torches, ammo, or health, the player has no intrinsic means of expending gems. It is up the world designer to use ZZT-OOP to find a use for collected gems. Currency (for shops and other things) is one of the more common uses.

While gems are pushable, they cannot be directly pushed by the player since they are also collectable. If a player is to push a gem, then the gem must be behind a boulder or slider.

Gems give 10 points when collected, but zero points when shot or crushed.