Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,005
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
812
Reaction score
1,386
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,005
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 Profile Posts

I've just finished organizing music files from a music Humble Bundle I purchased a while ago (putting in specific themed playlists, deleting from playlists, deciding which games they'll be used for. etc.). I'm feeling pretty confident that the sound design for my games will be up to high standards. Sound design seems to be relatively under-discussed as a topic in game development imo.
So I just got back from SeaWorld and I'm back to working on my game. I'm stuck on Shadowstar, mainly due to needing two more princesses... I have all the canon and toy princesses, plus Sunset Shimmer just for kicks. I decided not to include Cadence since this isn't in that era. But... I'm going to have to design two OCs now.
I'm completely missing on this site :kaodes: How's everybody doing lately?
3dlm3XK.jpg
I'm looking at/working through a simple game tutorial. Town, dungeon, boss; town, dungeon, boss; etc. (Thanks, Yanfly!) I'm itching to make something complex but experience (and past disappointment!) tell me to go slow and learn.

Rome certainly wasn't built in a day. 〜( ̄▽ ̄〜)
SF_People1_2 added!
index.php

Forum statistics

Threads
109,180
Messages
1,042,787
Members
141,676
Latest member
NiqNaq
Top