Skip to content

Changing item appearance opcodes

Wizer13Wizer13 Member Posts: 65
Hi, I'm venturing further in the marvelous world on modding. To create items I decided to use tp2 commands to copy existing items or effects in order to keep the names and description written, since it was always getting deleted when I tried creating them with DLTCEP.

I know now how to name and change descriptions. But what is the correct coding to replace the item icon? That would be of great help. Thanks!

Comments

  • RaduzielRaduziel Member Posts: 4,714
    edited January 2018
    I think that it is...

    WRITE_LONG 0x003a ~INVENTORYICON.BAM~
    WRITE_LONG 0x0044 ~GROUNDICON.BAM~
    WRITE_LONG 0x0058 ~DESCRIPTIONICON.BAM~
    Those codes were taken from the IESDP Library.
  • Wizer13Wizer13 Member Posts: 65
    Thank you very much!
  • The user and all related content has been deleted.
  • RaduzielRaduziel Member Posts: 4,714
    @Wizer13 Well, I told I was uncertain

    @subtledoctor Living and learning. Thanks!
  • Wizer13Wizer13 Member Posts: 65
    Thank you both!
  • GwendolyneGwendolyne Member Posts: 461
    edited February 2018
    Raduziel said:

    I think that it is...


    WRITE_LONG 0x003a ~INVENTORYICON.BAM~
    WRITE_LONG 0x0044 ~GROUNDICON.BAM~
    WRITE_LONG 0x0058 ~DESCRIPTIONICON.BAM~
    Those codes were taken from the IESDP Library.

    You want to use WRITE_ASCII there, or possibly SAY. WRITE_LONG will only write 4 bytes of the 8 needed.

    The best way is:
    WRITE_ASCII 0x3a ~INVENTORYICON.BAM~ #8
    WRITE_ASCII 0x44 ~GROUNDICON.BAM~ #8
    WRITE_ASCII 0x58 ~DESCRIPTIONICON.BAM~ #8
    
    With #8 being the max length of the icons names. Very useful when you copy-patch an existing item, if the new icons names have less characters than the original ones (e.g. you want to replace IAMUL01 with MYAMUL: without #8, the resulting value in 0x3a would by MYAMUL1). ;)
Sign In or Register to comment.