Jump to content
Sign in to follow this  
Tsukihime

Skill Categories

Recommended Posts

Skill Categories

Author: Tsukihime

 

Overview

 

This script allows you to define skill groups based on skill type IDs.

For example, "Black Magic" might consist of "fire", "ice", and "lightning".

 

Some people might be able to use "black magic", whereas others can only use fire.

Rather than displaying 3 separate commands for each type of magic, you can use a skill type category to specify that all fire, ice, and lightning magic should be grouped under "Black Magic"

 

Features

  • Displays different lists of skills under the same list
  • Supports recursively defined relationships
  • Assign multiple skill type IDs to a single skill
  • Provides finer management over your skills
Screenshots

 

Skill group containing fire, ice, and lightning

 

gW1VT.jpg

 

Individual groups for each skill type

 

 

 

PR96U.jpg

 

ruMP1.jpg

 

 

 

Usage

 

Define a set of skill types in your database (terms --> skill types)

 

In the configuration at the top of the script, just write which skill type contains what other skill types.

Stype_Table = {
2 => [3, 4, 5],
8 => [6, 7]
}
The first entry means that skill type 2 contains skill types 3, 4, and 5. In the screenshots above, "Magic" was skill type 2, and fire/ice/lightning are 3/4/5.

 

To assign multiple skill type ID's to a single skill, tag the skill with

<stype: 1,2,3,4>
For whichever skill type IDs you want.

Download

 

Get it at Hime Works!

 

Notes

 

When I say recursively defined relationships, I mean like

1 => [2,3]
2 => [4]
3 => [5]
This means that if you can use 1, then you can automatically use 2, 3, 4, and 5 as well because they are all part of the same tree. Edited by Tsukihime

Share this post


Link to post
Share on other sites

I seriously don't know how you keep this up Tsukihime, it's like every time I check the forums you post a new script.

 

Cool script, I might just check it out, :)

Share this post


Link to post
Share on other sites

I seriously don't know how you keep this up Tsukihime, it's like every time I check the forums you post a new script.

 

Cool script, I might just check it out, :)

 

This is true. Good work. I don't see how I would use this script, but I can see how others may. GJ.

Share this post


Link to post
Share on other sites

I've added multiple skill types to the script, in case people want the same skill to appear under multiple lists.

Instructions at the top. Just a notetag.

 

The actual logic itself was one line of code to show the skills and 10 lines to build the table. It's probably the shortest piece of code I've written to accomplish something non-trivial.

Share this post


Link to post
Share on other sites

This is a great script, I really like it.

 

I hate to do this, I have a bit of a request... I have a script where enemies can fight alongside you. This script doesn't work with them, in the sense that their skills don't get sorted into the categories at all.

 

This is probably an impossible request anyway given that you don't know how this other script works anyway. So if that's the case, feel free to ignore this ^_^''

Share this post


Link to post
Share on other sites

If the other script uses skill types for enemies, you need to update the skill window.

For example, I had to do this just so that the window will include a skill if it fit any of the custom criteria.

 

class Window_SkillList < Window_Selectable
   
  alias :th_skill_type_groups_include? :include?
  def include?(item)  
    item && TH::Skill_Type_Groups.include?(@stype_id, item.stype_ids) || item.stype_ids.include?(@stype_id) || th_skill_type_groups_include?(item)
  end
end
Otherwise I don't know what the script does. Edited by Tsukihime

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×