Overwrite "Seal Skill" from a State?

I've got it set so that characters such as Healers have the Attack skill sealed when they're positioned in the "back". I have a State created to give to the back row characters that seals Attack.

However, I'd like to re-enable Attack if they have a ranged weapon equipped. Is there an easy way to do this? I can't remove the back row State because a lot of gameplay mechanics depend on it.

Maybe I'm overlooking an existing feature. It'd be great if weapons could be given a "Negate Seal for Skill ..." kinda thing.

Otherwise I guess I'll have to go into the scripts for Seal Skill and edit it to be ignored if weapons with id X are equipped?

Thanks so much. 🙂
Maybe you can override the state with a state of a higher priority, which is given by ranged weapons and which will allow it?
I love that idea! Does "Add Skill" naturally override "Seal Skill"? Or are these two different things altogether?

Edit: Nah, that doesn't seem to do it. Although I love the direction of the solution (applying a second State). Maybe there's a way to use those Yanfly note tags. hmm.
Skill requirements would definitely make it easier.
If user has this state, but a ranged weapon, or is at the front, then the skill is visible, if not, then it is not visible.
There are few ways to achieve your goal.
In case you have "ranged weapons" as separate weapon type (in taby Types/Weapon types) you can check IF equiped type is ranged and allow to use attack.

I am not sure what mechanic exactly you use for front/back rows system. If it is yanfly row formation plugin, then such mechanics are included within plugin. (no need to re-invent wheel)
For example you define 3 rows - front, middle, back.
Then you define 2 (or more) attacks as skills.
A) Melee attack with TAG
<Row Only: 1>
😎 Ranged attack
<Row Only: 2,3>

And finally you define at each weapon notetag
for melee weapons
<Replace Attack: ID of melee attack>
for ranged weapons
<Replace Attack: ID of ranged attack>

This way equiped weapon automatically enable only the right type of attack and seal other one based on row your actor is located.
For more precise details just watch tutorials:

Weapon unleash -for replace default attack to separate ranged and melee one
http://yanfly.moe/2015/12/26/yep-51-weapon-unleash/

For integrated row formation system
http://yanfly.moe/2016/01/02/yep-54-row-formation/
There are few ways to achieve your goal.
In case you have "ranged weapons" as separate weapon type (in taby Types/Weapon types) you can check IF equiped type is ranged and allow to use attack.

I am not sure what mechanic exactly you use for front/back rows system. If it is yanfly row formation plugin, then such mechanics are included within plugin. (no need to re-invent wheel)
For example you define 3 rows - front, middle, back.
Then you define 2 (or more) attacks as skills.
A) Melee attack with TAG
<Row Only: 1>
😎 Ranged attack
<Row Only: 2,3>

And finally you define at each weapon notetag
for melee weapons
<Replace Attack: ID of melee attack>
for ranged weapons
<Replace Attack: ID of ranged attack>

This way equiped weapon automatically enable only the right type of attack and seal other one based on row your actor is located.
For more precise details just watch tutorials:

Weapon unleash -for replace default attack to separate ranged and melee one
http://yanfly.moe/2015/12/26/yep-51-weapon-unleash/

For integrated row formation system
http://yanfly.moe/2016/01/02/yep-54-row-formation/


Kilitar:


If I understand you correctly, you are saying to create additional attack skills. I did this and it functioned great for making it so only ranged weapons could be used from the back row, but

I had issues with +attack (for instance a ranger who got +1 attack at level 10). The +attacks were not effecting the "new attack skills".

How did you evade this issue?

Thanks in advance.
If I remember correctly +attack only works with skills that elements are normal attack. If a skill element is set to it, it may not work.
Kilitar:


If I understand you correctly, you are saying to create additional attack skills. I did this and it functioned great for making it so only ranged weapons could be used from the back row, but

I had issues with +attack (for instance a ranger who got +1 attack at level 10). The +attacks were not effecting the "new attack skills".

How did you evade this issue?

Thanks in advance.

You can try Zarsla solution.

My own solution might look little "tricky" for beginner, but in fact it is not that complicated. I am again using Yanfly plugins - in this case Action sequence. And I hope I can explain it with my bad english 😛.
http://yanfly.moe/2015/10/12/yep-5-action-sequence-pack-2/

As you using Row formation I expect you have "sideview battle system". Here is the MOST simple way of action sequence (You can add much more visual effects, camera zooms, sound effects, mathematic evals, conditional branches and features to increase immersions - by adding more lines to action sequence. Try search for examples on youtube and forum)

Note: You must have yanfly battle engine core installed with action sequence packs 1-3. in right order.

Then you can make something like this in skill note: (without explanation parts in () )

Skill 1 - Standard missile attack
(This part is to "prepare before attack")
<setup action>
clear battle log (Clear entries in battle log from previous used skill)
display action (display name of attack which atacker is using)
immortal: targets, true (set target to NOT die in middle of attack - in multiple attacs it looks strange if target dies and you swings air above him 🙂 )
</setup action>


(This part is "effect what should happen during main attack phase ")
<target action>
motion attack: user (user - which means one who using this skill - will do attack animation called motion - but this line do NO real damage, only visual shoot effect)
wait for motion (sequence will wait to finish attack motion - to not skip visual effect in middle)
action animation: target (target - which means the one who is target of skill - receiving effect, will show animations asociated with skill - it means animation in "invocation" TAB of skill - again - only visual/sound effect - no real hit or damage check)
wait for animation (like before - sequence will wait to finish animation - to not skip visual effect in middle)
action effect (NOW here hit/evade and damage calculation is made!)
death break (and now, target can finally die if his Hitpoints are 0)
</target action>


Skill 2 - Dual Shot (solution is limited only by your imagination, you can have skill like ranger shooting 2 arrows at once, or one afther another.)

This part is totally the same
<setup action>
clear battle log
display action
immortal: targets, true
</setup action>


(This part is almost the same - you just do it double)
<target action>
motion attack: user (arrow NO1 visual/sound effects)
wait for motion
action animation: target
wait for animation
action effect (Hit/Damage calculations for arrow NO1)
wait: 30 (wait 30 frames = half second - you can make it longer or shorter as you wish)
motion attack: user (arrow NO2 visual/sound effects)
wait for motion
action animation: target
wait for animation
action effect (Hit/Damage calculations for arrow NO2)
death break
</target action>

As I said, this action sequence is very basic. You can add more immersion to your game with additional sound/visual effects. Or for example add different damage /hit and visual effects fo each arrow. Like first arrow has better hit but lesser damage, second one just oposite.. Or conditional check like if first arrow miss, the second one automatically miss as well. Possibilities are endless 🙂.
Thank you Killer. I used the Weapon unleash to replace Basic Attack with Ranged Attack, and the +1 ability DOES apply to Ranged Attack.

GEA
Works, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/overwrite-seal-skill-from-a-state.82371/