zxt:extension:0000a51e:0001
This is an old revision of the document!
Table of Contents
0000a51e:0001 - #dieitem [DRAFT]
Flags
Flag | Set? (MUST/MAY/…) | Description |
---|---|---|
parsing_must | MUST NOT | |
reading_must | MUST NOT | |
writing_must | MUST NOT | |
playing_should | MAY | |
playing_must | MAY | |
editing_should | MUST NOT |
Field data
None.
Description
This extension adds an OOP command called #DIEITEM
, the behaviour of which is defined as such:
- Perform the logic of the
#DIE
command, - Put the player stat in the position of the stat being removed.
While the intent is for collectibles, the side effects allow for quirky usage of #DIEITEM
as a player teleporter.
Example usage
@Pony #end :touch You found a pony! #set pony #dieitem
Unanswered questions
- Wouldn't
#DIE ITEM
be better, as an augment to#DIE
? This way, compatibility with ZZT 3.2 is much easier…
Implementations
TBD
zxt/extension/0000a51e/0001.1625265076.txt.gz · Last modified: 2021/07/02 22:31 by asie