Tsukihime

Simple Inventory Sorting

14 posts in this topic

Inventory Sorting

-Tsukihime

 

post-6060-0-62590000-1346621399_thumb.jpg

 

Provides very simple inventory sorting functionality.

You are encouraged to modify it to suit your own needs.

 

May update it later to have separate sorting options for specific categories (eg: highest atk for weapons, highest def for armors, ...)

 

Usage

 

When you select an item category, press the sort key (default: A) to bring up a sort window. Select an option to sort your list.

 

To add additional sorting options, write down the option in the Sort_Options hash, and then go down to the sort_list method in Window_ItemList and add a new case for your new option.

 

It is fairly straightforward to modify the script to change how the sorting should be displayed to the user.

 

Download

 

Script: Download here

Edited by Tsukihime
TheSpicyWaffles likes this

Share this post


Link to post
Share on other sites

It is. I also use the Categorize Item Scene script and everything works flawlessly. Fine lil' script, Tsuki!

 

I can get it working with Yanfly's item menu script, but I can't get it working with Categorize Item Scene. Did you do anyhting special to get it to work with Categorize Item Scene? Nothing happens when I press "A".

Share this post


Link to post
Share on other sites

I can get it working with Yanfly's item menu script, but I can't get it working with Categorize Item Scene. Did you do anyhting special to get it to work with Categorize Item Scene? Nothing happens when I press "A".

 

Not at all. I put the Categorize Item Scene script directly below YF's Item Menu, and the Sorting script directly below the other two. I even have my A key bound to Falcao's Tools script and everything works as it should.

Share this post


Link to post
Share on other sites

I can get it working with Yanfly's item menu script, but I can't get it working with Categorize Item Scene. Did you do anyhting special to get it to work with Categorize Item Scene? Nothing happens when I press "A".

 

Not at all. I put the Categorize Item Scene script directly below YF's Item Menu, and the Sorting script directly below the other two. I even have my A key bound to Falcao's Tools script and everything works as it should.

 

This actually fixed my problem thanks. I had YF Items First, then Item Sort, then order Categorize Items.

Share this post


Link to post
Share on other sites

The script is causing an error when I open the Inventory window using VE - Basic Module & Control Codes/Text, regardless of where I place it:

 

Script '1 VE - [any of the three]' line xxx: Runtime Error Occurred.
 
can't modify frozen string
  • Basic Module (using Basic Module and Control Text only) -> Line   1617: result.gsub!(/\r/) { "" }
  • Control Codes (using Basic Module, Control Text, and control Codes) -> Line   241: result.gsub!(/\\CR/i) { $game_temp.contro_code.to_s }

Is this an error caused with something on your script? I've never got that error with all other scripts.

 

Script that I'm using ("potential ones"):

  • VE - Basic Module
  • YSE - Core
  • YEA - Core
  • YEA - Menu Enhanced

PS: I haven't used any \code on your script nor in the... inventory scene?, if I remove your script I can access in the inventory with no issues. I'm not using any item categorizer (apart of your script feature)

Edited by Daemonium

Share this post


Link to post
Share on other sites

hey. tsukihime, I noticed a little bug with the script and it happens even with a clean project without any other script. After sorting items in the item menu, when we try to go to the equipment menu, the game crashes. However this only happens when we sort by alpha and reverse alpha. When I tried with descending and ascending amount it works fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.