LPMuds.net

Lib Discussion => Dead Souls Support => Topic started by: petriomelony on December 06, 2007, 10:05:31 am

Title: inventory item order
Post by: petriomelony 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?
Title: Re: inventory item order
Post by: detah on December 06, 2007, 10:43:17 am
This
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.

-Detah