Hide skills unless subclass

Nohmaan

Veteran
Veteran
Joined
Jul 7, 2012
Messages
180
Reaction score
49
First Language
English
I've been trying to write an eval for this and can't get it to work.  I'm using Yanfly's Class system and his Hide Menu Skills to try and accomplish the following.

I need it to hide the skill if the user's class isn't the one intended UNLESS that class is the subclass equipped.

i.e.  Have skill "Tackle" for fighter.  If the user's class is not Fighter or /Fighter the skill will not be visible/usable.

The basic eval for classes is:

<hide eval>
[2, 3, 4].include?(@actor.class_id)
</hide eval>

but I can't get it to recognize unless actor.subclass

Any help would be appreciated.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Script Requests is when you're asking for a new script to be written. Script Support is when you need help modifying or implementing an existing script :)


Can you provide a link to the script so people don't have to search for it?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
why not put tackle on a skill type that is only usable by the fighter class?
 

Nohmaan

Veteran
Veteran
Joined
Jul 7, 2012
Messages
180
Reaction score
49
First Language
English
@Shaz my mistake, must not have been paying attention.

@adiktuzmiko For simplicity's sake, there are 3 branches magic, skill, passive.  I want all the skills to populate in the proper location for those categories when you change class or subclass - especially magic.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
and why can't you do that by making the class add the skill? skills will still just show in it's specific type no matter how you add it...
 

Nohmaan

Veteran
Veteran
Joined
Jul 7, 2012
Messages
180
Reaction score
49
First Language
English
Well the classes all learn the skills (not the actor) but when you unequip the sub class or change classes they don't unlearn the skill - thus I need to hide it.
 

Nohmaan

Veteran
Veteran
Joined
Jul 7, 2012
Messages
180
Reaction score
49
First Language
English
*bump*

Alternatively, if there is a way to have Yanfly's Subclass script remove skills when a class/subclass is not equipped that would work as well.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
*bump*

Alternatively, if there is a way to have Yanfly's Subclass script remove skills when a class/subclass is not equipped that would work as well.
It's right in the configuration...

# This adds subclass skill types to the available skill types usable. SUBCLASS_SKILL_TYPES = trueBy the way no actor ever un-learns skills upon switching classes. The learned skills are stored for each class of each actor. (that goes for default / any custom class system really)

Edit: I think this is what you were looking for from the beginning, to group your Fighter skills with one of your three main skill types. (only if someone is the Fighter class it will show)

http://himeworks.wordpress.com/2013/08/29/skill-type-groups/
 
Last edited by a moderator:

Nohmaan

Veteran
Veteran
Joined
Jul 7, 2012
Messages
180
Reaction score
49
First Language
English
Thanks for the post, but I do want subclass skills to be usable - problem was if they have Magic as a skill type and have learned both black and white magic, even equipping just the subclass for white magic user would give them access to all.  I want there to only be 2 skill types (Skills and Magic) and passive (which I don't care if those all stack).

I might be able to get the functionality off the himeworks script, I'll try it out; though it would probably still be easier just to hide the skill if the primary and subclass requirements aren't met.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top