MV Attack with Conditional Damage Type

Each of the "physical damage" elements are going to have their own skill. Blade, pierce and slash. But I also want to have a system by which weapons can override this with magical damage types such as fire and earth. This would normally be accomplished by simply using "Attack Element" as the skill's attack. The issue is that this effectively precludes having specific skills for the "physical damage" elements, making the player unable to for example, use the blunt end of their sword to take advantage of blunt weakness.

While I could create separate, hidden skils "Slash Fire" and "Blunt Earth," this presents two problems. The first is that they'd need to hide the base counterpart. The second is that they'd need to sync with the base counterpart's MasteryLevel.
Each of the physical damage types have their own skill. Blade, pierce and slash.
did you mean elements? Even if youve renamed stuff in your game, you still want to call things by what the engine calls them here to avoid confusion. Damage type is already its own term for something separate and has nothing to do with a skill being physical.

But I also want to have a system by which weapons can override this with magical damage types such as fire and earth... making the player unable to for example, use the blunt end of their sword to take advantage of blunt weakness
but how would you present the choice to the player? You say attack elements prevents the player from using one of the elements, but what would the condition be that would allow them to dynamically control it other than a separate skill?

Also thats not entirely how attack elements work. if a weapon has traits for say, fire and slash, attack element skills will use either one depending on which one the target is weaker to at the time.
I read your post maybe like 3 times to break this down and understand.
Each of the physical damage types have their own skill. Blade, pierce and slash. But I also want to have a system by which weapons can override this with magical damage types such as fire and earth. This would normally be accomplished by simply using "Attack Element" as the skill's attack.
So first question, what would dictate the type of magic that the actor can access? Would it be based on an item equipped or is this supposed to be based on the actor themselves? Or is it just that attack element would give the actor access to all of the elements?

The issue is that this effectively precludes having skills for the damage types, making the player unable to for example, use the blunt end of their sword to take advantage of blunt weakness.
Probably possible if you're using Yanfly's Element core that you can give the skill blunt + elemental damage but the element is dependent on how you answer the above.

While I could create separate, hidden skils "Slash Fire" and "Blunt Earth," this presents two problems. The first is that they'd need to hide the base counterpart. The second is that they'd need to sync with the base counterpart's MasteryLevel.
If I'm understanding you properly, I don't think the problem is as you say it is. Instead of hiding the base, why not hide upgrade instead and use a show not tell principle. The skill is "Slash" but slash turns into fire slash once imbued with the fire element. It further turns into Ice slash if imbued with the ice element.

By doing it this way, the mastery level is on slash and blunt attacks and not necessarily the elemental versions.
I just realized there were two different replies so my answer was scattered and confused. I'll redo my response completely.

did you mean elements? Even if youve renamed stuff in your game, you still want to call things by what the engine calls them here to avoid confusion. Damage type is already its own term for something separate and has nothing to do with a skill being physical.
My mind blanked on what it was called in-engine for some reason. Sorry.

but how would you present the choice to the player? You say attack elements prevents the player from using one of the elements, but what would the condition be that would allow them to dynamically control it other than a separate skill?
The player chooses by using the "blunt" skill or "pierce" skill instead of the "slash" skill. Because the skills are already tied to elements(blunt, slash and pierce), a weapon doing a different element damage such as a fire enchanted sword, would have to be accounted for. The "blunt" skill, for example, needs to do blunt damage unless the weapon is one that deals fire damage or some other "non physical" element.

Also thats not entirely how attack elements work. if a weapon has traits for say, fire and slash, attack element skills will use either one depending on which one the target is weaker to at the time.
That's not something I knew. I always assumed that the elements simply overwrote each other.

So first question, what would dictate the type of magic that the actor can access? Would it be based on an item equipped or is this supposed to be based on the actor themselves? Or is it just that attack element would give the actor access to all of the elements?
Either the weapon itself or an "enchantment" using the Augments extension of YEP_ItemCore.

Probably possible if you're using Yanfly's Element core that you can give the skill blunt + elemental damage but the element is dependent on how you answer the above.
This may approach the correct answer, but as I understand, that would only work if the skills use Attack Element for their element, rather than the skill specific elements. If I did that, then a normal sword would always deal slash damage, even when using the "blunt" skill.

If I'm understanding you properly, I don't think the problem is as you say it is. Instead of hiding the base, why not hide upgrade instead and use a show not tell principle. The skill is "Slash" but slash turns into fire slash once imbued with the fire element. It further turns into Ice slash if imbued with the ice element.
How would I make it "turn" slash into fire slash?
I just realized there were two different replies so my answer was scattered and confused. I'll redo my response completely.
Just saw the update.
Either the weapon itself or an "enchantment" using the Augments extension of YEP_ItemCore.
May require some alterations but Yanfly has already done something like this in a tips and tricks video. I was considering something similar too but haven't fully decided on it.


This may approach the correct answer, but as I understand, that would only work if the skills use Attack Element for their element, rather than the skill specific elements. If I did that, then a normal sword would always deal slash damage, even when using the "blunt" skill.
Well based on your earlier answer, you intended on sword attacks having both slash and blunt type of attacks. The only way I saw you making this possible is making a separate skill that works similar to how sword attacks inherently slash and the main key would be how you trigger it (I imagine a plugin to use as a separate command but you can update me).

How would I make it "turn" slash into fire slash?
The way I envisioned it was through your action sequences. If you look at the link for Judgement (see above) you'll see a skill that takes on an element based on the equipped weapon. You'll have to adjust for the attachment in this case. The main thing is the Slash text still appears but whatever element is supposed to be imbued, you animate this with your Action Sequence.
Just saw the update.

May require some alterations but Yanfly has already done something like this in a tips and tricks video. I was considering something similar too but haven't fully decided on it.



Well based on your earlier answer, you intended on sword attacks having both slash and blunt type of attacks. The only way I saw you making this possible is making a separate skill that works similar to how sword attacks inherently slash and the main key would be how you trigger it (I imagine a plugin to use as a separate command but you can update me).


The way I envisioned it was through your action sequences. If you look at the link for Judgement (see above) you'll see a skill that takes on an element based on the equipped weapon. You'll have to adjust for the attachment in this case. The main thing is the Slash text still appears but whatever element is supposed to be imbued, you animate this with your Action Sequence.
You are correct. With a little adjusting(is there a way to check for specific augments on the weapon, or would I have to do it indirectly?), this video's method can be applied. Force element and animation are what I needed.
You are correct. With a little adjusting(is there a way to check for specific augments on the weapon, or would I have to do it indirectly?), this video's method can be applied. Force element and animation are what I needed.
I haven't attempted yet since I'm still playing around with the design aspect but I imagine that the adjustment should be on the $dataWeapons and changing to $dataItems. The number in the [ ] references the item id. Thus if the attachment is 3, you would rewrite it such as :

else if user.hasItem($dataItems[3])

Again, I haven't tried it but its how I rationalized I would make the first attempt. Let me know and I can trouble shoot with you a bit if it doesn't work.

Original thread: https://forums.rpgmakerweb.com/threads/attack-with-conditional-damage-type.178086/