User Tools

Site Tools


zxt:extension:0000a51e:0001

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zxt:extension:0000a51e:0001 [2021/07/02 22:31] asiezxt:extension:0000a51e:0001 [2021/07/03 07:00] (current) asie
Line 1: Line 1:
 {{tag>zxt:extension}} {{tag>zxt:extension}}
  
-====== 0000a51e:0001 - #dieitem [DRAFT] ======+====== 0000a51e:0001 - #die item [DRAFT] ======
  
 ===== Flags ===== ===== Flags =====
Line 19: Line 19:
 ===== Description ===== ===== Description =====
  
-This extension adds an OOP command called ''#DIEITEM'', the behaviour of which is defined as such:+This extension extends the OOP command ''#DIE'' with an argument: ''#DIE ITEM'', the behaviour of which is defined as such:
  
   * Perform the logic of the ''#DIE'' command,   * Perform the logic of the ''#DIE'' command,
   * Put the player stat in the position of the stat being removed.   * 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.+While the intent is for collectibles, the side effects allow for quirky usage of ''#DIE ITEM'' as a player teleporter.
  
 ==== Example usage ==== ==== Example usage ====
Line 34: Line 34:
 You found a pony! You found a pony!
 #set pony #set pony
-#dieitem+#die item
 </code> </code>
- 
-===== Unanswered questions ===== 
- 
-  * Wouldn't ''#DIE ITEM'' be better, as an augment to ''#DIE''? This way, compatibility with ZZT 3.2 is much easier...  
  
 ===== Implementations ===== ===== Implementations =====
  
 TBD TBD
zxt/extension/0000a51e/0001.1625265076.txt.gz · Last modified: 2021/07/02 22:31 by asie