Status Effect - Seal Specific Elements?

Hey everyone,

I am working through the status ailments in my game and wanted to know if it was possible to have an ailment that seals specific elements from being used. For example, Blindness seals off Physical and Gun abilities, while Silence seals off Magic based ones like Fire, Ice, etc.

The only way it seems like I could do this is literally selecting all the appropriate skills from the 'Seal Skill' list, which just seems silly and tedious. Is there another way to do it? Maybe something I'm just missing or a plugin someone knows of?

Thanks in advance!
You could do it using Yanfly's Skill Core - specifically, the Lunatic <Custom Requirement>s where you specify that none of the "sealed this element" states are applied to the battler.
Hm...so I'm looking at it now. Unfortunately my JS knowledge is very light. What would the if statement be on this?

And if I use this, does the skill not show up at all or just show up as unable to be selected? I would prefer the latter, as the former may make a player panic and think they lost the skill or something.
You can do this without plugins.
If all your Physical skills are the same skill type, and then all your magic skills are the same skill type etc. Then in the skill section, just select seal skill type instead of sealing indivual skills.
I've never used this part of Lunatic Mode myself, but I believe it would look like this:

Spoiler: Simple Element Seal State Eval
<Custom Requirement>
if (user.isStateAffected(n)) {
value = false;
} else {
value = true;
}
</Custom Requirement>

Simply replace n with the State ID of the state that seals this skill's element.

I believe that if the state is sealed, it will show up in the skills menu, but will be unselectable (gray). The Show Eval lunatic tags can be used to alter this behavior if desired.

If you have multiple states that can seal a certain (single) element, you'd need to use if/else if/else branches. I'm not 100% sure about Yanfly's syntax, but I think it looks like this:

Spoiler: Multiple States to Seal Eval
<Custom Requirement>
if (user.isStateAffected(n1)) {
value = false;
} else if (user.isStateAffected(n2)) {
value = false;
} else {
value = true;
}
</Custom Requirement>

If those don't work, you may want to post in the Plugin Help and Support subforum; someone might be able to help you since this is a very popular plugin.
You can do this without plugins.
If all your Physical skills are the same skill type, and then all your magic skills are the same skill type etc. Then in the skill section, just select seal skill type instead of sealing indivual skills.
Unfortunately all the abilities in my game are just under one classification of ‘Skills’.

@Wavelength thanks for giving me more details! I will definitely mess with it and see if that works later today. 🙂
@esterk Why are they under one category of skills?
@esterk Why are they under one category of skills?
Actually I think I misread your statement, my bad.

I’m at work so I don’t have RPG Maker pulled up to see what you’re talking about, but you’re suggesting there is an option for me to seal skill types instead? Like...ice, fire, etc? I must have just missed that if so.
@esterk yeah seal skill types, like how you were sealing indivual skills. See here
Ah okay. I understand what you’re saying now. Unfortunately I can’t use this method, since every ability in my game Is just under one skill type of ‘Skills.’ Their typing (physical, ice, fire, dark, etc) is what I want to seal.

(This is because I use a Skill Equip and Skill Learn system so anything outside of the basic Attack command is just a Skill)
@esterk you know you can still use skill types with Skill Equip & Skill Learn system you just need to make sure the Actor or Class has those skill types.
Yeah it’s more to just keep things simplified. I only want abilities to be under the heading of Skills in the Battle menu.

Unless you know of a way around this so that each skill is assigned a skill type that is not visible in game and still retains the blanket term of Skills in game, if you understand what I’m saying.
There is definitely a way to do this and it wouldn't be too hard.
First you would have to look into the method for sealing skills in the js files. Then, when you figure out how the sealing is done, both in terms of sealing entire types and individual skills, just create a new method for sealing skills based on if they have a specific Element assigned to the damage formula.

Once that method is done, you just need to create note-tags to anything with an "Effects" table that applies this method the same with the Seal Effect applies it.

Unfortunately I don't have the time to create something that does this. But I imagine any coder could, and it's likely that it's already been done before.
@esterk yes you can keep the skill section without having skill types show up in the battle screen. See here. They'll still be separated in the skill menu, in the main menu, but not in battle.
Sorry for the late reply here. I'm doing training at my new job so I've been super busy.

@Titanhex Interesting...but wouldn't using @Wavelength 's method be easier at that point (assuming it works, which I haven't had time to test unfortunately)?

@Zarsla Oh thanks for posting that! So in battle it all shows up under Skills, yet in some of the menus it may show up as other categories? I may have to mess with that, seems like the most simplistic solution yet.
@esterk sort of...
So here's how skills & skill types work by default:
In The Skill Scene under the Main Menu:
All skills are listed sepreately by skill type, the only skills you won't see are skills whose skill type is none like "dual attack"

In the Battle Screen:
All skills are listed by skilltype and except for Attack and Gaurd, all skills that are none can't be seen.

Using Yanfly Skill Equip:
In The Skill Scene under the Main Menu:
Acts like it would in default, but now there's a new command "Equip Skills".
"Window 1" shows all equiped skills & slots while "Window 2" lets you change equips.

In the Battle Screen:
All the skilltype comnands are gone, and now you have "Skills" Command which is the same as "Window 1" from the "Equip Skills" Command under Skills in The Main Menu. Besides that it acts like default.
@Zarsla Thanks for explaining this! I'll definitely take a look into it! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/status-effect-seal-specific-elements.91563/