FenixFyreX

Fire Deity
Veteran
Joined
Mar 1, 2012
Messages
434
Reaction score
310
First Language
English
Primarily Uses
Manual Item Sorting v1.0
FenixFyreX
Introduction
This script allows the player to manually sort items, weapons, armors, key items, and skills.

Screenshots
Not really applicable as you'd need to see it in action. Just put it in your project and try it out.

How to Use
1> Install the script below the default scripts and above Main.
2> Playtest, giving the player some items.
3> Open the item scene and select a category.
Select any item once to be able to switch with other items. Double select an item to use it like normal.

Demo
Not necessary.

Script
Version 1.0

Credit and Thanks
- FenixFyreX
 

Marcio

Roadrunner for Lighnting and Strike Detonator
Veteran
Joined
Jan 2, 2013
Messages
63
Reaction score
2
First Language
German
Primarily Uses
I'm on work right now, but this sounds very interesting. :)

I'll try it as soon as I arrive in home! :D
 

Nosleinad

Storyteller
Veteran
Joined
Dec 12, 2012
Messages
351
Reaction score
29
First Language
Portuguese
Primarily Uses
Hello Fenix, first of all thanks for another useful script.

The script is working as intended in the item scene, but i am also rearranging my skills in battle, which at least for me is nit very fun rsrsrs. Was this intended?
 

FenixFyreX

Fire Deity
Veteran
Joined
Mar 1, 2012
Messages
434
Reaction score
310
First Language
English
Primarily Uses
Yes, sorry. It was intended; my original ideas for this script originate from this thread and requester: Sort Menu Option


It was intended for any list in-game to be 'sortable'. I'm working on more sortable options like A-Z, Item/Skill type, etc.


If you would like a precedent / example of this in a 'real-life' game, just think of Final Fantasy style games; I remember in most of them I played you could rearrange your items / skills however you pleased.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
276
First Language
English
Primarily Uses
RMMV
A few possible sorting options: (being that the default is sorted by database ID)

  • Newer obtained items first [can apply to items/Weapon/Armor/Key Items]
  • Older obtained items first [can apply to items/Weapon/Armor/Key Items]
  • Let users pre-define an order set manually within a configuration section [can apply to items/Weapon/Armor/Key Items] *
  • Sort by equip type [applies to weapons/armors]
  • Sort by skill element
  • Sort by skill MP cost
  • Have compatibility with Extended Item Catagories script by Shadowmaster *
The ones marked with * would be of higher importance. What I mean by "pre-define" would be like

module Pre_define_sort#Pre-define list by database IDSort_Item[1, #HP Potion70, #Better HP Potion20, #MP Potion15, #Better MP Potion]This way if users have their databases unorganized, it won't mean that the default sorting is unorganized as well.
 
Last edited by a moderator:

twsauthor

Villager
Member
Joined
Aug 17, 2013
Messages
20
Reaction score
1
First Language
English
Primarily Uses
Hey Fenix, its me: from http://forums.rpgmakerweb.com/index.php?/topic/19146-sort-menu-option/#entry186201

I wanted to point out a minor oversight in your code that I managed to find and "fix".  Items automatically de-select after you swap them but skills did not. It doesn't de-select a skill after using it either, so if you're not paying attention, it will auto swap with the next skill you try to use,  This happens in both battles and from the menu,

The section marked with #'s is your original script. The other part is what I changed it to, simply copying and pasting the snippet under the "class Window_ItemList"

---------------------------------------

    class Window_SkillList

#      def process_ok
#        if (@bypass_switch_ids && (item.id == @bypass_index))
#          super
#        elsif (@bypass_switch_ids && (item.id != @bypass_index))
#          process_switch_order
#        elsif !@bypass_switch_ids
#          Sound.play_ok
#          @bypass_switch_ids = true
#          @bypass_index = item.id
#          refresh
#        end
#      end

     
       def process_ok
        if (@bypass_switch_ids && (item.id == @bypass_index))
          @bypass_switch_ids = @bypass_index = nil
          super
        elsif (@bypass_switch_ids && (item.id != @bypass_index))
          process_switch_order
        elsif !@bypass_switch_ids
          if item
            Sound.play_ok
            @bypass_switch_ids = true
            @bypass_index = item ? item.id : 0
            refresh
          else
            @bypass_switch_ids = @bypass_index = nil
            super
          end
        end
      end

------------------------------------

I dont know how to make posts in Spoilers so they're hidden :(

On a side note thank you again for the script. :)
 
Last edited by a moderator:

nazgul

Husband
Veteran
Joined
Jul 23, 2015
Messages
116
Reaction score
39
First Language
english
Primarily Uses
When I use this and the fix with Yanflys custom equip menu, I get this weird error if I try to equip an item.


https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/

Script 'Fenix Fyre Item sorting' ArgumentError occurred. comparison of NilClass with 0 failed. 

Basically what happens is its trying to make you double click the equipped items and it only single clicks and thus game over. is this easy to fix or are these scripts to incompatible?
 

Latest Threads

Latest Posts

Latest Profile Posts

Anybody know how to make an enemy have a line of sight? I'm trying to make Persona-like enemies.
zomboars.jpg

Concept art

Zomboars- main enemies in my story
mutant pigs addicted to beer
SF_People1_3 added!
index.php

I haven't been on here in forever wow(missed my forum birthday T-T). Anyways, I'm dabbling in BGMs, here's something I'm actually willing to share.

Forum statistics

Threads
109,203
Messages
1,043,022
Members
141,713
Latest member
Quincy_
Top