Skill/Item List based on Learn/Obtain order

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,696
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
906
Reaction score
166
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
635
Reaction score
1,074
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,696
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)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Yay! Got 3 new frying pans, its weird, but I'm so happy about it.
Yelp. I've discovered that I am one of those people who should not be drinking coffee. Took me a week detoxing off of coffee and switching to tea to realize how badly it was affecting me- and I've been drinking the stuff for years. Yikes!
I bought a gaiter with Meijer printed on it.

I'm still a Walmart worker, and I wore it today for work.
Trying out new carpet autotiles and I can't decide if it's working or not. Pixeling soft carpets is hard
It seems like this is going to be another remote semester. RIP.

Forum statistics

Threads
99,515
Messages
966,334
Members
131,146
Latest member
jakobhenerey309
Top