MV Good way to implement certain mechanic

There is this mechanic, that suppose to simulate (sort of) a positioning of the units. its fairly simple,but I dont know, what could be used to implement it?

At the battlescreen, when either enemy (E) or party member (P) attacks someone, they both go into "duel". If someone attacks a character that is in duel (other then his duel opponent), said character takes x1.25 damage. If duel participant attacks someone other then his opponent, he breaks the duel, leaving himself exposed for extra (x1.5) damage from his ex-opponent. Duel cant be broken by the characters outside the duel.
How would that function on practice?
You can use taunt on your tank character, for example, to lock enemy into attacking him, while the enemy would take more damage (x1.25) from your damage dealers. Or, if enemy focuses your low hp damage dealer, and you force him to attack the tank, the enemy would receive even more (x1.5) damage from the damage dealer. It is also better to either force all enemy to attack one tank, or for all of them to fight one on one, if there is more then 1 enemy, or your party would really face a chance of a very swift defeat.
you need to give a better description of what you want.

for example is this supposed to happen on the battlescreen (where positioning is usually ignored) or on the map (where no enemies or health or damage exists at all)?
you need to give a better description of what you want.

for example is this supposed to happen on the battlescreen (where positioning is usually ignored) or on the map (where no enemies or health or damage exists at all)?
In battlescreen, yes.
I said that the question of map or battlescreen was an example, not that it was the only question to be answered.
Your entire original description is confusing because you never explain what each part means.
Please add a mock-up picture and a better description of at least twenty sentences or so, for us to understand what kind of game mechanic you want to implement.
I said that the question of map or battlescreen was an example, not that it was the only question to be answered.
Your entire original description is confusing because you never explain what each part means.
Please add a mock-up picture and a better description of at least twenty sentences or so, for us to understand what kind of game mechanic you want to implement.
you dont know wha "damage" means? "increased"? "unit" wtf
Ive re-worded, but dont know how to make it clearer, really.
you dont know wha "damage" means? "increased"? "unit" wtf
Give more detailed description man.
Your description is vague at best.

You giving a detailed description is for your own benefit, just saying.

At the battlescreen, if enemy attack your party member, said enemy would take increased damage from other party members. If he decides to attack other party member after that, he would received extra increased damage from the one he was attacking before.
So in short if enemy 1 (E1) attacks party member 1 (P1), E1 increased damage from P2 to Pn?
What kind of damage is it? Raw damage or buff that modify damage multiplier?
Is it like if E1 attack P1, he gets a 1.3 damage buff from the party size of 4, and 0.3 more if he attack other party member kind of thing?

Or E1 gets additional damage added after its base damage? Like "base damage" + "last damage dealt * 0.1"
Give more detailed description man.
Your description is vague at best.

You giving a detailed description is for your own benefit, just saying.


So in short if enemy 1 (E1) attacks party member 1 (P1), E1 increased damage from P2 to Pn?
What kind of damage is it? Raw damage or buff that modify damage multiplier?
Is it like if E1 attack P1, he gets a 1.3 damage buff from the party size of 4, and 0.3 more if he attack other party member kind of thing?

Or E1 gets additional damage added after its base damage? Like "base damage" + "last damage dealt * 0.1"
its more like "base damage * 1.25*
but, if E1 attacks P2 AFTER he attacked P1, P1 gets increased "base damage *1.5" damage against E1, while P2 wont deal extra damage anymore, since now he is the target.
So, P1 get 1.5 damage buff only if he was attacked, and then E1 switched target to someone else.
that will need a plugin, and probably a custom plugin because I never heard of anyone having an existing plugin to implement such a mechanic.
the problem is that you need to store last target differently for every battler, and then have the damage fomula check every one of those last targets.

and again, the given descriptions so far are NOT enough to program such a plugin. If you don't get all those details we asked you and more that are still missing into a streamlined description for the plugin programmer, then said programmer will have to play twenty questions just to understand what you want - and very few programmers do that for free.
So either you'll have to improve your description (and add the twenty missing special cases to it) or you'll have to commission (that is pay for) the plugin.
that will need a plugin, and probably a custom plugin because I never heard of anyone having an existing plugin to implement such a mechanic.
the problem is that you need to store last target differently for every battler, and then have the damage fomula check every one of those last targets.

and again, the given descriptions so far are NOT enough to program such a plugin. If you don't get all those details we asked you and more that are still missing into a streamlined description for the plugin programmer, then said programmer will have to play twenty questions just to understand what you want - and very few programmers do that for free.
So either you'll have to improve your description (and add the twenty missing special cases to it) or you'll have to commission (that is pay for) the plugin.
me punch you in the face. If someone else but me punch you, you take more damage from them. If you punch back at someone else, but me, they no longer deal more damage to you, but now I deal extra damage. Its very simple.
Dunno, I thought maybe yanfly plugins can be used for this.
Yeah I think one of Yanfly's plugin can do this, it's probably damage core ore battle core.

To apply it is probably is a bit challenging, and require you to write an in-game script or some sort. At least basic JS knowledge is required.
Afaik there's in game script calls that deals with: what enemy is in turn, last damage dealt, and target (user).

So in sort save what enemy is attacking, how many damage they dealt and who is the target. Check all required condition and apply/remove the buff (if the buff is a state)

If you achieve it via damage formula, I think there's plugin that dealt with one, can't remember which, it's either YEP's or Hime's iirc. But writing it via single line formula is rather challenge
Yeah I think one of Yanfly's plugin can do this, it's probably damage core ore battle core.

To apply it is probably is a bit challenging, and require you to write an in-game script or some sort. At least basic JS knowledge is required.
Afaik there's in game script calls that deals with: what enemy is in turn, last damage dealt, and target (user).

So in sort save what enemy is attacking, how many damage they dealt and who is the target. Check all required condition and apply/remove the buff (if the buff is a state)

If you achieve it via damage formula, I think there's plugin that dealt with one, can't remember which, it's either YEP's or Hime's iirc. But writing it via single line formula is rather challenge
Never planned to use single line formula, exactly wanted to know the method for it, ok, ive got yanfly, gonna dig into it. Thank you
Ill bump it in case someone would suggest somthing else 🙂
Moved to: Plugin Requests

[bump]@Ys42[/bump]

Original thread: https://forums.rpgmakerweb.com/threads/good-way-to-implement-certain-mechanic.138749/