Atk Power seal/lock Skill

Hi guys,

I'm working on a skill that locks/seals the targets ability to increase its atk power for a certain amount of time and was wondering how I could about doing this. So in other words the skill would be used and the target the skill was used on would not be able to increase/decrease its atk power for several turns. I'd like for it to be set to where items, skills, armor, etc....nothing can increase the targets atk power during this state.
I understand I'll need to create a state for the seal and have it expire after a certain amount of time, singling out the atk is what I don't quite understand how to do.

& if I were to make a skill to do the same for other stats such as defense, speed, etc....would it be the same?

Thanks in advance.
Use Yanfly's skill core, there are skill requirements presented. Set them to user not being affected by a state and you're good to go.
Use Yanfly's skill core, there are skill requirements presented. Set them to user not being affected by a state and you're good to go.
Could you elaborate? -- I looked at Yanfly's skill core probably like 2 hours ago as a solution and came up with nothing.
A lunatic mode notetag. You can use either custom show eval or custom requirements. Custom show eval will hide the skill if visible is equal to false and custom requirements will make the skill grey if you can't cast it.
I bet this is what @Poryg is talking about. Throw the piece of codes below into your target's skill note box. If your target is affected by state X, this skill of his cannot be used.
Code:
<Custom Requirement>
if (user.isStateAffected(x)) { //Change X to your state ID.
value = false;
} else {
value = true;
}
</Custom Requirement>
A lunatic mode notetag. You can use either custom show eval or custom requirements. Custom show eval will hide the skill if visible is equal to false and custom requirements will make the skill grey if you can't cast it.
Oooooh, no. I think you misunderstood my post.
Forgive me. What I am trying to do is create a skill that stops the target from increasing its atk. Not hide skills.
I want to create a skill that for several turns stops the target from being able to increase its atk power.

Example if the opponents atk is 1 and I use the skill, the opponent can't increase the atk from 1 until the state has expired. Does that make sense?
I bet this is what @Poryg is talking about. Throw the piece of codes below into your target's skill note box. If your target is affected by state X, this skill of his cannot be used.
Code:
<Custom Requirement>
if (user.isStateAffected(x)) { //Change X to your state ID.
value = false;
} else {
value = true;
}
</Custom Requirement>
Ah, yeah. I'm just realizing that. I should have explained myself better.
Oh, I see.

Custom execution notetag then 😀
If user is affected by a state, the atk doesn't increase, else increase atk.

Similar to skills, you have notetags like this for equips and items in their appropriate plugins too.
Oh, I see.

Custom execution notetag then 😀
If user is affected by a state, the atk doesn't increase, else increase atk.

Similar to skills, you have notetags like this for equips and items in their appropriate plugins too.
That would be written as:

<Custom Execution>
if (user.isStateAffected(x))
value = false;
} else {
value = true;

</Custom Execution>

Fyi, I don't have a lot of experience writing this stuff out. I just started learning not too long ago.
I know, but I always give rookies only hints.
The purpose of that is simple. If they don't understand javascript at all, they will not even try to learn and if you answer, they will soon come with another simple problem.
If they try to learn, then it might help them learn to let them try to figure it out with only hints.

Custom execution notetag doesn't accept value = true, since this notetag is basically your custom effect.
So here you need to be concrete.
Substitute value = false for atk += 0
and value = true for atk += the atk value you want to concretely increase.

For other stats it is a complete analogy, so let's see items and equips now.
For equips there is a Custom parameters notetag.
Items will be a bit more complicated, because the notetag isn't hidden in the item core...

Now that I think about it, I think I messed up 😀
Because using atk += in skills would grant a hero a permanent stat boost 😀
It would be better to use it in states maybe.
I know, but I always give rookies only hints.
The purpose of that is simple. If they don't understand javascript at all, they will not even try to learn and if you answer, they will soon come with another simple problem.
If they try to learn, then it might help them learn to let them try to figure it out with only hints.

Custom execution notetag doesn't accept value = true, since this notetag is basically your custom effect.
So here you need to be concrete.
Substitute value = false for atk += 0
and value = true for atk += the atk value you want to concretely increase.

For other stats it is a complete analogy, so let's see items and equips now.
For equips there is a Custom parameters notetag.
Items will be a bit more complicated, because the notetag isn't hidden in the item core...

Now that I think about it, I think I messed up 😀
Because using atk += in skills would grant a hero a permanent stat boost 😀
It would be better to use it in states maybe.
<Custom Execution>
if (user.isStateAffected(x))
atk+ = 0;
} else {
atk+ = x;

</Custom Execution>

So if I did Equips
It would say if user had an equipped item present it would do the same thing?

<Custom Parameters>
if (user.isStateAffected(x))

<Custom Parameters>
In here I'd have to say that equipped items atk+ would still be zero? -- Forgive me if I'm waaaaay off -___-
Looking for how to do items now -__-
So if I did Equips
It would say if user had an equipped item present it would do the same thing?

Yes, it is exactly like that. If state affected, atk+ will be zero, else atk+ will be whatever.
However, now I have one question.

Do you want the stat boost from skills to be permanent or a temporary buff? If permanent, having custom execution is alright, if temporary buff, you would have had to make the skill cast a state and then have the stat increase inside the state (which would involve buffs & states core).
Yes, it is exactly like that. If state affected, atk+ will be zero, else atk+ will be whatever.
However, now I have one question.

Do you want the stat boost from skills to be permanent or a temporary buff? If permanent, having custom execution is alright, if temporary buff, you would have had to make the skill cast a state and then have the stat increase inside the state (which would involve buffs & states core).
Well, I wanted it to be temporary.

So, Player would use the skill, we'll just call it "Atk seal" and select the target. Once the target is selected, said target will be in the state where it won't be able to increase its atk for however many turns I say in the state.

In other words, yeah I guess I want the state to restrict the target from increasing the atk but the skill would cast the state.

Basically Skill->State->Atk not being able to increase.

I guess the way you helped me set it up now the skill is working under the conditions that the state has already been cast?
I understand that the atk seal would be temporary. The atk seal itself is a skill that casts a state. Let's say state 30.

However, this skill has no power over actively blocking atk increases. So instead it is necessary to setup everything to stop boosting attack if the user is affected by a state.

So for example I want to cast a skill that gives me, under normal conditions, states 40 and 41, in translation state 40 would be 30% atk boost and state 41 would be 30% def boost.
However, if I am affected by state 30, so I can't increase the attack.
But... I can't make the state 30 block my atk increase, because it would in practice mean I would have had to build a huge and inefficient code that would probably lag my game a great deal. So instead I leave state 30 empty and need to set it up inside state 40. In other words I am using state 30 as a reference state, but the actual atk blocking will be coded inside states which are supposed to give attack.
I understand that the atk seal would be temporary. The atk seal itself is a skill that casts a state. Let's say state 30.

However, this skill has no power over actively blocking atk increases. So instead it is necessary to setup everything to stop boosting attack if the user is affected by a state.

So for example I want to cast a skill that gives me, under normal conditions, states 40 and 41, in translation state 40 would be 30% atk boost and state 41 would be 30% def boost.
However, if I am affected by state 30, so I can't increase the attack.
But... I can't make the state 30 block my atk increase, because it would in practice mean I would have had to build a huge and inefficient code that would probably lag my game a great deal. So instead I leave state 30 empty and need to set it up inside state 40. In other words I am using state 30 as a reference state, but the actual atk blocking will be coded inside states which are supposed to give attack.
:dizzy:
Alright. I'll get back to work/learning when I get up. Its 3:23a here ;_; and I need to rest.

I will be back at it as soon as I wake up though!
xD have a good one 😀
xD have a good one 😀
I'm back!
I still can't get this right.
Alright, elaborate a bit, what can't you get right more precisely?

Original thread: https://forums.rpgmakerweb.com/threads/atk-power-seal-lock-skill.83489/