DeHackEd / BEX Reference/Eternity Extension: SPRITES Block: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "In Ty Halderman's change log he noted that sprite, sound, and music renaming should be implemented as separate blocks. Up until now, it has only been possible to replace these st...")
 
No edit summary
 
Line 3: Line 3:
The SPRITES block can change the 4-letter prefix of any sprite type.
The SPRITES block can change the 4-letter prefix of any sprite type.
{{backto|DeHackEd / BEX Reference}}
{{backto|DeHackEd / BEX Reference}}
==[SPRITES]: Syntax==
==Syntax==
   [SPRITES]
   [SPRITES]
   <mnemonic> = <string>
   <mnemonic> = <string>

Latest revision as of 14:41, 3 March 2012

In Ty Halderman's change log he noted that sprite, sound, and music renaming should be implemented as separate blocks. Up until now, it has only been possible to replace these strings with the old DeHackEd-style text blocks, which are impractical to use and have limitations.

The SPRITES block can change the 4-letter prefix of any sprite type.

Back to DeHackEd / BEX Reference

Syntax[edit]

  [SPRITES]
  <mnemonic> = <string>

The <mnemonic> to use is the normal sprite name. That is, if you want to rename the sprite that's normally named TROO, you use the mnemonic TROO, even if TROO has already been changed to a new string. Changing the sprite names will not change their corresponding mnemonics.

<string> must be exactly 4 characters long, or the substitution will not occur.