Jump to content

tibicina

Members
  • Posts

    262
  • Joined

  • Last visited

Posts posted by tibicina

  1. Yes. That space where the bent book opens to reveal that "hole". You're exactly right. There's not a good word for that hole that appears when an old book is opened, but if the book is big enough, quite a lot can fit in there.

    On the earlier comment: Agree fully that I intended "Aren't you the lucky one then..." to be meant as "Aren't you fortunate not to have this problem ([that we are discussing]?" 

  2. Since ToBEx no longer restricts ony 255 kits, the code snippet:

    WRITE_SHORT 0x244 0 // doesn't change
      WRITE_BYTE  0x246 ~%A#SHAR%~ // the internal name of your kit, surrounded by %
      WRITE_BYTE  0x247 0x40 // doesn't change
    will fail for any kits added by ADD_KIT that happen to have a serial number >255 (because BYTEs)

     

    How about changing it to something more dynamic like:

    SET x = IDS_OF_SYMBOL(~kit~ ~A#SHAR~) // the internal name of your kit
      SET y = x / 0x10000 // doesn't change
      SET z = x & 0xFFFF // doesn't change
      WRITE_SHORT 0x244 ~%y%~ // doesn't change
      WRITE_SHORT 0x246 ~%z%~ // doesn't change
    Preserves the old functionality while allowing kit values >255 :cheers:

     

    EDIT: Wisp provided a much more elegant solution here

    WRITE_LONG 0x244 (A#SHAR + 0x4000) << 16 // the internal name of your kit

     

    OMG! This solved the invalid argument error I was having trying to install a new kit to a newly installed NPC. Thank you!!!

×
×
  • Create New...