Jump to content


Photo

Simple Inventory Sorting


  • Please log in to reply
13 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 02 September 2012 - 03:30 PM

Inventory Sorting
-Tsukihime

Attached File  sort.JPG   56.18KB   733 downloads

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, 30 March 2016 - 10:22 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 TheSpicyWaffles

TheSpicyWaffles

    Newbie

  • Member
  • 7 posts

Posted 02 September 2012 - 04:30 PM

Thank you very much for this, Tsukihime. :]

#3 estriole

estriole

    Advanced Member

  • Member
  • 1999 posts
  • LocationIndonesia
  • RM Skill - Coder

Posted 02 September 2012 - 09:50 PM

a little question. is this compatible with yanfly item scene?

#4 trytobewinner

trytobewinner

    Newbie

  • Member
  • 9 posts

Posted 02 September 2012 - 10:00 PM

Make compatible with yanfly item menu system.
Good job

#5 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 03 September 2012 - 06:23 AM

a little question. is this compatible with yanfly item scene?


Don't know didn't try. But it sounds like it doesn't from above.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#6 Caveras

Caveras

    Advanced Member

  • Member
  • 565 posts
  • RM Skill - Designer

Posted 04 September 2012 - 12:53 AM

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

Hello there!

Here are some of my icon resources » http://www.rpgmakerv...apons-and-more/

Posted a new set on 16 June!


#7 Xandier

Xandier

    Advanced Member

  • Member
  • 35 posts

Posted 13 September 2012 - 01:22 PM

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".

#8 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 13 September 2012 - 01:25 PM

This script only adds the required logic to Scene_Item, and nothing else.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#9 Caveras

Caveras

    Advanced Member

  • Member
  • 565 posts
  • RM Skill - Designer

Posted 13 September 2012 - 03:04 PM

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.

Hello there!

Here are some of my icon resources » http://www.rpgmakerv...apons-and-more/

Posted a new set on 16 June!


#10 Xandier

Xandier

    Advanced Member

  • Member
  • 35 posts

Posted 13 September 2012 - 05:35 PM


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.

#11 Daemonium

Daemonium

    Advanced Member

  • Member
  • 104 posts
  • RM Skill - Jack of All Trades

Posted 16 March 2013 - 01:34 AM

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, 16 March 2013 - 01:35 AM.


#12 ricardo.jl.simoes

ricardo.jl.simoes

    Advanced Member

  • Member
  • 30 posts

Posted 26 June 2013 - 04:01 PM

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.



#13 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 26 June 2013 - 07:01 PM

I've fixed the issue.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#14 ricardo.jl.simoes

ricardo.jl.simoes

    Advanced Member

  • Member
  • 30 posts

Posted 27 June 2013 - 03:20 AM

wow you fixed it really fast. works perfectly now, thanks  :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users