Author Topic: inventory item order  (Read 1762 times)

Offline petriomelony

  • Acquaintance
  • *
  • Posts: 34
    • View Profile
inventory item order
« on: December 06, 2007, 10:05:31 am »
is there any way to make it not so random?  every time i type "i" i get a different order of items... does anyone know which file should i look at if i want to make it say, chronological in the order they were obtained, or something?

Offline detah

  • BFF
  • ***
  • Posts: 190
  • Ruler of 2D
    • View Profile
Re: inventory item order
« Reply #1 on: December 06, 2007, 10:43:17 am »
Code: [Select]
sort_array(deep_inventory(this_player())->GetShort(), 1)
will crudely sort your inventory alphabetically. It works. But the adjectives and capitalization of some words looks bad.