Skills Acting Sealed But Aren't

Hi I was wondering if anyone knows where the line(s) are for when an actor uses a skill, but can't because it inflicts a state that is already applied to a target selected in the party.

Ex: A skill buffs an ally. You can't use that skill on a certain ally because he already has it. This skill shows as "enabled" on the menu, but isn't really enabled since I'm getting the "cannot use" sound from trying to use it.

My goal is to remove that rule. Renewing Buffs is important in my game.
It's a bit more difficult than that.


It doesn't know whether you can use the skill or not until you select a target. So you can't really say whether to enable it or not until AFTER you've chosen the skill and you're ready to choose the target - by then it's too late.


Is that really what "sealed" skills are?
Hi,

I don't have access to the maker to look it up, but you can use the built in search function to look for

def item_test

within the Game_Battler script.

This method invokes another one named any_valid_effects? or anything like that, by following this call hierarchy you should find the exact position.
Hi,

I don't have access to the maker to look it up, but you can use the built in search function to look for

def item_test

within the Game_Battler script.

This method invokes another one named any_valid_effects? or anything like that, by following this call hierarchy you should find the exact position.
Thank you. I found where it does this. It was one linked function down from the any_valid_effects? function. There was a line checking if a state was applied and if it was it returned !true = false instead of always true.

 

It's a bit more difficult than that.

It doesn't know whether you can use the skill or not until you select a target. So you can't really say whether to enable it or not until AFTER you've chosen the skill and you're ready to choose the target - by then it's too late.

Is that really what "sealed" skills are?
 

I wasn't saying it was sealed.
Your title says "Skills Acting Sealed ..." 😉

Original thread: https://forums.rpgmakerweb.com/threads/skills-acting-sealed-but-arent.37053/