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.
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.
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.
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.
Looking for how to do items now -__-
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 still can't get this right.
Alright, elaborate a bit, what can't you get right more precisely?