Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
Basically this very short snippet allows you to show the skill and item list based on the order that you learned the skills (obtained items) instead of the default which uses the database ID to determine sort order.

Script:

class Game_Actor < Game_Battler  def skills    (@skills | added_skills).collect {|id| $data_skills[id] }  endendclass Game_Party < Game_Unitdef items    @items.keys.collect {|id| $data_items[id] }  end def weapons    @weapons.keys.collect {|id| $data_weapons[id] }  end   def armors    @armors.keys.collect {|id| $data_armors[id] }  endend
 

Notes:

 

Obviously really easy to do, so it's free for anyone. I just posted it since I think I saw someone asking about this some time ago and some people might need it.
 
Last edited by a moderator:

Probotector 200X

Probotect and Serve
Veteran
Joined
Mar 14, 2012
Messages
913
Reaction score
168
Primarily Uses
I like cool little scripts like this. This kind of script is perfect for me, because I cannot get a proper order that I like for items and skills.
 

Hakuzen

Villager
Member
Joined
May 19, 2014
Messages
5
Reaction score
2
First Language
English
Primarily Uses
Hello,

I'm trying to use this script with XP and it does not function. I'm assuming this was written for VX/Ace, and was wondering if there was an RMXP equivalent you know of? I would really like to order skills this way, and I haven't been able to find anyone else with a script that does this.
 

crbox

Warper
Member
Joined
Nov 15, 2014
Messages
3
Reaction score
0
First Language
english
Primarily Uses
Where do you put this? It isnt working for me (crashes when starting game)
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
819
Reaction score
1,435
First Language
English
Primarily Uses
N/A
Fixed script format, credit Adiktuzmiko.
Code:
class Game_Actor < Game_Battler
  def skills
    (@skills | added_skills).collect {|id| $data_skills[id] }
  end
end
class Game_Party < Game_Unit
  def items
    @items.keys.collect {|id| $data_items[id] }
  end
  def weapons
    @weapons.keys.collect {|id| $data_weapons[id] }
  end
  def armors
    @armors.keys.collect {|id| $data_armors[id] }
  end
end


Reverse order
Code:
class Game_Actor < Game_Battler
  def skills
    (@skills | added_skills).collect {|id| $data_skills[id] }
  end
end
class Game_Party < Game_Unit
  def items
    @items.keys.collect {|id| $data_items[id] }.reverse!
  end
  def weapons
    @weapons.keys.collect {|id| $data_weapons[id] }
  end
  def armors
    @armors.keys.collect {|id| $data_armors[id] }
  end
end
 
Last edited:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
Thanks.. forgot I had a script like this xD
 

vivivi91

My faith is for Lord Tachanka !
Member
Joined
Mar 18, 2016
Messages
1
Reaction score
0
First Language
Français/French
Primarily Uses
RMVXA
I have a issue :
Script 'Game_Interpreter' line 450: TypeError occurred.
can't convert String into integer

What can I do for this ? Do I have to change anything ?
(I use Fomar0153's Multiple Inventories)
 

Latest Threads

Latest Posts

Latest Profile Posts

just when I thought one of the greatest game of all time couldn't get any better, they announce a new dlc for it.
For anyone interested: there's another huge humble bundle with JRPG assets + a game jam starting next month - it's for a good cause, so check it out <3
Turning a specific vibe into reality is incredibly difficult. For instance, this song is one of the ones I listen to when working on my post apocalyptic project, and getting it's "feeling" into the game has been a real challenge.

I don't just wanna regurgitate the numbers I see, I wanna actually understand the calculations I'm making so I'm probably gonna make a post later with some calculations and what I THINK they mean to get some advice and corrections.

Edit: All (Most) of these will be tested in game prior. I just wanna make sure I understand what's going on under the hood if you will.
my girlfriend calls all my little chibi art cute lol... funny considering that wasn't the original art style of the game.

Forum statistics

Threads
113,778
Messages
1,077,362
Members
147,808
Latest member
traviscot
Top