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.
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?
why not put tackle on a skill type that is only usable by the fighter class?
@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.
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...
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.
*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.
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.